	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_create                 ## -- Begin function smb_iod_create
	.p2align	4, 0x90
_smb_iod_create:                        ## @smb_iod_create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_M_SMBIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %edi
	callq	_smb_zmalloc
	movq	%rax, %rbx
	movq	_smb_iod_next@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 16(%rbx)
	movq	_SMBIOD_ST_NOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	%r14, 48(%rbx)
	movq	_hz@GOTPCREL(%rip), %rax
	movq	_SMBIOD_SLEEP_TIMO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_SMBIOD_PING_TIMO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	leaq	36(%rbx), %rdi
	callq	_getnanotime
	movq	%rbx, (%r14)
	leaq	8(%rbx), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_smb_sl_init
	leaq	32(%rbx), %rdi
	callq	_TAILQ_INIT
	leaq	4(%rbx), %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_smb_sl_init
	leaq	28(%rbx), %rdi
	callq	_STAILQ_INIT
	movq	_smb_iod_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rdx
	movq	_RFNOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	16(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_kproc_create
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	callq	_SMBERROR
	movq	$0, (%r14)
	movq	%r15, %rdi
	callq	_smb_sl_destroy
	movq	%r12, %rdi
	callq	_smb_sl_destroy
	movq	_M_SMBIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
LBB0_2:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_SMBIOD,4,2                   ## @M_SMBIOD
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_smb_iod_next,4,2               ## @smb_iod_next
	.comm	_SMBIOD_ST_NOTCONN,4,2          ## @SMBIOD_ST_NOTCONN
	.comm	_hz,4,2                         ## @hz
	.comm	_SMBIOD_SLEEP_TIMO,4,2          ## @SMBIOD_SLEEP_TIMO
	.comm	_SMBIOD_PING_TIMO,4,2           ## @SMBIOD_PING_TIMO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"90rql"

L_.str.1:                               ## @.str.1
	.asciz	"90evl"

	.comm	_smb_iod_thread,4,2             ## @smb_iod_thread
	.comm	_RFNOWAIT,4,2                   ## @RFNOWAIT
L_.str.2:                               ## @.str.2
	.asciz	"smbiod%d"

L_.str.3:                               ## @.str.3
	.asciz	"can't start smbiod: %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_create                 ; -- Begin function smb_iod_create
	.p2align	2
_smb_iod_create:                        ; @smb_iod_create
	.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	x19, x0
Lloh0:
	adrp	x24, _M_SMBIOD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _M_SMBIOD@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w0, #64
	bl	_smb_zmalloc
	mov	x20, x0
Lloh5:
	adrp	x8, _smb_iod_next@GOTPAGE
Lloh6:
	ldr	x8, [x8, _smb_iod_next@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [x0, #16]
Lloh7:
	adrp	x8, _SMBIOD_ST_NOTCONN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SMBIOD_ST_NOTCONN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh10:
	adrp	x8, _hz@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
	str	x19, [x0, #48]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SMBIOD_SLEEP_TIMO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SMBIOD_SLEEP_TIMO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	mul	w8, w9, w8
	str	w8, [x0]
Lloh16:
	adrp	x8, _SMBIOD_PING_TIMO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SMBIOD_PING_TIMO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0, #40]
	add	x0, x0, #36
	bl	_getnanotime
	str	x20, [x19]
	add	x21, x20, #8
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_smb_sl_init
	add	x0, x20, #32
	bl	_TAILQ_INIT
	add	x22, x20, #4
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_smb_sl_init
	add	x0, x20, #28
	bl	_STAILQ_INIT
Lloh23:
	adrp	x8, _smb_iod_thread@GOTPAGE
Lloh24:
	ldr	x8, [x8, _smb_iod_thread@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x2, x20, #24
Lloh26:
	adrp	x8, _RFNOWAIT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RFNOWAIT@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	ldr	x6, [x20, #16]
Lloh29:
	adrp	x5, l_.str.2@PAGE
Lloh30:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	w4, #0
	bl	_kproc_create
	mov	x23, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_SMBERROR
	str	xzr, [x19]
	mov	x0, x21
	bl	_smb_sl_destroy
	mov	x0, x22
	bl	_smb_sl_destroy
	ldr	w1, [x24]
	mov	x0, x20
	bl	_free
LBB0_2:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_M_SMBIOD,4,2                   ; @M_SMBIOD
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_smb_iod_next,4,2               ; @smb_iod_next
	.comm	_SMBIOD_ST_NOTCONN,4,2          ; @SMBIOD_ST_NOTCONN
	.comm	_hz,4,2                         ; @hz
	.comm	_SMBIOD_SLEEP_TIMO,4,2          ; @SMBIOD_SLEEP_TIMO
	.comm	_SMBIOD_PING_TIMO,4,2           ; @SMBIOD_PING_TIMO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"90rql"

l_.str.1:                               ; @.str.1
	.asciz	"90evl"

	.comm	_smb_iod_thread,4,2             ; @smb_iod_thread
	.comm	_RFNOWAIT,4,2                   ; @RFNOWAIT
l_.str.2:                               ; @.str.2
	.asciz	"smbiod%d"

l_.str.3:                               ; @.str.3
	.asciz	"can't start smbiod: %d"

.subsections_via_symbols
