	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_resolvehost_in              ## -- Begin function nb_resolvehost_in
	.p2align	4, 0x90
_nb_resolvehost_in:                     ## @nb_resolvehost_in
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_gethostbyname
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	cmpl	$4, 8(%rbx)
	jne	LBB0_7
## %bb.3:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$24, %esi
	callq	_bzero
	movl	$24, (%r12)
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	addq	$20, %rdi
	movl	12(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_htons
	movl	%eax, 16(%r12)
	movq	%r12, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_warnx
	xorl	%edi, %edi
	callq	_herror
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	movq	%r12, %rsi
	callq	_warnx
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get server address `%s': "

	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"address for `%s' is not in the AF_INET family"

	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
L_.str.2:                               ## @.str.2
	.asciz	"address for `%s' has invalid length"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_resolvehost_in              ; -- Begin function nb_resolvehost_in
	.p2align	2
_nb_resolvehost_in:                     ; @nb_resolvehost_in
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	bl	_gethostbyname
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x21, #8]
	cmp	w8, #4
	b.ne	LBB0_7
; %bb.3:
	mov	w23, #24
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
	mov	w1, #24
	bl	_bzero
	str	w23, [x22]
	ldr	x8, [x21]
	str	x8, [x22, #8]
	add	x0, x22, #20
	ldr	w1, [x21, #12]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x20
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	w8, [x22, #16]
	str	x22, [x19]
	b	LBB0_10
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_warnx
	mov	x0, #0
	bl	_herror
Lloh5:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	mov	x1, x22
	bl	_warnx
Lloh11:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get server address `%s': "

	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"address for `%s' is not in the AF_INET family"

	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
l_.str.2:                               ; @.str.2
	.asciz	"address for `%s' has invalid length"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
