	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_release
_ssi_release:                           ## @ssi_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	%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, %r15
	callq	_hsi_get_port
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hsi_port_drvdata
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_to_hsi_controller
	movq	%rax, %r13
	movl	8(%r12), %edi
	callq	_pm_runtime_get_sync
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ssi_cleanup_gdd
	movq	%r15, %rdi
	callq	_ssi_cleanup_queues
	cmpl	$1, (%rbx)
	jg	LBB0_4
## %bb.1:
	movq	_SSI_WAKE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$32, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	8(%r12), %edi
	callq	_pm_runtime_put_sync
LBB0_3:
	movl	8(%r12), %edi
	callq	_pm_runtime_get
	movq	_SSI_MODE_SLEEP@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_ssi_set_port_mode
	movq	(%rbx), %rax
	movq	%rax, 24(%r12)
	movq	%rax, 16(%r12)
	movl	8(%r12), %edi
	callq	_pm_runtime_put
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setne	%dil
	callq	_WARN_ON
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	8(%r12), %edi
	callq	_pm_runtime_put_sync
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSI_WAKE_EN,4,2                ## @SSI_WAKE_EN
	.comm	_SSI_MODE_SLEEP,8,3             ## @SSI_MODE_SLEEP
	.no_dead_strip	_ssi_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_release
_ssi_release:                           ; @ssi_release
	.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	x21, x0
	bl	_hsi_get_port
	mov	x22, x0
	bl	_hsi_port_drvdata
	mov	x19, x0
	ldr	w0, [x22, #4]
	bl	_to_hsi_controller
	mov	x23, x0
	ldr	w0, [x19, #8]
	bl	_pm_runtime_get_sync
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x23
	mov	x1, x21
	bl	_ssi_cleanup_gdd
	mov	x0, x21
	bl	_ssi_cleanup_queues
	ldr	w8, [x22]
	cmp	w8, #1
	b.gt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SSI_WAKE_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSI_WAKE_EN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put_sync
LBB0_3:
	ldr	w0, [x19, #8]
	bl	_pm_runtime_get
Lloh3:
	adrp	x21, _SSI_MODE_SLEEP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SSI_MODE_SLEEP@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_ssi_set_port_mode
	ldr	x8, [x21]
	stp	x8, x8, [x19, #16]
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put_sync
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SSI_WAKE_EN,4,2                ; @SSI_WAKE_EN
	.comm	_SSI_MODE_SLEEP,8,3             ; @SSI_MODE_SLEEP
	.no_dead_strip	_ssi_release
.subsections_via_symbols
