	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realhostname                   ## -- Begin function realhostname
	.p2align	4, 0x90
_realhostname:                          ## @realhostname
	.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	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_HOSTNAME_INVALIDADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_gethostbyaddr
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	8(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_strlcpy
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_trimdomain
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_strlen
	cmpq	%r13, %rax
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	ja	LBB0_11
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r12
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_strlcpy
	movq	%rbx, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	_HOSTNAME_INCORRECTNAME@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	movq	%r12, %r13
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.9:
	movq	%r13, %r12
	jmp	LBB0_10
LBB0_1:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:
	movq	_HOSTNAME_INVALIDNAME@GOTPCREL(%rip), %r14
LBB0_10:
	movl	(%r14), %ebx
	movq	%r12, %rsp
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_11:
	movl	(%r15), %edi
	callq	_inet_ntoa
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_strncpy
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_strncpy
	movq	_HOSTNAME_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rsp
	jmp	LBB0_12
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_HOSTNAME_INVALIDADDR,4,2       ## @HOSTNAME_INVALIDADDR
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_HOSTNAME_INVALIDNAME,4,2       ## @HOSTNAME_INVALIDNAME
	.comm	_HOSTNAME_INCORRECTNAME,4,2     ## @HOSTNAME_INCORRECTNAME
	.comm	_HOSTNAME_FOUND,4,2             ## @HOSTNAME_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realhostname                   ; -- Begin function realhostname
	.p2align	2
_realhostname:                          ; @realhostname
	.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, #16
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
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	x26, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _MAXHOSTNAMELEN@GOTPAGEOFF]
	ldr	w25, [x26]
	mov	x9, x25
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh7:
	adrp	x8, _HOSTNAME_INVALIDADDR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HOSTNAME_INVALIDADDR@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #4
	bl	_gethostbyaddr
	cbz	x0, LBB0_10
; %bb.1:
	mov	x24, x0
	ldr	w1, [x0, #8]
	mov	x0, x22
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	mov	x0, x22
	bl	_trimdomain
	mov	x0, x22
	bl	_strlen
	cmp	x0, x19
	b.hi	LBB0_10
; %bb.2:
	mov	x25, sp
	ldr	w2, [x26]
	mov	x9, x2
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldr	w1, [x24, #8]
	mov	x0, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strlcpy
	mov	x0, x23
	bl	_gethostbyname
	cbz	x0, LBB0_7
; %bb.3:
	mov	x23, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.4:
Lloh15:
	adrp	x24, _HOSTNAME_INCORRECTNAME@GOTPAGE
Lloh16:
	ldr	x24, [x24, _HOSTNAME_INCORRECTNAME@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	add	x9, x8, #8
	str	x9, [x23]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_5
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x24, _HOSTNAME_INVALIDNAME@GOTPAGE
Lloh18:
	ldr	x24, [x24, _HOSTNAME_INVALIDNAME@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x24, _HOSTNAME_INCORRECTNAME@GOTPAGE
Lloh20:
	ldr	x24, [x24, _HOSTNAME_INCORRECTNAME@GOTPAGEOFF]
LBB0_9:
	ldr	w23, [x24]
	mov	sp, x25
LBB0_10:
	ldr	w0, [x21]
	bl	_inet_ntoa
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_strncpy
LBB0_11:
	ldur	x8, [x29, #-72]
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_14
; %bb.12:
	mov	x0, x23
	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_13:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_strncpy
Lloh24:
	adrp	x8, _HOSTNAME_FOUND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HOSTNAME_FOUND@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	mov	sp, x25
	b	LBB0_11
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_HOSTNAME_INVALIDADDR,4,2       ; @HOSTNAME_INVALIDADDR
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_HOSTNAME_INVALIDNAME,4,2       ; @HOSTNAME_INVALIDNAME
	.comm	_HOSTNAME_INCORRECTNAME,4,2     ; @HOSTNAME_INCORRECTNAME
	.comm	_HOSTNAME_FOUND,4,2             ; @HOSTNAME_FOUND
.subsections_via_symbols
