	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_hostent
_add_hostent:                           ## @add_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	movl	%edi, %ebx
	movq	16(%rbp), %rcx
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.6:
	movq	%r12, %rdi
	callq	_hostent_find_fqdn
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_2
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	(%r12), %r12
	movq	(%r12), %r9
	testq	%r9, %r9
	je	LBB0_16
## %bb.3:
	addq	$8, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %r9
	addq	$8, %r12
	testq	%r9, %r9
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, (%rsp)
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_add_one
	testl	%eax, %eax
	jne	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rbp), %rdx
	movl	(%rdx), %eax
	movq	_AI_CANONNAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rdx)
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_8:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movl	12(%r12), %esi
	movl	8(%r12), %edx
	leaq	-84(%rbp), %rcx
	callq	_getipnodebyaddr
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_hostent_find_fqdn
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	cmovneq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, %r15
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_freehostent
	testq	%r15, %r15
	jne	LBB0_2
LBB0_11:
	movq	_EAI_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_16
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AI_CANONNAME,4,2               ## @AI_CANONNAME
	.comm	_EAI_MEMORY,4,2                 ## @EAI_MEMORY
	.no_dead_strip	_add_hostent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_hostent
_add_hostent:                           ; @add_hostent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w8, [x6]
Lloh0:
	adrp	x28, _AI_CANONNAME@GOTPAGE
Lloh1:
	ldr	x28, [x28, _AI_CANONNAME@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x25
	bl	_hostent_find_fqdn
	mov	x26, x0
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_11
LBB0_2:
	mov	x0, x26
	bl	_strdup
	mov	x26, x0
	cbnz	x26, LBB0_4
	b	LBB0_13
LBB0_3:
	mov	x26, #0
LBB0_4:
	ldr	x8, [x25]
	ldr	x5, [x8]
	cbz	x5, LBB0_10
; %bb.5:
	add	x25, x8, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x5, [x25], #8
	cbz	x5, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x6, x26
	bl	_add_one
	cbnz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_6
LBB0_10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
	ldr	x8, [x25]
	ldr	x0, [x8]
	ldp	w2, w1, [x25, #8]
	add	x3, sp, #12
	bl	_getipnodebyaddr
	cbz	x0, LBB0_2
; %bb.12:
	mov	x27, x0
	bl	_hostent_find_fqdn
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	w1, #46
	bl	_strchr
	cmp	x0, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	csel	x0, x26, x8, eq
	bl	_strdup
	mov	x26, x0
	mov	x0, x27
	bl	_freehostent
	cbnz	x26, LBB0_4
LBB0_13:
Lloh2:
	adrp	x8, _EAI_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAI_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AI_CANONNAME,4,2               ; @AI_CANONNAME
	.comm	_EAI_MEMORY,4,2                 ; @EAI_MEMORY
	.no_dead_strip	_add_hostent
.subsections_via_symbols
