	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_lookupdev                 ## -- Begin function pcap_lookupdev
	.p2align	4, 0x90
_pcap_lookupdev:                        ## @pcap_lookupdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_dev_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	callq	_PCAP_ASSERT
	movq	%rbx, %rdi
	callq	*8(%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcpy
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	callq	_FLUSHK
	movq	_probed_dev@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	(%rbx), %rax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_base,8,3                   ## @dev_base
	.comm	_probed_dev,8,3                 ## @probed_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No driver found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_lookupdev                 ; -- Begin function pcap_lookupdev
	.p2align	2
_pcap_lookupdev:                        ; @pcap_lookupdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _dev_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev_base@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	bl	_PCAP_ASSERT
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_1
LBB0_3:
	cbz	x19, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcpy
LBB0_5:
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	bl	_FLUSHK
Lloh5:
	adrp	x8, _probed_dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _probed_dev@GOTPAGEOFF]
Lloh7:
	str	x20, [x8]
	ldr	x0, [x20]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_base,8,3                   ; @dev_base
	.comm	_probed_dev,8,3                 ; @probed_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No driver found"

.subsections_via_symbols
