	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs_hsi_stop
_cs_hsi_stop:                           ## @cs_hsi_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cs_hsi_set_wakeline
	movl	28(%rbx), %edi
	callq	_ssip_slave_put_master
	movq	_CS_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rdi
	callq	_hsi_release_port
	movl	12(%rbx), %edi
	callq	_cs_state_idle
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	8(%rbx), %edi
	callq	_cs_state_idle
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_pm_qos_request_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_pm_qos_remove_request
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	callq	_cs_hsi_free_data
	movq	%rbx, %rdi
	callq	_cs_free_cmds
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs_hsi_stop\n"

	.comm	_CS_STATE_CLOSED,4,2            ## @CS_STATE_CLOSED
	.no_dead_strip	_cs_hsi_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs_hsi_stop
_cs_hsi_stop:                           ; @cs_hsi_stop
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #0
	bl	_cs_hsi_set_wakeline
	ldr	w0, [x19, #28]
	bl	_ssip_slave_put_master
Lloh2:
	adrp	x8, _CS_STATE_CLOSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CS_STATE_CLOSED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	x0, [x19, #16]
	bl	_hsi_release_port
	ldr	w0, [x19, #12]
	bl	_cs_state_idle
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w0, [x19, #8]
	bl	_cs_state_idle
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	add	x20, x19, #4
	mov	x0, x20
	bl	_pm_qos_request_active
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_pm_qos_remove_request
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	bl	_cs_hsi_free_data
	mov	x0, x19
	bl	_cs_free_cmds
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs_hsi_stop\n"

	.comm	_CS_STATE_CLOSED,4,2            ; @CS_STATE_CLOSED
	.no_dead_strip	_cs_hsi_stop
.subsections_via_symbols
