	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_thread                 ## -- Begin function smb_iod_thread
	.p2align	4, 0x90
_smb_iod_thread:                        ## @smb_iod_thread
	.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, %rbx
	movq	_Giant@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 16(%rbx)
	leaq	20(%rbx), %rdi
	xorl	%edx, %edx
	callq	_smb_makescred
	movq	_SMBIOD_SHUTDOWN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %r14
	movq	_PWAIT@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_smb_iod_main
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_SMBIODEBUG
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movl	12(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tsleep
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
LBB0_4:
	leaq	8(%rbx), %rdi
	callq	_smb_sl_destroy
	leaq	4(%rbx), %rdi
	callq	_smb_sl_destroy
	movq	_M_SMBIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_free
	movq	_Giant@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kproc_exit                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Giant,4,2                      ## @Giant
	.comm	_curthread,4,2                  ## @curthread
	.comm	_SMBIOD_SHUTDOWN,4,2            ## @SMBIOD_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"going to sleep for %d ticks\n"

	.comm	_PWAIT,4,2                      ## @PWAIT
L_.str.1:                               ## @.str.1
	.asciz	"90idle"

	.comm	_M_SMBIOD,4,2                   ## @M_SMBIOD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_iod_thread                 ; -- Begin function smb_iod_thread
	.p2align	2
_smb_iod_thread:                        ; @smb_iod_thread
	.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	x0, _Giant@GOTPAGE
Lloh1:
	ldr	x0, [x0, _Giant@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x8, _curthread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	w1, [x19, #16]
	add	x0, x19, #20
	mov	x2, #0
	bl	_smb_makescred
	ldr	w8, [x19]
Lloh5:
	adrp	x22, _SMBIOD_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SMBIOD_SHUTDOWN@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x23, _PWAIT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PWAIT@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_smb_iod_main
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_SMBIODEBUG
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	ldr	w3, [x19, #12]
	mov	x0, x19
	mov	x2, x21
	bl	_tsleep
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_4:
	add	x0, x19, #8
	bl	_smb_sl_destroy
	add	x0, x19, #4
	bl	_smb_sl_destroy
Lloh13:
	adrp	x8, _M_SMBIOD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_SMBIOD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_free
Lloh16:
	adrp	x0, _Giant@GOTPAGE
Lloh17:
	ldr	x0, [x0, _Giant@GOTPAGEOFF]
	bl	_mtx_unlock
	mov	w0, #0
	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
	b	_kproc_exit
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_Giant,4,2                      ; @Giant
	.comm	_curthread,4,2                  ; @curthread
	.comm	_SMBIOD_SHUTDOWN,4,2            ; @SMBIOD_SHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"going to sleep for %d ticks\n"

	.comm	_PWAIT,4,2                      ; @PWAIT
l_.str.1:                               ; @.str.1
	.asciz	"90idle"

	.comm	_M_SMBIOD,4,2                   ; @M_SMBIOD
.subsections_via_symbols
