	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_rpcap
_pcap_read_rpcap:                       ## @pcap_read_rpcap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_3
## %bb.1:
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	_pcap_startcapture_remote
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_12
LBB0_3:
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	cmpl	%r13d, %ebx
	jl	LBB0_6
	.p2align	4, 0x90
LBB0_5:
	movl	%r13d, %edi
	callq	_PACKET_COUNT_IS_UNLIMITED
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	leaq	-56(%rbp), %rdx
	callq	_pcap_read_nocb_remote
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	*%r15
	incl	%ebx
	cmpl	%r13d, %ebx
	jge	LBB0_5
	jmp	LBB0_6
LBB0_8:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	cmpq	$0, (%r12)
	je	LBB0_12
LBB0_10:
	movq	$0, (%r12)
	movq	_PCAP_ERROR_BREAK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR_BREAK,4,2           ## @PCAP_ERROR_BREAK
	.no_dead_strip	_pcap_read_rpcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_rpcap
_pcap_read_rpcap:                       ; @pcap_read_rpcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
LBB0_2:
	mov	w23, #0
	cmp	w23, w22
	b.lt	LBB0_4
LBB0_3:
	mov	x0, x22
	bl	_PACKET_COUNT_IS_UNLIMITED
	cbz	x0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_pcap_read_nocb_remote
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp]
	add	x1, sp, #8
	mov	x0, x20
	blr	x21
	add	w23, w23, #1
	cmp	w23, w22
	b.ge	LBB0_3
	b	LBB0_4
LBB0_7:
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.8:
	mov	x23, x0
	b	LBB0_13
LBB0_9:
	mov	x0, x19
	bl	_pcap_startcapture_remote
	cbz	x0, LBB0_2
; %bb.10:
	mov	w23, #-1
	b	LBB0_13
LBB0_11:
	ldr	x8, [x19]
	cbz	x8, LBB0_13
LBB0_12:
	str	xzr, [x19]
Lloh0:
	adrp	x8, _PCAP_ERROR_BREAK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR_BREAK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
LBB0_13:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR_BREAK,4,2           ; @PCAP_ERROR_BREAK
	.no_dead_strip	_pcap_read_rpcap
.subsections_via_symbols
