	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetIpHostName                  ## -- Begin function GetIpHostName
	.p2align	4, 0x90
_GetIpHostName:                         ## @GetIpHostName
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_htonl
	movq	_bDoShowNumbers@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_1
LBB0_8:
	movl	%eax, %edx
	shrl	$24, %edx
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movzbl	%ah, %ebx
	movzbl	%al, %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %r8d
	callq	_sprintf
LBB0_9:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movb	$0, (%r15)
	cmpl	$16777343, %ebx                 ## imm = 0x100007F
	je	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.3:
	testq	%r12, %r12
	jne	LBB0_4
	jmp	LBB0_8
LBB0_6:
	testq	%r12, %r12
	je	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_gethostname
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	callq	_WSAGetLastError
	movl	%eax, %edi
	callq	_DoFormatMessage
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strncpy
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_bDoShowNumbers,8,3             ## @bDoShowNumbers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d.%d.%d.%d"

L_.str.1:                               ## @.str.1
	.asciz	"localhost"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetIpHostName                  ; -- Begin function GetIpHostName
	.p2align	2
_GetIpHostName:                         ; @GetIpHostName
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	mov	x0, x1
	bl	_htonl
Lloh0:
	adrp	x8, _bDoShowNumbers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bDoShowNumbers@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	lsr	w2, w0, #24
	ubfx	w3, w0, #16, #8
	and	w5, w0, #0xff
	ubfx	w4, w0, #8, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	strb	wzr, [x19]
	mov	w8, #127
	movk	w8, #256, lsl #16
	cmp	w22, w8
	b.eq	LBB0_6
; %bb.4:
	cbnz	w22, LBB0_1
; %bb.5:
	cbnz	x21, LBB0_7
	b	LBB0_1
LBB0_6:
	cbz	x21, LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_gethostname
	cbz	x0, LBB0_2
; %bb.8:
	bl	_WSAGetLastError
	bl	_DoFormatMessage
	b	LBB0_2
LBB0_9:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #10
	bl	_strncpy
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_bDoShowNumbers,8,3             ; @bDoShowNumbers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d.%d.%d.%d"

l_.str.1:                               ; @.str.1
	.asciz	"localhost"

.subsections_via_symbols
