	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_platform_finddevs         ## -- Begin function pcap_platform_finddevs
	.p2align	4, 0x90
_pcap_platform_finddevs:                ## @pcap_platform_finddevs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	$0, -64(%rbp)
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_PacketGetAdapterNames
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_INSUFFICIENT_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	jle	LBB0_19
## %bb.4:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	-64(%rbp), %rsi
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PacketGetAdapterNames
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:
	movq	%r12, %rbx
	addq	$2, %rbx
	movq	%r12, %rdi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -2(%rbx)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$0, -1(%rbx)
	jne	LBB0_10
## %bb.11:
	xorl	%r12d, %r12d
	cmpb	$0, (%rdi)
	je	LBB0_18
## %bb.12:
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -52(%rbp)
	movq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdx
	callq	_get_if_flags
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-52(%rbp), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_pcap_add_if_npf
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, %r13
	leaq	(%rax,%r15), %r12
	incq	%r12
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rax, %rbx
	incq	%rbx
	cmpb	$0, 1(%r13,%r15)
	movq	%r12, %r15
	jne	LBB0_13
## %bb.17:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_5:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movl	$-1, %r12d
	jmp	LBB0_19
LBB0_2:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_pcap_win32_err_to_str
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movl	$-1, %r12d
	jmp	LBB0_19
LBB0_21:
	xorl	%eax, %eax
	callq	_GetLastError
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_pcap_win32_err_to_str
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movq	%r12, %rdi
	callq	_free
	movl	$-1, %r12d
	jmp	LBB0_19
LBB0_15:
	movl	$-1, %r12d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	callq	_free
LBB0_19:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ## @ERROR_INSUFFICIENT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PacketGetAdapterNames: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate enough memory to list the adapters."

	.comm	_PCAP_IF_LOOPBACK,4,2           ## @PCAP_IF_LOOPBACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_platform_finddevs         ; -- Begin function pcap_platform_finddevs
	.p2align	2
_pcap_platform_finddevs:                ; @pcap_platform_finddevs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stur	xzr, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, #0
	bl	_PacketGetAdapterNames
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_GetLastError
Lloh7:
	adrp	x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR_INSUFFICIENT_BUFFER@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_17
LBB0_2:
	ldur	x0, [x29, #-64]
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.3:
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.4:
	mov	x21, x0
	sub	x1, x29, #64
	bl	_PacketGetAdapterNames
	cbz	w0, LBB0_18
; %bb.5:
	add	x22, x21, #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w8, [x22, #-2]
	cbnz	w8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldurb	w8, [x22, #-1]
	cbnz	w8, LBB0_6
; %bb.9:
	ldrb	w8, [x21]
	cbz	w8, LBB0_14
; %bb.10:
	mov	x23, x21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stur	wzr, [x29, #-68]
	sub	x1, x29, #68
	mov	x0, x23
	mov	x2, x19
	bl	_get_if_flags
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w2, [x29, #-68]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x22
	mov	x4, x19
	bl	_pcap_add_if_npf
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	bl	_strlen
	add	x23, x0, x23
	mov	x0, x22
	bl	_strlen
	ldrb	w8, [x23, #1]!
	add	x9, x0, x22
	add	x22, x9, #1
	cbnz	w8, LBB0_11
LBB0_14:
	mov	w19, #0
	b	LBB0_20
LBB0_15:
	mov	w19, #0
	b	LBB0_21
LBB0_16:
	ldr	w1, [x23]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pcap_snprintf
	mov	w19, #-1
	b	LBB0_21
LBB0_17:
	mov	x1, x22
	bl	_pcap_win32_err_to_str
	ldr	w1, [x23]
	str	x22, [sp, #-16]!
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pcap_snprintf
	add	sp, sp, #16
	mov	w19, #-1
	b	LBB0_21
LBB0_18:
	bl	_GetLastError
	mov	x1, x22
	bl	_pcap_win32_err_to_str
	ldr	w1, [x23]
	str	x22, [sp, #-16]!
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pcap_snprintf
	add	sp, sp, #16
	mov	x0, x21
	bl	_free
	mov	w19, #-1
	b	LBB0_21
LBB0_19:
	mov	w19, #-1
LBB0_20:
	mov	x0, x21
	bl	_free
LBB0_21:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x19
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_ERROR_INSUFFICIENT_BUFFER,8,3  ; @ERROR_INSUFFICIENT_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PacketGetAdapterNames: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate enough memory to list the adapters."

	.comm	_PCAP_IF_LOOPBACK,4,2           ; @PCAP_IF_LOOPBACK
.subsections_via_symbols
