	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_driver
_open_driver:                           ## @open_driver
	.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
	pushq	%rax
	.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
	movq	_dev_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.1:
	movl	%edx, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	callq	_PCAP_ASSERT
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_21:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_22:
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_pcap_snprintf
LBB0_23:
	xorl	%ebx, %ebx
LBB0_24:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_probed_dev@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	cmpq	%rax, %rbx
	jne	LBB0_24
	jmp	LBB0_8
LBB0_4:
	movq	32(%rbx), %rdi
	callq	_PCAP_ASSERT
	movq	%rbx, %rdi
	callq	*32(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movq	%rbx, (%r13)
LBB0_8:
	xorl	%eax, %eax
	callq	_FLUSHK
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	orl	%eax, (%rbx)
	jmp	LBB0_11
LBB0_10:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_11:
	movq	24(%rbx), %rdi
	callq	_PCAP_ASSERT
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	testl	%r12d, %r12d
	je	LBB0_18
## %bb.16:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_18:
	movq	_active_dev@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	cmpq	$0, (%r13)
	jne	LBB0_24
## %bb.19:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_22
LBB0_12:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_pcap_snprintf
	movq	_pktInfo@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_23
## %bb.13:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_strcat
	jmp	LBB0_23
LBB0_5:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_base,8,3                   ## @dev_base
	.comm	_probed_dev,8,3                 ## @probed_dev
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to detect device `%s'"

	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
L_.str.1:                               ## @.str.1
	.asciz	"failed to activate device `%s'"

	.comm	_pktInfo,8,3                    ## @pktInfo
L_.str.2:                               ## @.str.2
	.asciz	"pkt"

L_.str.3:                               ## @.str.3
	.asciz	": "

	.comm	_active_dev,8,3                 ## @active_dev
L_.str.4:                               ## @.str.4
	.asciz	"device `%s' not supported"

L_.str.5:                               ## @.str.5
	.asciz	"device `%s' not probed"

	.no_dead_strip	_open_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_driver
_open_driver:                           ; @open_driver
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _dev_base@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dev_base@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	cbz	x21, LBB0_4
; %bb.1:
	mov	x22, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #16]
	bl	_PCAP_ASSERT
	ldr	x1, [x21, #16]
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x21, [x21, #40]
	cbnz	x21, LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.4@PAGE
Lloh7:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x3, x20
	bl	_pcap_snprintf
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	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_8:
Lloh8:
	adrp	x23, _probed_dev@GOTPAGE
Lloh9:
	ldr	x23, [x23, _probed_dev@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	cmp	x21, x8
	b.ne	LBB0_7
	b	LBB0_12
LBB0_10:
	ldr	x0, [x21, #32]
	bl	_PCAP_ASSERT
	ldr	x8, [x21, #32]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_24
; %bb.11:
	str	x21, [x23]
LBB0_12:
	bl	_FLUSHK
Lloh10:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cbz	w22, LBB0_14
; %bb.13:
	ldr	w9, [x21]
	orr	w8, w8, w9
	b	LBB0_15
LBB0_14:
	ldr	w9, [x21]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x21]
	ldr	x0, [x21, #24]
	bl	_PCAP_ASSERT
	ldr	x8, [x21, #24]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_21
; %bb.16:
	cbz	w22, LBB0_19
; %bb.17:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x21
	blr	x8
LBB0_19:
Lloh16:
	adrp	x8, _active_dev@GOTPAGE
Lloh17:
	ldr	x8, [x8, _active_dev@GOTPAGEOFF]
Lloh18:
	str	x21, [x8]
	ldr	x8, [x23]
	cbnz	x8, LBB0_7
; %bb.20:
Lloh19:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.5@PAGE
Lloh23:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_21:
Lloh24:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_pcap_snprintf
Lloh29:
	adrp	x20, _pktInfo@GOTPAGE
Lloh30:
	ldr	x20, [x20, _pktInfo@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.22:
	ldr	x0, [x21, #16]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbnz	w0, LBB0_6
; %bb.23:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcat
	ldr	x1, [x20]
	mov	x0, x19
	bl	_strcat
	b	LBB0_6
LBB0_24:
Lloh35:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str@PAGE
Lloh39:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_base,8,3                   ; @dev_base
	.comm	_probed_dev,8,3                 ; @probed_dev
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to detect device `%s'"

	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
l_.str.1:                               ; @.str.1
	.asciz	"failed to activate device `%s'"

	.comm	_pktInfo,8,3                    ; @pktInfo
l_.str.2:                               ; @.str.2
	.asciz	"pkt"

l_.str.3:                               ; @.str.3
	.asciz	": "

	.comm	_active_dev,8,3                 ; @active_dev
l_.str.4:                               ; @.str.4
	.asciz	"device `%s' not supported"

l_.str.5:                               ; @.str.5
	.asciz	"device `%s' not probed"

	.no_dead_strip	_open_driver
.subsections_via_symbols
