	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_dlpi
_pcap_read_dlpi:                        ## @pcap_read_dlpi
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDLBUF@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%r12), %eax
	movl	%eax, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	%r13, -104(%rbp)
	movq	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	movl	$0, -68(%rbp)
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.11:
	movq	16(%rbx), %r8
LBB0_12:
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_pcap_process_pkts
	jmp	LBB0_15
LBB0_1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx), %rax
	addq	24(%rbx), %rax
	movq	%rax, -144(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -136(%rbp)
	movl	$0, -132(%rbp)
	leaq	-160(%rbp), %r14
	leaq	-68(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-132(%rbp), %r9d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r9d, %r9d
	jne	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 40(%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -104(%rbp)
	movl	(%r12), %eax
	movl	%eax, -96(%rbp)
	movl	$0, -92(%rbp)
	movl	36(%rbx), %edi
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_getmsg
	testq	%rax, %rax
	jns	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r9d, %r9d
	cmpl	$128, %edx
	je	LBB0_9
## %bb.6:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_3:
	movq	$0, 40(%rbx)
	movl	$-2, %eax
	jmp	LBB0_14
LBB0_10:
	movslq	4(%rbx), %r8
	shlq	$2, %r8
	addq	24(%rbx), %r8
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_7:
	movl	32(%rbx), %edi
	leaq	L_.str(%rip), %rcx
	movl	$4, %esi
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %eax
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDLBUF,4,2                   ## @MAXDLBUF
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getmsg"

	.no_dead_strip	_pcap_read_dlpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_dlpi
_pcap_read_dlpi:                        ; @pcap_read_dlpi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #96
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _MAXDLBUF@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MAXDLBUF@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	ldr	w8, [x24]
	stur	w8, [x29, #-120]
	stp	xzr, x25, [x29, #-112]
	stur	xzr, [x29, #-96]
	stur	wzr, [x29, #-88]
	stur	wzr, [x29, #-76]
	ldr	w5, [x0]
	cbz	w5, LBB0_5
; %bb.1:
	ldr	x4, [x19, #16]
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_pcap_process_pkts
LBB0_3:
	mov	sp, x23
	ldur	x8, [x29, #-72]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.4:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x19, #24]
	ldp	w9, w10, [x19, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9
	stur	x8, [x29, #-144]
	stp	w10, wzr, [x29, #-136]
Lloh10:
	adrp	x26, _errno@GOTPAGE
Lloh11:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	w5, [x29, #-132]
	cbnz	w5, LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	stur	x25, [x29, #-104]
	ldr	w8, [x24]
	stp	w8, wzr, [x29, #-96]
	ldr	w0, [x19, #36]
	sub	x1, x29, #120
	sub	x2, x29, #160
	sub	x3, x29, #76
	bl	_getmsg
	tbz	x0, #63, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x26]
	cmp	w2, #128
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w5, #0
	cbz	w5, LBB0_7
LBB0_11:
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #4]
	add	x4, x8, x9, lsl #2
	b	LBB0_2
LBB0_12:
	str	xzr, [x19, #40]
	mov	w0, #-2
	b	LBB0_3
LBB0_13:
	cmp	w2, #129
	b.ne	LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_3
LBB0_15:
	ldr	w0, [x19, #32]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #4
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
	b	LBB0_3
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDLBUF,4,2                   ; @MAXDLBUF
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getmsg"

	.no_dead_strip	_pcap_read_dlpi
.subsections_via_symbols
