	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_ctx_resolve                 ## -- Begin function nb_ctx_resolve
	.p2align	4, 0x90
_nb_ctx_resolve:                        ## @nb_ctx_resolve
	.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	%rdi, %rbx
	movq	_NBCF_RESOLVED@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, 8(%rdi)
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	44(%rbx), %edx
	leaq	-32(%rbp), %rsi
	callq	_nb_resolvehost_in
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_smb_error
	jmp	LBB0_8
LBB0_1:
	movq	_INADDR_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, 36(%rbx)
	jmp	LBB0_7
LBB0_4:
	movq	-32(%rbp), %rdi
	movq	(%rdi), %rdx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.6:
	movups	(%rdi), %xmm0
	movq	16(%rdi), %rax
	movq	%rax, 32(%rbx)
	movups	%xmm0, 16(%rbx)
	callq	_free
LBB0_7:
	movl	40(%rbx), %edi
	callq	_htons
	movl	%eax, 32(%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$24, 16(%rbx)
	movl	(%r15), %eax
	orl	%eax, 8(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	callq	_smb_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBCF_RESOLVED,4,2              ## @NBCF_RESOLVED
	.comm	_INADDR_BROADCAST,4,2           ## @INADDR_BROADCAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't resolve %s"

	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"unsupported address family %d"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nb_ctx_resolve                 ; -- Begin function nb_ctx_resolve
	.p2align	2
_nb_ctx_resolve:                        ; @nb_ctx_resolve
	.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, x0
Lloh0:
	adrp	x21, _NBCF_RESOLVED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NBCF_RESOLVED@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [x0, #8]
	bic	w8, w9, w8
	str	w8, [x0, #8]
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w2, [x19, #44]
	add	x1, sp, #8
	bl	_nb_resolvehost_in
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x2, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_smb_error
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x8, _INADDR_BROADCAST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INADDR_BROADCAST@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_htonl
	str	w0, [x19, #36]
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #8]
	ldr	x2, [x0]
Lloh7:
	adrp	x8, _AF_INET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	q0, [x0]
	ldr	x8, [x0, #16]
	str	x8, [x19, #32]
	str	q0, [x19, #16]
	bl	_free
LBB0_6:
	ldr	w0, [x19, #40]
	bl	_htons
	mov	w20, #0
	str	w0, [x19, #32]
Lloh10:
	adrp	x8, _AF_INET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	w8, #24
	str	w8, [x19, #16]
	ldr	w8, [x21]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_smb_error
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NBCF_RESOLVED,4,2              ; @NBCF_RESOLVED
	.comm	_INADDR_BROADCAST,4,2           ; @INADDR_BROADCAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't resolve %s"

	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"unsupported address family %d"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
