	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_remote_dest
_recv_remote_dest:                      ## @recv_remote_dest
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -100(%rbp)                ## 4-byte Spill
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	leaq	(%r12,%rax), %rsi
	subl	%eax, %r13d
	movl	%r15d, %edi
	movl	%r13d, %edx
	callq	_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
	movl	(%r14), %r13d
	cmpl	%ebx, %r13d
	jg	LBB0_3
LBB0_5:
	movq	_ctx@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movslq	-100(%rbp), %rax                ## 4-byte Folded Reload
	movq	_MSG_SSCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	(%rax,%rax,8), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	addq	%rax, %rbx
	leaq	(%rbx,%r13), %rdx
	addq	$20, %rdx
	leaq	16(%r13,%rbx), %rcx
	leaq	12(%r13,%rbx), %r8
	leaq	8(%r13,%rbx), %r9
	leaq	4(%r13,%rbx), %rax
	leaq	-96(%rbp), %r14
	movq	%r12, %rdi
	pushq	%r14
	pushq	%rax
	callq	_sscanf
	addq	$16, %rsp
	leaq	(%rbx,%r13), %r12
	addq	$24, %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wire_gid_to_gid
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	$33, %ecx
	callq	_inet_ntop
	movq	_ADDR_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	20(%r13,%rbx), %edx
	movl	16(%r13,%rbx), %ecx
	movl	12(%r13,%rbx), %r8d
	movl	4(%r13,%rbx), %eax
	movl	8(%r13,%rbx), %r9d
	leaq	L_.str.2(%rip), %rsi
	pushq	%r14
	pushq	%rax
	callq	_printf
	addq	$16, %rsp
	movl	%r15d, (%r13,%rbx)
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, %edi
	movl	-100(%rbp), %esi                ## 4-byte Reload
	callq	_recv_remote_dest.cold.1
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function recv_remote_dest.cold.1
_recv_remote_dest.cold.1:               ## @recv_remote_dest.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MSG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_SIZE,4,2                   ## @MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client read"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"%d/%d: Couldn't read remote address [%d]\n"

	.comm	_ctx,8,3                        ## @ctx
	.comm	_MSG_SSCAN,4,2                  ## @MSG_SSCAN
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_ADDR_FORMAT,8,3                ## @ADDR_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"remote"

	.no_dead_strip	_recv_remote_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_remote_dest
_recv_remote_dest:                      ; @recv_remote_dest
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _MSG_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSG_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x21, w22, sxtw
	sub	w2, w8, w22
	mov	x0, x19
	bl	_read
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	add	w22, w0, w22
	cmp	w8, w22
	b.gt	LBB0_2
LBB0_4:
Lloh7:
	adrp	x8, _ctx@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ctx@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _MSG_SSCAN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MSG_SSCAN@GOTPAGEOFF]
	mov	w10, #28
	smaddl	x22, w20, w10, x8
	add	x2, x22, #20
Lloh12:
	ldr	w1, [x9]
	add	x3, x22, #16
	add	x4, x22, #12
	add	x5, x22, #8
	add	x6, x22, #4
	sub	x7, x29, #89
	mov	x0, x21
	bl	_sscanf
	add	x20, x22, #24
	sub	x0, x29, #89
	mov	x1, x20
	bl	_wire_gid_to_gid
Lloh13:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	sub	x2, x29, #89
	mov	x1, x20
	mov	w3, #33
	bl	_inet_ntop
Lloh16:
	adrp	x8, _ADDR_FORMAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADDR_FORMAT@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	ldp	w3, w2, [x22, #16]
	ldp	w5, w4, [x22, #8]
	ldr	w6, [x22, #4]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x7, x29, #89
	bl	_printf
	mov	w0, #0
	str	w19, [x22]
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x22
	mov	x1, x20
	bl	_recv_remote_dest.cold.1
	mov	w0, #-1
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function recv_remote_dest.cold.1
_recv_remote_dest.cold.1:               ; @recv_remote_dest.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _MSG_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_SIZE@GOTPAGEOFF]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh33:
	ldr	w3, [x8]
	mov	x2, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fprintf
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh33
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_SIZE,4,2                   ; @MSG_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client read"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"%d/%d: Couldn't read remote address [%d]\n"

	.comm	_ctx,8,3                        ; @ctx
	.comm	_MSG_SSCAN,4,2                  ; @MSG_SSCAN
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_ADDR_FORMAT,8,3                ; @ADDR_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"remote"

	.no_dead_strip	_recv_remote_dest
.subsections_via_symbols
