	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_host
_add_host:                              ## @add_host
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movl	%edi, -76(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-58(%rbp), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	leaq	-72(%rbp), %rcx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_getaddrinfo
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
LBB0_10:
	movq	-72(%rbp), %rdi
	movl	$1, %ebx
	testq	%rdi, %rdi
	jne	LBB0_11
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	-72(%rbp), %r14
	xorl	%ebx, %ebx
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rdi
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	imulq	$56, (%rax), %r15
	movl	52(%r13,%r15), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	$4, %edx
	callq	_strlcpy
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13,%r15)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	%xmm0, 8(%r13,%r15)
	movups	%xmm1, 24(%r13,%r15)
	movq	32(%r14), %rax
	movq	%rax, 40(%r13,%r15)
	movq	$0, 16(%r13,%r15)
	movq	8(%r14), %rsi
	leaq	48(%r13,%r15), %rbx
	movl	8(%r13,%r15), %r12d
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_memmove
	movl	4(%r13,%r15), %edx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	_NI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$4, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getnameinfo
	movq	(%r15), %rdi
	incq	%rdi
	movq	%rdi, (%r15)
	movq	16(%r14), %r14
	testq	%r14, %r14
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rdi), %rbx
	movl	$10, %esi
	callq	_roundup
	cmpq	%rax, %rbx
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rdi
	addq	$2, %rdi
	movl	$10, %esi
	callq	_roundup
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	imulq	$56, %rax, %rsi
	callq	_reallocf
	movq	%rax, %r13
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	-72(%rbp), %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%edi, %edi
LBB0_11:
	callq	_freeaddrinfo
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

	.comm	_NI_NUMERICHOST,4,2             ## @NI_NUMERICHOST
	.no_dead_strip	_add_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_host
_add_host:                              ; @add_host
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	str	xzr, [sp, #8]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh3:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #62
	mov	w1, #10
	mov	x3, x23
	bl	_snprintf
	add	x1, sp, #62
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x21
	bl	_getaddrinfo
	sub	w8, w0, #128
	cmp	w8, #2
	b.hs	LBB0_4
LBB0_1:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_freeaddrinfo
LBB0_3:
	mov	w0, #1
	b	LBB0_15
LBB0_4:
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	x25, [sp, #8]
	cbz	x25, LBB0_13
; %bb.6:
	ldr	x0, [x19]
	mov	w26, #56
Lloh14:
	adrp	x27, _NI_NUMERICHOST@GOTPAGE
Lloh15:
	ldr	x27, [x27, _NI_NUMERICHOST@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	madd	x28, x8, x26, x0
	ldr	w0, [x28, #52]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	str	w22, [x28]
	ldr	x8, [x25, #32]
	ldp	q1, q0, [x25]
	stur	q1, [x28, #8]
	stur	q0, [x28, #24]
	str	x8, [x28, #40]
	str	xzr, [x28, #16]
	ldr	x1, [x25, #8]
	add	x23, x28, #48
	ldr	w24, [x28, #8]
	mov	x0, x23
	mov	x2, x24
	bl	_memmove
	ldr	w2, [x28, #4]
	ldr	w6, [x27]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #4
	mov	x4, #0
	mov	w5, #0
	bl	_getnameinfo
	ldr	x8, [x19]
	add	x0, x8, #1
	str	x0, [x19]
	ldr	x25, [x25, #16]
	cbz	x25, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x0, #1
	mov	w1, #10
	bl	_roundup
	cmp	x23, x0
	b.lo	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	add	x0, x8, #2
	mov	w1, #10
	bl	_roundup
	ldr	x8, [x20]
	mul	x1, x0, x26
	mov	x0, x8
	bl	_reallocf
	str	x0, [x20]
	cbnz	x0, LBB0_8
	b	LBB0_1
LBB0_11:
	mov	w0, #-1
	b	LBB0_15
LBB0_12:
	ldr	x0, [sp, #8]
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	bl	_freeaddrinfo
	mov	w0, #0
LBB0_15:
	ldr	x8, [sp, #72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

	.comm	_NI_NUMERICHOST,4,2             ; @NI_NUMERICHOST
	.no_dead_strip	_add_host
.subsections_via_symbols
