	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___copy_hostent                 ## -- Begin function __copy_hostent
	.p2align	4, 0x90
___copy_hostent:                        ## @__copy_hostent
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_ALIGN
	movq	%rax, %r12
	subl	%ebx, %r12d
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.9:
	movl	8(%r13), %ecx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %r12d
	cmpq	$0, (%rax,%r15,8)
	leaq	1(%r15), %r15
	jne	LBB0_10
## %bb.2:
	incl	%r15d
	jmp	LBB0_3
LBB0_1:
	movl	$2, %r15d
LBB0_3:
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.4:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r12d
	incl	%r12d
	movq	16(%r13), %rax
	movq	8(%rax,%rbx,8), %rdi
	incq	%rbx
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.6:
	addl	%ebx, %r15d
	movq	%r14, %rbx
LBB0_7:
	movq	24(%r13), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	%r15d, %r14d
	shlq	$3, %r14
	leal	(%r14,%r12), %ecx
	addl	%ecx, %eax
	incl	%eax
	cltq
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_11
## %bb.8:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_22
LBB0_11:
	movl	32(%r13), %eax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, 32(%r15)
	movslq	8(%r13), %r12
	movl	%r12d, 8(%r15)
	movq	%rbx, %rdi
	callq	_ALIGN
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ALIGN
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	%rcx, (%r15)
	movq	(%r13), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.13:
	xorl	%r14d, %r14d
	movq	%rcx, %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r14,8)
	addq	%r12, %rbx
	addq	$8, %r15
	movq	(%r13), %rax
	movq	8(%rax,%r14,8), %rsi
	incq	%r14
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movl	%r14d, %eax
	jmp	LBB0_16
LBB0_12:
	xorl	%eax, %eax
	movq	%rcx, %r15
LBB0_16:
	movq	$0, (%rcx,%rax,8)
	addq	$8, %r15
	movq	24(%r13), %rdi
	callq	_strlen
	movl	%eax, %r12d
	movq	24(%r13), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 24(%rax)
	movq	%r15, 16(%rax)
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.18:
	movslq	%r12d, %rax
	leaq	(%rax,%rbx), %r14
	incq	%r14
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	callq	_strlen
	movl	%eax, %r12d
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_strcpy
	movq	16(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	movslq	%r12d, %rax
	addq	%rax, %r14
	incq	%r14
	movq	16(%r13), %rax
	movq	8(%rax,%rbx,8), %rdi
	incq	%rbx
	testq	%rdi, %rdi
	jne	LBB0_19
## %bb.20:
	movq	16(%r15), %r15
	movl	%ebx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_17:
	xorl	%ecx, %ecx
LBB0_21:
	movq	$0, (%r15,%rcx,8)
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___copy_hostent                 ; -- Begin function __copy_hostent
	.p2align	2
___copy_hostent:                        ; @__copy_hostent
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	bl	_ALIGN
	sub	w23, w0, w21
	ldr	x8, [x20]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	w10, [x20, #8]
	mov	w9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x9, lsl #3]
	add	x9, x9, #1
	add	w23, w23, w10
	cbnz	x11, LBB0_2
; %bb.3:
	add	w24, w9, #1
	b	LBB0_5
LBB0_4:
	mov	w24, #2
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.6:
	mov	x8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	bl	_strlen
	add	w8, w23, w0
	add	w23, w8, #1
	add	x8, x25, #1
	ldr	x9, [x20, #16]
	add	x9, x9, x25, lsl #3
	ldr	x0, [x9, #8]
	cbnz	x0, LBB0_7
; %bb.8:
	add	w24, w24, w8
LBB0_9:
	ldr	x0, [x20, #24]
	bl	_strlen
	mov	w8, w24
	lsl	x24, x8, #3
	add	w8, w23, w24
	add	w8, w8, w0
	add	w8, w8, #1
	sxtw	x8, w8
	cmp	x8, x22
	b.ls	LBB0_11
; %bb.10:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_22
LBB0_11:
	ldr	w8, [x20, #32]
	str	w8, [x19, #32]
	ldrsw	x22, [x20, #8]
	str	w22, [x19, #8]
	mov	x0, x21
	bl	_ALIGN
	mov	x23, x0
	mov	x0, x21
	bl	_ALIGN
	add	x21, x0, x24
	str	x23, [x19]
	ldr	x8, [x20]
	ldr	x1, [x8]
	cbz	x1, LBB0_15
; %bb.12:
	mov	x25, #0
	mov	x24, x23
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19]
	lsl	x9, x25, #3
	str	x21, [x8, x9]
	add	x21, x21, x22
	add	x25, x25, #1
	add	x24, x24, #8
	ldr	x8, [x20]
	add	x8, x8, x9
	ldr	x1, [x8, #8]
	cbnz	x1, LBB0_13
; %bb.14:
	ldr	x23, [x19]
	and	x8, x25, #0xffffffff
	b	LBB0_16
LBB0_15:
	mov	x8, #0
	mov	x24, x23
LBB0_16:
	str	xzr, [x23, x8, lsl #3]
	add	x24, x24, #8
	ldr	x0, [x20, #24]
	bl	_strlen
	mov	x22, x0
	ldr	x1, [x20, #24]
	mov	x0, x21
	bl	_strcpy
	stp	x24, x21, [x19, #16]
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
	cbz	x0, LBB0_20
; %bb.17:
	mov	x23, #0
	add	w8, w22, #1
	add	x21, x21, w8, sxtw
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	bl	_strlen
	add	w22, w0, #1
	ldr	x8, [x20, #16]
	lsl	x24, x23, #3
	ldr	x1, [x8, x24]
	mov	x0, x21
	bl	_strcpy
	ldr	x8, [x19, #16]
	str	x21, [x8, x24]
	add	x21, x21, w22, sxtw
	add	x23, x23, #1
	ldr	x8, [x20, #16]
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_18
; %bb.19:
	ldr	x24, [x19, #16]
	and	x8, x23, #0xffffffff
	b	LBB0_21
LBB0_20:
	mov	x8, #0
LBB0_21:
	mov	w0, #0
	str	xzr, [x24, x8, lsl #3]
LBB0_22:
	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
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
