	.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	$40, %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, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_is_dlpi_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_get_if_flags@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	callq	_pcap_findalldevs_interfaces
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	_list_interfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_dlpi_walk
	movq	-80(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %r13d
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r13d
	jmp	LBB0_10
LBB0_4:
	movq	-72(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movl	(%r12), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_find_or_add_dev
	cmpq	$1, %rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r13d
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_free
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_9:
	movl	%r15d, (%r14)
LBB0_10:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_dlpi_interface,4,2          ## @is_dlpi_interface
	.comm	_get_if_flags,4,2               ## @get_if_flags
	.comm	_list_interfaces,4,2            ## @list_interfaces
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlpi_walk"

	.comm	_errno,4,2                      ## @errno
.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, _is_dlpi_interface@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_dlpi_interface@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x22, _get_if_flags@GOTPAGE
Lloh4:
	ldr	x22, [x22, _get_if_flags@GOTPAGEOFF]
	ldr	w3, [x22]
	bl	_pcap_findalldevs_interfaces
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _list_interfaces@GOTPAGE
Lloh6:
	ldr	x8, [x8, _list_interfaces@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, sp
	mov	w2, #0
	bl	_dlpi_walk
	ldr	x2, [sp]
	cbz	x2, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	mov	w21, #-1
	b	LBB0_8
LBB0_3:
	mov	w21, #-1
	b	LBB0_11
LBB0_4:
	ldr	x23, [sp, #8]
	cbz	x23, LBB0_7
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23, #8]
	ldr	w3, [x22]
	mov	x0, x20
	mov	w2, #0
	mov	x4, #0
	mov	x5, x19
	bl	_find_or_add_dev
	cmp	x0, #0
	csinv	w21, w21, wzr, ne
	ldr	x23, [x23]
	cbnz	x23, LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
Lloh13:
	adrp	x19, _errno@GOTPAGE
Lloh14:
	ldr	x19, [x19, _errno@GOTPAGEOFF]
	ldr	w20, [x19]
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x0]
	bl	_free
	mov	x0, x22
	cbnz	x22, LBB0_9
LBB0_10:
	str	w20, [x19]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_is_dlpi_interface,4,2          ; @is_dlpi_interface
	.comm	_get_if_flags,4,2               ; @get_if_flags
	.comm	_list_interfaces,4,2            ; @list_interfaces
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlpi_walk"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
