	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_stats_rpcap
_rpcap_stats_rpcap:                     ## @rpcap_stats_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	%rdi, %rbx
	movq	_PCAP_STATS_STANDARD@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rbx), %r12
	cmpl	$0, 16(%r12)
	je	LBB0_8
## %bb.2:
	movl	12(%r12), %esi
	movq	_RPCAP_MSG_STATS_REQ@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rpcap_createhdr
	movl	(%r12), %edi
	movq	(%rbx), %rcx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_sock_send
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movl	(%r12), %edi
	movl	12(%r12), %esi
	movl	(%r13), %edx
	movq	(%rbx), %r8
	leaq	-48(%rbp), %rcx
	callq	_rpcap_process_msg_header
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.4:
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	(%r12), %edi
	movq	(%rbx), %r8
	leaq	-64(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	movl	$16, %edx
	callq	_rpcap_recv
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	movl	-52(%rbp), %edi
	callq	_ntohl
	movq	%rax, 32(%r14)
	movl	-56(%rbp), %edi
	callq	_ntohl
	movq	%rax, 24(%r14)
	movl	-60(%rbp), %edi
	callq	_ntohl
	movq	%rax, 16(%r14)
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	(%rbx), %rdx
	callq	_rpcap_discard
	cmpl	$-1, %eax
	jne	LBB0_11
LBB0_6:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_rpcap_discard
	jmp	LBB0_11
LBB0_7:
	movl	%edx, %ecx
	movq	(%rbx), %rdi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_pcap_snprintf
LBB0_10:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r14)
	movq	$0, 32(%r14)
LBB0_11:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_STATS_STANDARD,4,2        ## @PCAP_STATS_STANDARD
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid stats mode %d"

	.comm	_RPCAP_MSG_STATS_REQ,4,2        ## @RPCAP_MSG_STATS_REQ
	.comm	_PCAP_STATS_EX,4,2              ## @PCAP_STATS_EX
	.no_dead_strip	_rpcap_stats_rpcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_stats_rpcap
_rpcap_stats_rpcap:                     ; @rpcap_stats_rpcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, _PCAP_STATS_STANDARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_STATS_STANDARD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_7
; %bb.1:
	mov	x19, x1
	ldr	x21, [x20, #8]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_10
; %bb.2:
	ldr	w1, [x21, #12]
Lloh3:
	adrp	x22, _RPCAP_MSG_STATS_REQ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RPCAP_MSG_STATS_REQ@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #24
	mov	w3, #0
	mov	w4, #0
	bl	_rpcap_createhdr
	ldr	w0, [x21]
	ldr	x3, [x20]
Lloh5:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	add	x1, sp, #24
	mov	w2, #4
	bl	_sock_send
	tbnz	x0, #63, LBB0_8
; %bb.3:
	ldr	w0, [x21]
	ldr	w1, [x21, #12]
	ldr	w2, [x22]
	ldr	x4, [x20]
	add	x3, sp, #24
	bl	_rpcap_process_msg_header
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [sp, #24]
	str	w8, [sp, #4]
	ldr	w0, [x21]
	ldr	x4, [x20]
	add	x1, sp, #8
	add	x3, sp, #4
	mov	w2, #16
	bl	_rpcap_recv
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [sp, #20]
	bl	_ntohl
	str	x0, [x19, #32]
	ldr	w0, [sp, #16]
	bl	_ntohl
	str	x0, [x19, #24]
	ldr	w0, [sp, #12]
	bl	_ntohl
	str	x0, [x19, #16]
	ldr	w0, [x21]
	ldr	w1, [sp, #4]
	ldr	x2, [x20]
	bl	_rpcap_discard
	cmn	w0, #1
	b.ne	LBB0_9
LBB0_6:
	ldr	w0, [x21]
	ldr	w1, [sp, #4]
	mov	x2, #0
	bl	_rpcap_discard
	b	LBB0_8
LBB0_7:
	mov	x3, x2
	ldr	x0, [x20]
Lloh8:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pcap_snprintf
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_10:
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_STATS_STANDARD,4,2        ; @PCAP_STATS_STANDARD
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid stats mode %d"

	.comm	_RPCAP_MSG_STATS_REQ,4,2        ; @RPCAP_MSG_STATS_REQ
	.comm	_PCAP_STATS_EX,4,2              ; @PCAP_STATS_EX
	.no_dead_strip	_rpcap_stats_rpcap
.subsections_via_symbols
