	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb_nbst_bind
_smb_nbst_bind:                         ## @smb_nbst_bind
	.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, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_NBDEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	_NBF_LOCADDR@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	andl	(%r14), %ecx
	jne	LBB0_6
## %bb.2:
	movl	(%rbx), %ecx
	movq	_NB_MINSALEN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jl	LBB0_6
## %bb.3:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sodupsockaddr
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, 8(%r14)
	movl	(%r15), %eax
	orl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NBF_LOCADDR,4,2                ## @NBF_LOCADDR
	.comm	_NB_MINSALEN,4,2                ## @NB_MINSALEN
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_smb_nbst_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smb_nbst_bind
_smb_nbst_bind:                         ; @smb_nbst_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_NBDEBUG
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	cbz	x19, LBB0_6
; %bb.1:
	ldr	w8, [x20]
Lloh5:
	adrp	x21, _NBF_LOCADDR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NBF_LOCADDR@GOTPAGEOFF]
	ldr	w9, [x21]
	and	w8, w9, w8
	cbnz	w8, LBB0_6
; %bb.2:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _NB_MINSALEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NB_MINSALEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.3:
Lloh10:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sodupsockaddr
	cbz	x0, LBB0_5
; %bb.4:
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #8]
	ldr	w8, [x21]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NBF_LOCADDR,4,2                ; @NBF_LOCADDR
	.comm	_NB_MINSALEN,4,2                ; @NB_MINSALEN
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_smb_nbst_bind
.subsections_via_symbols
