	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_dlpi_device
_open_dlpi_device:                      ## @open_dlpi_device
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpb	$47, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	-160(%rbp), %rdi
	movq	%r12, %rsi
	movl	$100, %edx
	callq	_strlcpy
	jmp	LBB0_3
LBB0_2:
	movq	_PCAP_DEV_PREFIX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_3:
	leaq	-160(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_split_dname
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, -280(%rbp)                ## 8-byte Spill
	leaq	-272(%rbp), %rdi
	leaq	-160(%rbp), %r13
	movq	%r13, %rsi
	movl	$100, %edx
	callq	_strlcpy
	movb	$0, (%rbx)
	movq	_O_RDWR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_13
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ENOENT@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdx
	jne	LBB0_9
## %bb.6:
	movl	(%r14), %esi
	leaq	-272(%rbp), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:
	movl	%eax, %ebx
	movq	$0, (%r15)
	jmp	LBB0_13
LBB0_8:
	movq	_PCAP_ERROR_NO_SUCH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_13
LBB0_9:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movq	_EACCES@GOTPCREL(%rip), %rdi
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rcx
	movq	%rcx, %rsi
	cmpq	(%rdi), %rdx
	je	LBB0_11
## %bb.10:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rsi
LBB0_11:
	cmpq	(%rax), %rdx
	cmoveq	%rcx, %rsi
	movl	(%rsi), %ebx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	leaq	-160(%rbp), %r8
	movq	-280(%rbp), %rdi                ## 8-byte Reload
LBB0_12:
	callq	_pcap_fmt_errmsg_for_errno
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.14:
	movl	%ebx, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	(%r13), %rdx
	jne	LBB0_17
## %bb.16:
	movq	_PCAP_ERROR_NO_SUCH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_13
LBB0_17:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movq	_EACCES@GOTPCREL(%rip), %rdi
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rcx
	movq	%rcx, %rsi
	cmpq	(%rdi), %rdx
	movq	-280(%rbp), %rdi                ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rsi
LBB0_19:
	cmpq	(%rax), %rdx
	cmoveq	%rcx, %rsi
	movl	(%rsi), %ebx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	leaq	-272(%rbp), %r8
	jmp	LBB0_12
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_PCAP_DEV_PREFIX,4,2            ## @PCAP_DEV_PREFIX
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ## @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_EACCES,8,3                     ## @EACCES
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s: No DLPI device found"

	.no_dead_strip	_open_dlpi_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_dlpi_device
_open_dlpi_device:                      ; @open_dlpi_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldrb	w8, [x0]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #116
	mov	x1, x20
	mov	w2, #100
	bl	_strlcpy
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PCAP_DEV_PREFIX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAP_DEV_PREFIX@GOTPAGEOFF]
Lloh5:
	ldrsw	x3, [x8]
	str	x20, [sp]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #116
	mov	w1, #100
	bl	_pcap_snprintf
LBB0_3:
	add	x0, sp, #116
	mov	x1, x21
	mov	x2, x19
	bl	_split_dname
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
	add	x0, sp, #16
	add	x1, sp, #116
	mov	w2, #100
	bl	_strlcpy
	strb	wzr, [x22]
Lloh8:
	adrp	x23, _O_RDWR@GOTPAGE
Lloh9:
	ldr	x23, [x23, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x0, sp, #116
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_11
; %bb.5:
Lloh10:
	adrp	x24, _errno@GOTPAGE
Lloh11:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	ldr	x2, [x24]
Lloh12:
	adrp	x25, _ENOENT@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ENOENT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x2, x8
	b.ne	LBB0_9
; %bb.6:
	ldr	w1, [x23]
	add	x0, sp, #16
	bl	_open
	tbnz	w0, #31, LBB0_13
; %bb.7:
	mov	x22, x0
	str	xzr, [x21]
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	b	LBB0_11
LBB0_9:
Lloh17:
	adrp	x8, _EPERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _EACCES@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x2, x9
Lloh23:
	adrp	x9, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
Lloh25:
	adrp	x10, _PCAP_ERROR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PCAP_ERROR@GOTPAGEOFF]
	ccmp	x2, x8, #4, ne
	csel	x8, x9, x10, eq
	ldr	w22, [x8]
Lloh27:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x3, l_.str.1@PAGE
Lloh31:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #116
LBB0_10:
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x22
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_13:
	ldr	x2, [x24]
	ldr	x8, [x25]
	cmp	x2, x8
	b.ne	LBB0_15
; %bb.14:
Lloh35:
	adrp	x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGEOFF]
Lloh37:
	ldr	w22, [x8]
Lloh38:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.2@PAGE
Lloh42:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_pcap_snprintf
	b	LBB0_11
LBB0_15:
Lloh43:
	adrp	x8, _EPERM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
Lloh46:
	adrp	x9, _EACCES@GOTPAGE
Lloh47:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x2, x9
Lloh49:
	adrp	x9, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
Lloh51:
	adrp	x10, _PCAP_ERROR@GOTPAGE
Lloh52:
	ldr	x10, [x10, _PCAP_ERROR@GOTPAGEOFF]
	ccmp	x2, x8, #4, ne
	csel	x8, x9, x10, eq
	ldr	w22, [x8]
Lloh53:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x3, l_.str.1@PAGE
Lloh57:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x4, sp, #16
	b	LBB0_10
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_PCAP_DEV_PREFIX,4,2            ; @PCAP_DEV_PREFIX
	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ; @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_EACCES,8,3                     ; @EACCES
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s: No DLPI device found"

	.no_dead_strip	_open_dlpi_device
.subsections_via_symbols
