	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_release
_smu_release:                           ## @smu_release
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	movq	$0, (%rsi)
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_smu_file_closing@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	cmpl	$0, (%r14)
	je	LBB0_7
## %bb.2:
	cmpl	$1, 16(%r14)
	jne	LBB0_7
## %bb.3:
	movq	_wait@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_add_wait_queue
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_set_current_state
	cmpl	$1, 16(%r14)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_schedule
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	jmp	LBB0_5
LBB0_6:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_wait@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_remove_wait_queue
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_smu_clist_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	4(%r14), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_kfree
LBB0_8:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_smu_file_closing,4,2           ## @smu_file_closing
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_smu_clist_lock,4,2             ## @smu_clist_lock
	.no_dead_strip	_smu_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_release
_smu_release:                           ; @smu_release
	.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
	ldr	x19, [x1]
	cbz	x19, LBB0_8
; %bb.1:
	str	xzr, [x1]
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _smu_file_closing@GOTPAGE
Lloh1:
	ldr	x8, [x8, _smu_file_closing@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x22, _wait@GOTPAGE
Lloh4:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _current@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	add	x21, x19, #12
	mov	x0, x21
	mov	x1, x22
	bl	_add_wait_queue
Lloh8:
	adrp	x22, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_set_current_state
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	bl	_schedule
	mov	x0, x20
	bl	_spin_lock_irqsave
	b	LBB0_4
LBB0_6:
Lloh10:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_set_current_state
Lloh13:
	adrp	x1, _wait@GOTPAGE
Lloh14:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	mov	x0, x21
	bl	_remove_wait_queue
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x20, _smu_clist_lock@GOTPAGE
Lloh16:
	ldr	x20, [x20, _smu_clist_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #4
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_smu_file_closing,4,2           ; @smu_file_closing
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_smu_clist_lock,4,2             ; @smu_clist_lock
	.no_dead_strip	_smu_release
.subsections_via_symbols
