	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_cleanup_rpcap
_pcap_cleanup_rpcap:                    ## @pcap_cleanup_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_activeHosts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	(%rbx), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rax)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_15:
	movl	24(%rbx), %esi
	movq	_RPCAP_MSG_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rpcap_createhdr
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sock_send
	movb	$1, %r15b
	jmp	LBB0_7
LBB0_4:
	movl	24(%rbx), %esi
	movq	_RPCAP_MSG_ENDCAP_REQ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-40(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rpcap_createhdr
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sock_send
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	(%rbx), %rdi
	movl	24(%rbx), %esi
	movl	(%r12), %edx
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_rpcap_process_msg_header
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	movl	-40(%rbp), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_rpcap_discard
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sock_close
	movq	$0, 8(%rbx)
LBB0_9:
	testb	%r15b, %r15b
	je	LBB0_12
## %bb.10:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sock_close
LBB0_12:
	movq	$0, (%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_free
	movq	$0, 16(%rbx)
LBB0_14:
	xorl	%eax, %eax
	callq	_sock_cleanup
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_activeHosts,8,3                ## @activeHosts
	.comm	_RPCAP_MSG_CLOSE,4,2            ## @RPCAP_MSG_CLOSE
	.comm	_RPCAP_MSG_ENDCAP_REQ,4,2       ## @RPCAP_MSG_ENDCAP_REQ
	.no_dead_strip	_pcap_cleanup_rpcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_cleanup_rpcap
_pcap_cleanup_rpcap:                    ; @pcap_cleanup_rpcap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _activeHosts@GOTPAGE
Lloh1:
	ldr	x8, [x8, _activeHosts@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_4:
	ldr	w1, [x19, #24]
Lloh3:
	adrp	x8, _RPCAP_MSG_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPCAP_MSG_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w3, #0
	mov	w4, #0
	bl	_rpcap_createhdr
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	mov	x3, #0
	mov	w4, #0
	bl	_sock_send
	mov	w21, #1
	b	LBB0_9
LBB0_5:
	ldr	w1, [x19, #24]
Lloh6:
	adrp	x20, _RPCAP_MSG_ENDCAP_REQ@GOTPAGE
Lloh7:
	ldr	x20, [x20, _RPCAP_MSG_ENDCAP_REQ@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x0, sp, #8
	mov	w3, #0
	mov	w4, #0
	bl	_rpcap_createhdr
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	w2, #4
	mov	x3, #0
	mov	w4, #0
	bl	_sock_send
	mov	w21, #0
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	x0, [x19]
	ldr	w1, [x19, #24]
	ldr	w2, [x20]
	add	x3, sp, #8
	mov	x4, #0
	bl	_rpcap_process_msg_header
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
	ldr	w1, [sp, #8]
	mov	x2, #0
	bl	_rpcap_discard
LBB0_8:
	mov	w21, #0
LBB0_9:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_11
; %bb.10:
	mov	x1, #0
	mov	w2, #0
	bl	_sock_close
	str	xzr, [x19, #8]
LBB0_11:
	cbz	w21, LBB0_14
; %bb.12:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.13:
	mov	x1, #0
	mov	w2, #0
	bl	_sock_close
LBB0_14:
	str	xzr, [x19]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_free
	str	xzr, [x19, #16]
LBB0_16:
	bl	_sock_cleanup
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_activeHosts,8,3                ; @activeHosts
	.comm	_RPCAP_MSG_CLOSE,4,2            ; @RPCAP_MSG_CLOSE
	.comm	_RPCAP_MSG_ENDCAP_REQ,4,2       ; @RPCAP_MSG_ENDCAP_REQ
	.no_dead_strip	_pcap_cleanup_rpcap
.subsections_via_symbols
