	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_start_pio
_ssi_start_pio:                         ## @ssi_start_pio
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	28(%rdi), %edi
	callq	_hsi_get_port
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_hsi_port_drvdata
	movq	%rax, %rbx
	leaq	4(%r15), %r13
	movl	4(%r15), %edi
	callq	_to_hsi_controller
	movq	%rax, %rdi
	callq	_hsi_controller_drvdata
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_pm_runtime_get
	movl	(%rbx), %edi
	callq	_pm_runtime_active
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movq	(%r14), %rax
	movq	_HSI_MSG_WRITE@GOTPCREL(%rip), %rcx
	movl	24(%r14), %edi
	cmpq	(%rcx), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	callq	_SSI_DATAACCEPT
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_pm_runtime_get
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_warn
	movl	(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	callq	_SSI_DATAAVAILABLE
	movl	%eax, %r13d
	movq	_SSI_ERROROCCURED@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
LBB0_5:
	movq	%r14, %rbx
	cmpq	$0, (%r14)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_dbg
	movq	(%r12), %r14
	movl	(%r15), %edi
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_SSI_MPU_ENABLE_REG
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_readl
	orl	%eax, %r13d
	movq	%rbx, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_SSI_MPU_ENABLE_REG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_pm_runtime_put_autosuspend
	movq	$0, 16(%r14)
	movq	_HSI_STATUS_PROCEEDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_6:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssi_start_pio called without runtime PM!\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_HSI_MSG_WRITE,8,3              ## @HSI_MSG_WRITE
	.comm	_SSI_ERROROCCURED,4,2           ## @SSI_ERROROCCURED
L_.str.1:                               ## @.str.1
	.asciz	"Single %s transfer\n"

L_.str.2:                               ## @.str.2
	.asciz	"write"

L_.str.3:                               ## @.str.3
	.asciz	"read"

	.comm	_HSI_STATUS_PROCEEDING,4,2      ## @HSI_STATUS_PROCEEDING
	.no_dead_strip	_ssi_start_pio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_start_pio
_ssi_start_pio:                         ; @ssi_start_pio
	.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
	ldr	w0, [x0, #28]
	bl	_hsi_get_port
	mov	x21, x0
	bl	_hsi_port_drvdata
	mov	x20, x0
	mov	x23, x21
	ldr	w0, [x23, #4]!
	bl	_to_hsi_controller
	bl	_hsi_controller_drvdata
	mov	x22, x0
	ldr	w0, [x20]
	bl	_pm_runtime_get
	ldr	w0, [x20]
	bl	_pm_runtime_active
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _HSI_MSG_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI_MSG_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	bl	_SSI_DATAACCEPT
	mov	x24, x0
	ldr	w0, [x20]
	bl	_pm_runtime_get
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_warn
	ldr	w0, [x20]
	bl	_pm_runtime_put_autosuspend
Lloh5:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	bl	_SSI_DATAAVAILABLE
Lloh8:
	adrp	x8, _SSI_ERROROCCURED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSI_ERROROCCURED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w24, w8, w0
LBB0_5:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, l_.str.2@PAGE
Lloh12:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh13:
	adrp	x10, l_.str.3@PAGE
Lloh14:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_dbg
	ldr	x23, [x22]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_SSI_MPU_ENABLE_REG
	add	x0, x0, x23
	bl	_readl
	orr	w23, w0, w24
	ldr	x22, [x22]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_SSI_MPU_ENABLE_REG
	add	x1, x0, x22
	mov	x0, x23
	bl	_writel
	ldr	w0, [x20]
	bl	_pm_runtime_put_autosuspend
	mov	w0, #0
	str	xzr, [x19, #16]
Lloh17:
	adrp	x8, _HSI_STATUS_PROCEEDING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HSI_STATUS_PROCEEDING@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssi_start_pio called without runtime PM!\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_HSI_MSG_WRITE,8,3              ; @HSI_MSG_WRITE
	.comm	_SSI_ERROROCCURED,4,2           ; @SSI_ERROROCCURED
l_.str.1:                               ; @.str.1
	.asciz	"Single %s transfer\n"

l_.str.2:                               ; @.str.2
	.asciz	"write"

l_.str.3:                               ; @.str.3
	.asciz	"read"

	.comm	_HSI_STATUS_PROCEEDING,4,2      ; @HSI_STATUS_PROCEEDING
	.no_dead_strip	_ssi_start_pio
.subsections_via_symbols
