	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.6:
	movq	%rdi, %rbx
	movq	_ai_fam_default@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ai_fam_templ@GOTPCREL(%rip), %r15
	movl	%esi, (%r15)
	cmpl	$2, (%rdi)
	jne	LBB0_7
## %bb.8:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_havehost@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	$16, %esi
	jmp	LBB0_5
LBB0_9:
	movq	_AF_INET@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movl	%esi, (%r15)
	movl	$1, %eax
LBB0_13:
	movq	8(%rbx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_openhost
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_currenthost@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
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.5(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_17:
	leaq	L_.str.6(%rip), %rdi
	movl	$22, %esi
LBB0_5:
	movl	$1, %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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"

	.comm	_ai_fam_default,4,2             ## @ai_fam_default
	.comm	_ai_fam_templ,4,2               ## @ai_fam_templ
L_.str.2:                               ## @.str.2
	.asciz	"-4"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"current host remains %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"still no current host\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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ai_fam_default@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ai_fam_default@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _ai_fam_templ@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ai_fam_templ@GOTPAGEOFF]
	str	w1, [x21]
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_13
; %bb.4:
Lloh9:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh11:
	adrp	x8, _havehost@GOTPAGE
Lloh12:
	ldr	x8, [x8, _havehost@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
Lloh14:
	adrp	x8, _currenthost@GOTPAGE
Lloh15:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_7:
	mov	x8, #0
	b	LBB0_11
LBB0_8:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #16
	b	LBB0_17
LBB0_9:
Lloh21:
	adrp	x8, _AF_INET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	str	w1, [x21]
	mov	w8, #1
LBB0_11:
	ldr	x9, [x20, #8]
	ldr	w0, [x9, x8, lsl #2]
	bl	_openhost
	cbz	x0, LBB0_13
; %bb.12:
Lloh23:
	adrp	x8, _currenthost@GOTPAGE
Lloh24:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh28:
	adrp	x8, _havehost@GOTPAGE
Lloh29:
	ldr	x8, [x8, _havehost@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
Lloh31:
	adrp	x8, _currenthost@GOTPAGE
Lloh32:
	ldr	x8, [x8, _currenthost@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_fprintf
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	w1, #22
LBB0_17:
	mov	w2, #1
	mov	x3, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_fwrite
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.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"

	.comm	_ai_fam_default,4,2             ; @ai_fam_default
	.comm	_ai_fam_templ,4,2               ; @ai_fam_templ
l_.str.2:                               ; @.str.2
	.asciz	"-4"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"current host remains %s\n"

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

	.no_dead_strip	_host
.subsections_via_symbols
