	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_hostname
_remote_hostname:                       ## @remote_hostname
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_ssh_remote_ipaddr
	movq	%rax, %rbx
	movl	$48, -52(%rbp)
	leaq	-192(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_ssh_packet_get_connection_in
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_getpeername
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	-192(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_ipv64_normalise_mapped
	movq	-192(%rbp), %rax
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	$4, -52(%rbp)
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_debug3
	movl	-52(%rbp), %esi
	movq	_NI_NAMEREQD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-192(%rbp), %rdi
	movq	%r13, %r12
	movq	%r13, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	callq	_getnameinfo
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	jmp	LBB0_20
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_debug
	movq	%rbx, %rdi
	jmp	LBB0_20
LBB0_6:
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_lowercase
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	-192(%rbp), %rax
	movq	%rax, -136(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	je	LBB0_9
## %bb.17:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
LBB0_18:
	callq	_logit
	movq	%rbx, %rdi
	jmp	LBB0_20
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_logit
	movq	-64(%rbp), %rdi
	callq	_freeaddrinfo
	movq	%rbx, %rdi
	jmp	LBB0_20
LBB0_9:
	movq	-80(%rbp), %rdi
	movq	%rdi, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.10:
	movq	%rbx, %r15
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %r14
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rax
	movq	32(%rax), %rdi
	movq	%rdi, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rax
	movl	16(%rdi), %esi
	movl	(%r14), %ebx
	subq	$8, %rsp
	movq	%rax, %rdi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	callq	_getnameinfo
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	-80(%rbp), %rdi
	movq	%r15, %rbx
LBB0_15:
	callq	_freeaddrinfo
	cmpq	$0, -64(%rbp)
	je	LBB0_16
## %bb.19:
	movq	%r12, %rdi
LBB0_20:
	callq	_strdup
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	jmp	LBB0_18
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NI_MAXHOST,4,2                 ## @NI_MAXHOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getpeername failed: %.100s"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET6,8,3                   ## @AF_INET6
L_.str.1:                               ## @.str.1
	.asciz	"Trying to reverse map address %.100s."

	.comm	_NI_NAMEREQD,4,2                ## @NI_NAMEREQD
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
L_.str.2:                               ## @.str.2
	.asciz	"Nasty PTR record \"%s\" is set up for %s, ignoring"

	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.3:                               ## @.str.3
	.asciz	"reverse mapping checking getaddrinfo for %.700s [%s] failed."

	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
L_.str.4:                               ## @.str.4
	.asciz	"Address %.100s maps to %.600s, but this does not map back to the address."

	.no_dead_strip	_remote_hostname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_hostname
_remote_hostname:                       ; @remote_hostname
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #128
	mov	x24, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
	ldr	w23, [x8]
	mov	x9, x23
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x23, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	ldr	w21, [x8]
	mov	x9, x21
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_ssh_remote_ipaddr
	mov	x19, x0
	mov	w8, #48
	stur	w8, [x29, #-124]
	sub	x0, x29, #120
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	mov	x0, x24
	bl	_ssh_packet_get_connection_in
	sub	x1, x29, #120
	sub	x2, x29, #124
	bl	_getpeername
	tbnz	x0, #63, LBB0_5
; %bb.1:
	sub	x0, x29, #120
	sub	x1, x29, #124
	bl	_ipv64_normalise_mapped
	ldur	x8, [x29, #-120]
Lloh9:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #4
	stur	w8, [x29, #-124]
LBB0_3:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_debug3
	ldur	w1, [x29, #-124]
Lloh14:
	adrp	x8, _NI_NAMEREQD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NI_NAMEREQD@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	sub	x0, x29, #120
	mov	x2, x20
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	b	LBB0_19
LBB0_5:
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	mov	x0, x19
	b	LBB0_19
LBB0_6:
	sub	x0, x29, #176
	mov	w1, #0
	mov	w2, #48
	bl	_memset
Lloh22:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _AI_NUMERICHOST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-136]
	sub	x2, x29, #176
	sub	x3, x29, #184
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x20
	bl	_lowercase
	sub	x0, x29, #176
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldur	x8, [x29, #-120]
	stur	x8, [x29, #-168]
Lloh28:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stur	w8, [x29, #-136]
	sub	x2, x29, #176
	sub	x3, x29, #192
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	cbz	x0, LBB0_11
; %bb.8:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x19
LBB0_9:
	bl	_logit
	mov	x0, x19
	b	LBB0_19
LBB0_10:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_logit
	ldur	x0, [x29, #-184]
	bl	_freeaddrinfo
	mov	x0, x19
	b	LBB0_19
LBB0_11:
	ldur	x0, [x29, #-192]
	stur	x0, [x29, #-184]
	cbz	x0, LBB0_17
; %bb.12:
Lloh35:
	adrp	x23, _NI_NUMERICHOST@GOTPAGE
Lloh36:
	ldr	x23, [x23, _NI_NUMERICHOST@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldur	x8, [x29, #-184]
	ldr	x0, [x8, #32]
	stur	x0, [x29, #-184]
	cbz	x0, LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #24]
	ldr	w1, [x0, #16]
	ldr	w6, [x23]
	mov	x0, x8
	mov	x2, x22
	mov	x3, x21
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_strcmp
	cbnz	x0, LBB0_13
LBB0_16:
	ldur	x0, [x29, #-192]
LBB0_17:
	bl	_freeaddrinfo
	ldur	x8, [x29, #-184]
	cbz	x8, LBB0_21
; %bb.18:
	mov	x0, x20
LBB0_19:
	bl	_strdup
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	sub	sp, x29, #64
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_21:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	b	LBB0_9
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_NI_MAXHOST,4,2                 ; @NI_MAXHOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getpeername failed: %.100s"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET6,8,3                   ; @AF_INET6
l_.str.1:                               ; @.str.1
	.asciz	"Trying to reverse map address %.100s."

	.comm	_NI_NAMEREQD,4,2                ; @NI_NAMEREQD
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
l_.str.2:                               ; @.str.2
	.asciz	"Nasty PTR record \"%s\" is set up for %s, ignoring"

	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.3:                               ; @.str.3
	.asciz	"reverse mapping checking getaddrinfo for %.700s [%s] failed."

	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
l_.str.4:                               ; @.str.4
	.asciz	"Address %.100s maps to %.600s, but this does not map back to the address."

	.no_dead_strip	_remote_hostname
.subsections_via_symbols
