	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_libdlpi
_pcap_read_libdlpi:                     ## @pcap_read_libdlpi
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.12:
	movq	40(%rbx), %r14
LBB0_10:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_pcap_process_pkts
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	48(%rbx), %r12
	movq	_DLPI_SUCCESS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%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, 32(%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	movslq	16(%rbx), %r14
	shlq	$2, %r14
	addq	24(%rbx), %r14
	movl	(%r12), %edi
	movq	$0, (%rsp)
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	leaq	-56(%rbp), %r8
	movl	$-1, %r9d
	callq	_dlpi_recv
	cmpl	(%r13), %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	movq	_DL_SYSERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r9d, %r9d
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_7:
	movl	(%r12), %edi
	callq	_dlpi_linkname
	movl	20(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_pcap_libdlpi_err
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_3:
	movq	$0, 32(%rbx)
	movl	$-2, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DLPI_SUCCESS,4,2               ## @DLPI_SUCCESS
	.comm	_DL_SYSERR,4,2                  ## @DL_SYSERR
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dlpi_recv"

	.no_dead_strip	_pcap_read_libdlpi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_libdlpi
_pcap_read_libdlpi:                     ; @pcap_read_libdlpi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w5, [x0]
	cbz	w5, LBB0_4
; %bb.1:
	ldr	x23, [x19, #40]
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x23
	bl	_pcap_process_pkts
LBB0_3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x25, [x19, #48]
Lloh0:
	adrp	x26, _DLPI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _DLPI_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x27, _DL_SYSERR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DL_SYSERR@GOTPAGEOFF]
Lloh4:
	adrp	x28, _EINTR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w5, [sp, #8]
	cbnz	w5, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	str	x8, [sp, #8]
	ldr	x8, [x19, #24]
	ldrsw	x9, [x19, #16]
	add	x23, x8, x9, lsl #2
	ldr	w0, [x25]
	add	x4, sp, #8
	mov	x1, #0
	mov	x2, #0
	mov	x3, x23
	mov	w5, #-1
	mov	x6, #0
	bl	_dlpi_recv
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w5, #0
	cbz	w5, LBB0_6
	b	LBB0_2
LBB0_11:
	str	xzr, [x19, #32]
	mov	w0, #-2
	b	LBB0_3
LBB0_12:
	ldr	w0, [x25]
	bl	_dlpi_linkname
	ldr	w3, [x19, #20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_pcap_libdlpi_err
	mov	w0, #-1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DLPI_SUCCESS,4,2               ; @DLPI_SUCCESS
	.comm	_DL_SYSERR,4,2                  ; @DL_SYSERR
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dlpi_recv"

	.no_dead_strip	_pcap_read_libdlpi
.subsections_via_symbols
