	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_host_child_to_holder
_add_host_child_to_holder:              ## @add_host_child_to_holder
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_new_gsublist
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rax
	movq	(%rax), %r12
	movl	8(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_host_sub_list
	movq	_gdns_thread@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_pthread_mutex_lock
	movq	%r12, %rdi
	callq	_ht_get_hostname
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_pthread_mutex_unlock
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	_MTRC_ID_HOSTNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_set_host_child_metrics
	movl	24(%rbx), %esi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_add_sub_item_back
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	shlq	$4, %rax
	movq	%r14, (%rcx,%rax)
	incl	8(%rbx)
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_3
LBB0_1:
	movq	%r12, %rdi
	callq	_dns_resolver
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	8(%rbx), %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_free
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdns_thread,4,2                ## @gdns_thread
	.comm	_MTRC_ID_HOSTNAME,4,2           ## @MTRC_ID_HOSTNAME
	.no_dead_strip	_add_host_child_to_holder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_host_child_to_holder
_add_host_child_to_holder:              ; @add_host_child_to_holder
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	bl	_new_gsublist
	mov	x19, x0
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	ldr	x22, [x8]
	ldr	w24, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_set_host_sub_list
Lloh0:
	adrp	x23, _gdns_thread@GOTPAGE
Lloh1:
	ldr	x23, [x23, _gdns_thread@GOTPAGEOFF]
	mov	x0, x23
	bl	_pthread_mutex_lock
	mov	x0, x22
	bl	_ht_get_hostname
	mov	x21, x0
	mov	x0, x23
	bl	_pthread_mutex_unlock
	cbz	x21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _MTRC_ID_HOSTNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MTRC_ID_HOSTNAME@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_set_host_child_metrics
	ldr	w1, [x20, #24]
	ldr	x2, [sp, #8]
	mov	x0, x19
	bl	_add_sub_item_back
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	lsl	x9, x9, #4
	str	x19, [x8, x9]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x21
	bl	_free
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_dns_resolver
LBB0_3:
	ldr	w8, [x20, #8]
	cmp	w24, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_free
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_gdns_thread,4,2                ; @gdns_thread
	.comm	_MTRC_ID_HOSTNAME,4,2           ; @MTRC_ID_HOSTNAME
	.no_dead_strip	_add_host_child_to_holder
.subsections_via_symbols
