	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function host
_host:                                  ## @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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$2, %eax
	je	LBB0_8
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	_havehost@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movl	$16, %esi
	jmp	LBB0_7
LBB0_9:
	movq	_AF_INET@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	_ai_fam_templ@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %eax
LBB0_11:
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_openhost
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
LBB0_15:
	movq	_havehost@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_17:
	leaq	L_.str.5(%rip), %rdi
	movl	$22, %esi
LBB0_7:
	movl	$1, %edx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_havehost,8,3                   ## @havehost
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"current host is %s\n"

	.comm	_currenthost,8,3                ## @currenthost
L_.str.1:                               ## @.str.1
	.asciz	"no current host\n"

L_.str.2:                               ## @.str.2
	.asciz	"-4"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_ai_fam_templ,4,2               ## @ai_fam_templ
L_.str.3:                               ## @.str.3
	.asciz	"-6"

	.comm	_AF_INET6,4,2                   ## @AF_INET6
L_.str.4:                               ## @.str.4
	.asciz	"current host remains %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"still no current host\n"

L_.str.6:                               ## @.str.6
	.asciz	"current host set to %s\n"

	.no_dead_strip	_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function host
_host:                                  ; @host
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _havehost@GOTPAGE
Lloh1:
	ldr	x8, [x8, _havehost@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _currenthost@GOTPAGE
Lloh4:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_13
; %bb.6:
Lloh12:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	mov	x8, #0
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #16
	b	LBB0_17
LBB0_9:
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ai_fam_templ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ai_fam_templ@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	mov	w8, #1
LBB0_11:
	ldr	x9, [x20, #8]
	ldr	w0, [x9, x8, lsl #2]
	bl	_openhost
	cbz	x0, LBB0_13
; %bb.12:
Lloh21:
	adrp	x8, _currenthost@GOTPAGE
Lloh22:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh26:
	adrp	x8, _havehost@GOTPAGE
Lloh27:
	ldr	x8, [x8, _havehost@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
Lloh29:
	adrp	x8, _currenthost@GOTPAGE
Lloh30:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_16:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #22
LBB0_17:
	mov	w2, #1
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_fwrite
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_havehost,8,3                   ; @havehost
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"current host is %s\n"

	.comm	_currenthost,8,3                ; @currenthost
l_.str.1:                               ; @.str.1
	.asciz	"no current host\n"

l_.str.2:                               ; @.str.2
	.asciz	"-4"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_ai_fam_templ,4,2               ; @ai_fam_templ
l_.str.3:                               ; @.str.3
	.asciz	"-6"

	.comm	_AF_INET6,4,2                   ; @AF_INET6
l_.str.4:                               ; @.str.4
	.asciz	"current host remains %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"still no current host\n"

l_.str.6:                               ; @.str.6
	.asciz	"current host set to %s\n"

	.no_dead_strip	_host
.subsections_via_symbols
