	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpcap_remoteact_getsock
_rpcap_remoteact_getsock:               ## @rpcap_remoteact_getsock
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_1
## %bb.14:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_pcap_snprintf
	movl	$1, (%r14)
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_1:
	movq	_activeHosts@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-40(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r15), %r12
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rsi
	movq	%r12, %rdi
	callq	_sock_cmpaddr
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movl	$0, (%r14)
	movq	-40(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_13:
	movq	%r15, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_freeaddrinfo
LBB0_11:
	movl	$0, (%r14)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.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	_activeHosts,8,3                ## @activeHosts
	.no_dead_strip	_rpcap_remoteact_getsock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpcap_remoteact_getsock
_rpcap_remoteact_getsock:               ; @rpcap_remoteact_getsock
	.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, x2
	mov	x19, x1
	mov	x21, x0
	str	xzr, [sp]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x21
	bl	_getaddrinfo
	cbz	w0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	bl	_gai_strerror
	mov	x3, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_pcap_snprintf
	mov	x20, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_12
LBB0_2:
Lloh13:
	adrp	x8, _activeHosts@GOTPAGE
Lloh14:
	ldr	x8, [x8, _activeHosts@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
	cbnz	x20, LBB0_7
LBB0_3:
	ldr	x0, [sp]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_freeaddrinfo
LBB0_5:
	mov	x20, #0
	str	wzr, [x19]
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [x20]
	cbz	x20, LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x22, [sp]
	cbz	x22, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x20, #8
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x22, #8]
	mov	x0, x21
	bl	_sock_cmpaddr
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x22, [x22]
	cbnz	x22, LBB0_9
	b	LBB0_6
LBB0_11:
	str	wzr, [x19]
	ldr	x0, [sp]
	bl	_freeaddrinfo
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.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	_activeHosts,8,3                ; @activeHosts
	.no_dead_strip	_rpcap_remoteact_getsock
.subsections_via_symbols
