	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_remoteact_close           ## -- Begin function pcap_remoteact_close
	.p2align	4, 0x90
_pcap_remoteact_close:                  ## @pcap_remoteact_close
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_activeHosts@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	$0, -48(%rbp)
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.19:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_17:
	movl	$-1, %ebx
	jmp	LBB0_18
LBB0_1:
	testq	%r15, %r15
	je	LBB0_14
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %r12
	movq	(%r15), %rax
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%r15), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rsi
	movq	%rbx, %rdi
	callq	_sock_cmpaddr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_6
	jmp	LBB0_13
LBB0_7:
	movl	12(%r15), %esi
	movq	_RPCAP_MSG_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rpcap_createhdr
	movl	8(%r15), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	%rbx, %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	callq	_sock_send
	movl	8(%r15), %edi
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movl	(%r13), %edx
	movq	%r14, %rsi
	callq	_sock_close
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	sete	%bl
	negl	%ebx
	jmp	LBB0_10
LBB0_14:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_freeaddrinfo
LBB0_16:
	xorl	%eax, %eax
	callq	_sock_cleanup
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_17
LBB0_8:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sock_close
	movl	$-1, %ebx
LBB0_10:
	movq	_activeHosts@GOTPCREL(%rip), %rcx
	movq	(%r15), %rax
	testq	%r12, %r12
	jne	LBB0_12
## %bb.11:
	movq	%rcx, %r12
LBB0_12:
	movq	%rax, (%r12)
	movq	-48(%rbp), %rdi
	callq	_freeaddrinfo
	movq	%r15, %rdi
	callq	_free
	xorl	%eax, %eax
	callq	_sock_cleanup
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_activeHosts,8,3                ## @activeHosts
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo() %s"

	.comm	_RPCAP_MSG_CLOSE,4,2            ## @RPCAP_MSG_CLOSE
L_.str.2:                               ## @.str.2
	.asciz	"The host you want to close the active connection is not known"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_remoteact_close           ; -- Begin function pcap_remoteact_close
	.p2align	2
_pcap_remoteact_close:                  ; @pcap_remoteact_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _activeHosts@GOTPAGE
Lloh1:
	ldr	x22, [x22, _activeHosts@GOTPAGEOFF]
	ldr	x20, [x22]
	str	xzr, [sp, #16]
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh2:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_3
; %bb.1:
Lloh10:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w20, [x8]
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x20
LBB0_2:
	bl	_pcap_snprintf
	mov	w19, #-1
	b	LBB0_17
LBB0_3:
	cbz	x20, LBB0_12
; %bb.4:
	mov	x23, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	mov	x23, x20
	mov	x20, x8
	cbz	x8, LBB0_12
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x24, [sp, #16]
	cbz	x24, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x20, #16
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x24, #8]
	mov	x0, x21
	bl	_sock_cmpaddr
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x24, [x24]
	cbnz	x24, LBB0_8
	b	LBB0_5
LBB0_10:
	ldr	w1, [x20, #12]
Lloh15:
	adrp	x8, _RPCAP_MSG_CLOSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RPCAP_MSG_CLOSE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w3, #0
	mov	w4, #0
	bl	_rpcap_createhdr
	ldr	w0, [x20, #8]
Lloh18:
	adrp	x21, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh19:
	ldr	x21, [x21, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w4, [x21]
	add	x1, sp, #8
	mov	w2, #4
	mov	x3, x19
	bl	_sock_send
	mov	x8, x0
	ldr	w0, [x20, #8]
	tbnz	x8, #63, LBB0_15
; %bb.11:
	ldr	w2, [x21]
	mov	x1, x19
	bl	_sock_close
	cmn	w0, #1
	csetm	w19, eq
	b	LBB0_16
LBB0_12:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_freeaddrinfo
LBB0_14:
	bl	_sock_cleanup
Lloh20:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_2
LBB0_15:
	mov	x1, #0
	mov	w2, #0
	bl	_sock_close
	mov	w19, #-1
LBB0_16:
	ldr	x8, [x20]
	cmp	x23, #0
	csel	x9, x22, x23, eq
	str	x8, [x9]
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
	mov	x0, x20
	bl	_free
	bl	_sock_cleanup
LBB0_17:
	mov	x0, x19
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_activeHosts,8,3                ; @activeHosts
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0"

	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo() %s"

	.comm	_RPCAP_MSG_CLOSE,4,2            ; @RPCAP_MSG_CLOSE
l_.str.2:                               ; @.str.2
	.asciz	"The host you want to close the active connection is not known"

.subsections_via_symbols
