	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostinfo                    ## -- Begin function gethostinfo
	.p2align	4, 0x90
_gethostinfo:                           ## @gethostinfo
	.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
	movq	%rdi, %r14
	callq	_strlen
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.4:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_inet_addr
	movq	%rax, %rbx
	cmpl	$-1, %ebx
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_strdup
	movq	%rax, 16(%r15)
	movl	$1, (%r15)
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rbx, (%rax)
	jmp	LBB0_20
LBB0_9:
	movq	%r14, %rdi
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	cmpl	$4, 8(%rbx)
	jne	LBB0_13
## %bb.14:
	movq	16(%rbx), %rdi
	callq	_strdup
	movq	%rax, 16(%r15)
	movq	24(%rbx), %r12
	movq	(%r12), %r14
	xorl	%edi, %edi
	testq	%r14, %r14
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%r12,%rdi,8)
	leaq	1(%rdi), %rdi
	jne	LBB0_15
LBB0_16:
	movl	%edi, (%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.17:
	testq	%r14, %r14
	je	LBB0_20
## %bb.18:
	movq	%rax, %rbx
	addq	$8, %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_memcpy
	addq	$8, %rbx
	movq	(%r12), %r14
	addq	$8, %r12
	testq	%r14, %r14
	jne	LBB0_19
LBB0_20:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movq	%rax, %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_2
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rcx
LBB0_3:
	callq	_Fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,8,3             ## @MAXHOSTNAMELEN
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: hostname \"%.32s...\" is too long\n"

	.comm	_prog,4,2                       ## @prog
L_.str.1:                               ## @.str.1
	.asciz	"%s: calloc %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"%s: unknown host %s\n"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.3:                               ## @.str.3
	.asciz	"%s: bad host %s\n"

	.comm	_capdns,8,3                     ## @capdns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gethostinfo                    ; -- Begin function gethostinfo
	.p2align	2
_gethostinfo:                           ; @gethostinfo
	.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, x0
	bl	_strlen
Lloh0:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_18
; %bb.1:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_17
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	bl	_inet_addr
	mov	x21, x0
	cmn	w21, #1
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_strdup
	str	x0, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.4:
	str	x21, [x0]
	b	LBB0_16
LBB0_5:
	mov	x0, x20
	bl	_gethostbyname
	cbz	x0, LBB0_20
; %bb.6:
	mov	x21, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _AF_INET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.7:
	ldr	w8, [x21, #8]
	cmp	w8, #4
	b.ne	LBB0_19
; %bb.8:
	ldr	x0, [x21, #16]
	bl	_strdup
	str	x0, [x19, #16]
	ldr	x22, [x21, #24]
	ldr	x20, [x22]
	cbz	x20, LBB0_11
; %bb.9:
	mov	x0, #0
	add	x8, x22, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x0, lsl #3]
	add	x0, x0, #1
	cbnz	x9, LBB0_10
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	str	w0, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.13:
	cbz	x20, LBB0_16
; %bb.14:
	mov	x21, x0
	add	x22, x22, #8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	add	x21, x21, #8
	ldr	x20, [x22], #8
	cbnz	x20, LBB0_15
LBB0_16:
	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_17:
Lloh6:
	adrp	x8, _stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
Lloh9:
	adrp	x8, _prog@GOTPAGE
Lloh10:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_22
LBB0_18:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _prog@GOTPAGE
Lloh21:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_21
LBB0_19:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _prog@GOTPAGE
Lloh29:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_20:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _prog@GOTPAGE
Lloh37:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_21:
	mov	x3, x20
LBB0_22:
	bl	_Fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,8,3             ; @MAXHOSTNAMELEN
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: hostname \"%.32s...\" is too long\n"

	.comm	_prog,4,2                       ; @prog
l_.str.1:                               ; @.str.1
	.asciz	"%s: calloc %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"%s: unknown host %s\n"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.3:                               ; @.str.3
	.asciz	"%s: bad host %s\n"

	.comm	_capdns,8,3                     ; @capdns
.subsections_via_symbols
