	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsmb_dev_load
_nsmb_dev_load:                         ## @nsmb_dev_load
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$128, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	callq	_smb_sm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	callq	_smb_iod_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_smb_sm_done
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_smb_iod_done
	xorl	%eax, %eax
	callq	_smb_sm_done
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	xorl	%eax, %eax
	callq	_nsmb_dev_destroy
	movq	_smb_lock@GOTPCREL(%rip), %rdi
	callq	_sx_destroy
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_nsmb_dev_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	_smb_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sx_init
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_smb_lock,4,2                   ## @smb_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"samba device lock"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsmb_dev_load
_nsmb_dev_load:                         ; @nsmb_dev_load
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.2:
	bl	_smb_sm_init
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.3:
	bl	_smb_iod_init
	cbz	w0, LBB0_9
; %bb.4:
	mov	x19, x0
	bl	_smb_sm_done
	b	LBB0_8
LBB0_5:
	bl	_smb_iod_done
	bl	_smb_sm_done
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.6:
	bl	_nsmb_dev_destroy
Lloh0:
	adrp	x0, _smb_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _smb_lock@GOTPAGEOFF]
	bl	_sx_destroy
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_nsmb_dev_init
	mov	x19, x0
	cbnz	w0, LBB0_8
; %bb.10:
Lloh5:
	adrp	x0, _smb_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _smb_lock@GOTPAGEOFF]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sx_init
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_smb_lock,4,2                   ; @smb_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"samba device lock"

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