	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_bound_sa
_update_bound_sa:                       ## @update_bound_sa
	.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	$0, -48(%rbp)
	movq	_nhosts@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	shll	$3, %edi
	callq	_malloc
	movq	_bound_sa@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	movq	_hosts@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r14
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_getaddrinfo
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	_bound_sa@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%rdx), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_memcpy
	jmp	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nhosts,4,2                     ## @nhosts
	.comm	_bound_sa,8,3                   ## @bound_sa
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_hosts,8,3                      ## @hosts
	.no_dead_strip	_update_bound_sa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_bound_sa
_update_bound_sa:                       ; @update_bound_sa
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x19, _nhosts@GOTPAGE
Lloh1:
	ldr	x19, [x19, _nhosts@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.1:
	lsl	w0, w8, #3
	bl	_malloc
Lloh2:
	adrp	x20, _bound_sa@GOTPAGE
Lloh3:
	ldr	x20, [x20, _bound_sa@GOTPAGEOFF]
	str	x0, [x20]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh4:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x21, #0
Lloh7:
	adrp	x22, _hosts@GOTPAGE
Lloh8:
	ldr	x22, [x22, _hosts@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x1, #0
	bl	_getaddrinfo
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_malloc
	ldr	x8, [x20]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x20]
	ldr	x0, [x8, x9]
	ldr	x8, [sp, #8]
	ldp	w2, w1, [x8]
	bl	_memcpy
	b	LBB0_3
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_nhosts,4,2                     ; @nhosts
	.comm	_bound_sa,8,3                   ; @bound_sa
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_hosts,8,3                      ; @hosts
	.no_dead_strip	_update_bound_sa
.subsections_via_symbols
