	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proxy_gethostbyname            ## -- Begin function proxy_gethostbyname
	.p2align	4, 0x90
_proxy_gethostbyname:                   ## @proxy_gethostbyname
	.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	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_PFUNC
	leaq	8(%rbx), %r12
	movq	(%rbx), %rax
	movq	%r12, (%rax)
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	(%rbx), %rax
	movq	%rax, 16(%rbx)
	addq	$8, %rax
	movq	%rax, 24(%rbx)
	movq	$0, 8(%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$8, 32(%rbx)
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_gethostname
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movq	%r14, %rdi
	callq	_hostsreader_get_numeric_ip_for_name
	movq	_ip_type_invalid@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.6:
	movq	%r14, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_at_get_ip_for_host
	movq	%rax, (%r12)
	cmpq	(%r15), %rax
	jne	LBB0_4
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_1:
	leaq	-304(%rbp), %rdi
	callq	_inet_addr
	movq	%rax, (%r12)
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.2:
	movq	_ip_type_localhost@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	%rax, (%r12)
LBB0_4:
	leaq	16(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gethostbyname_data_setstring
	leaq	L_.str(%rip), %rdi
	callq	_PDEBUG
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%r15, %rax
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_ip_type_localhost,8,3          ## @ip_type_localhost
	.comm	_ip_type_invalid,8,3            ## @ip_type_invalid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return hostent space\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proxy_gethostbyname            ; -- Begin function proxy_gethostbyname
	.p2align	2
_proxy_gethostbyname:                   ; @proxy_gethostbyname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	mov	x21, 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, #-56]
	bl	_PFUNC
	mov	x22, x21
	str	xzr, [x22, #8]!
	ldr	x8, [x21]
	str	x22, [x8]
	ldr	x8, [x21]
	str	xzr, [x8, #8]
	ldr	x8, [x21]
	mov	x19, x21
	str	x8, [x19, #16]!
	add	x8, x8, #8
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _AF_INET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #8
	stp	w9, w8, [x19, #16]
	add	x0, sp, #8
	mov	w1, #256
	bl	_gethostname
	add	x0, sp, #8
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_hostsreader_get_numeric_ip_for_name
Lloh6:
	adrp	x23, _ip_type_invalid@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ip_type_invalid@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_at_get_ip_for_host
	str	x0, [x22]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	mov	x19, #0
	b	LBB0_8
LBB0_4:
	add	x0, sp, #8
	bl	_inet_addr
	str	x0, [x22]
	cmn	x0, #1
	b.ne	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _ip_type_localhost@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ip_type_localhost@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
LBB0_6:
	str	x0, [x22]
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_gethostbyname_data_setstring
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDEBUG
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_ip_type_localhost,8,3          ; @ip_type_localhost
	.comm	_ip_type_invalid,8,3            ; @ip_type_invalid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return hostent space\n"

.subsections_via_symbols
