	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_espi_transfer
_fsl_espi_transfer:                     ## @fsl_espi_transfer
	.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	%rdx, %r14
	movl	%esi, %r12d
	movl	%edi, %ebx
	callq	_device_get_softc
	movq	%rax, %r15
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	8(%r14), %rax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpq	24(%r14), %rax
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	16(%r14), %rax
	addq	(%r14), %rax
	movq	_ESPI_SPCOM_TRANLEN_M@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jg	LBB0_5
## %bb.2:
	leaq	-44(%rbp), %rsi
	movl	%r12d, %edi
	callq	_spibus_get_cs
	movl	-44(%rbp), %r13d
	testl	%r13d, %r13d
	js	LBB0_4
## %bb.3:
	cmpl	(%r15), %r13d
	jle	LBB0_8
LBB0_4:
	movl	%r12d, %edi
	callq	_device_get_nameunit
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_device_printf
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	-52(%rbp), %rsi
	movl	%r12d, %edi
	callq	_spibus_get_clock
	leaq	-56(%rbp), %rsi
	movl	%r12d, %edi
	callq	_spibus_get_mode
	movq	%r15, %rdi
	callq	_FSL_ESPI_LOCK
	movq	_FSL_ESPI_BUSY@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, 4(%r15)
	movq	%r15, %r13
	movl	%ebx, %r15d
	je	LBB0_11
## %bb.9:
	leaq	20(%r13), %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	leaq	L_.str.3(%rip), %rcx
	xorl	%r8d, %r8d
	callq	_mtx_sleep
	movl	(%r12), %eax
	testl	%eax, 4(%r13)
	jne	LBB0_10
LBB0_11:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, 4(%r13)
	movq	%r14, 40(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	16(%r14), %rax
	addq	(%r14), %rax
	movq	%rax, 8(%r13)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_mpc85xx_get_system_clock
	movl	%eax, %ebx
	movl	-52(%rbp), %edi
	leal	255(%rbx), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$8, %esi
	callq	_max
	movl	%eax, -52(%rbp)
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.12:
	movq	%r13, %r15
	movl	%eax, %ecx
	shll	$5, %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_14
## %bb.13:
	movq	_ESPI_CSMODE_DIV16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	leal	15(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$4, %ecx
	movl	%ecx, %ebx
LBB0_14:
	addl	%eax, %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_howmany
	cmpl	$16, %eax
	movl	$16, %ebx
	cmovll	%eax, %ebx
	decl	%ebx
	testl	%eax, %eax
	movl	$1, %eax
	cmovlel	%eax, %ebx
	movq	_ESPI_CSMODE_PM_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	-56(%rbp), %edx
	movq	_SPIBUS_MODE_CPOL_CPHA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %edx
	movq	_ESPI_CSMODE_CI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	$0, %ecx
	cmovel	%r8d, %ecx
	movq	_ESPI_CSMODE_CP@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmovel	%edi, %eax
	movq	_SPIBUS_MODE_CPOL@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	movq	_SPIBUS_MODE_CPHA@GOTPCREL(%rip), %rsi
	cmovel	%r8d, %ecx
	cmpl	(%rsi), %edx
	movq	_ESPI_CSMODE_REV@GOTPCREL(%rip), %rdx
	cmovel	%edi, %eax
	movq	_SPIBUS_CS_HIGH@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	$0, %r13d
	andl	-44(%rbp), %esi
	jne	LBB0_16
## %bb.15:
	movq	_ESPI_CSMODE_POL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
LBB0_16:
	orl	(%rdx), %r12d
	orl	%ecx, %r12d
	orl	%eax, %r12d
	movl	$7, %edi
	callq	_ESPI_CSMODE_LEN
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_ESPI_CSMODE_CSCG
	orl	%r12d, %r14d
	orl	%r14d, %ebx
	orl	%r13d, %ebx
	orl	%eax, %ebx
	movq	_ESPI_SPCOM@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edi
	movq	_ESPI_SPCOM_CS_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movl	(%rax), %esi
	movl	8(%r15), %edx
	decl	%edx
	orl	%edi, %edx
	movq	%r15, %rdi
	callq	_FSL_ESPI_WRITE
	movl	-44(%rbp), %edi
	callq	_ESPI_CSMODE
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_FSL_ESPI_WRITE
	movq	_ESPI_SPIM@GOTPCREL(%rip), %r14
	movq	_ESPI_SPIE_TXE@GOTPCREL(%rip), %rax
	movq	_ESPI_SPIE_DON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	(%r14), %esi
	movq	_ESPI_SPIE_RXF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_FSL_ESPI_WRITE
	movq	%r15, %rsi
	addq	$20, %rsi
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	%r8d, %r8d
	leaq	L_.str.3(%rip), %rcx
	movq	%r15, %r12
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_mtx_sleep
	movl	%eax, %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_FSL_ESPI_WRITE
	movl	$0, 4(%r12)
	movl	%r15d, %edi
	callq	_wakeup_one
	movq	%r12, %rdi
	callq	_FSL_ESPI_UNLOCK
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.17:
	movl	16(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX/RX command sizes should be equal"

L_.str.1:                               ## @.str.1
	.asciz	"TX/RX data sizes should be equal"

	.comm	_ESPI_SPCOM_TRANLEN_M,8,3       ## @ESPI_SPCOM_TRANLEN_M
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Invalid chip select %d requested by %s\n"

	.comm	_FSL_ESPI_BUSY,4,2              ## @FSL_ESPI_BUSY
L_.str.3:                               ## @.str.3
	.asciz	"fsl_espi"

L_.str.4:                               ## @.str.4
	.asciz	"unable to get platform clock, giving up.\n"

	.comm	_ESPI_CSMODE_DIV16,4,2          ## @ESPI_CSMODE_DIV16
	.comm	_ESPI_CSMODE_PM_S,4,2           ## @ESPI_CSMODE_PM_S
	.comm	_ESPI_CSMODE_REV,4,2            ## @ESPI_CSMODE_REV
	.comm	_SPIBUS_MODE_CPOL,4,2           ## @SPIBUS_MODE_CPOL
	.comm	_SPIBUS_MODE_CPOL_CPHA,4,2      ## @SPIBUS_MODE_CPOL_CPHA
	.comm	_ESPI_CSMODE_CI,4,2             ## @ESPI_CSMODE_CI
	.comm	_SPIBUS_MODE_CPHA,4,2           ## @SPIBUS_MODE_CPHA
	.comm	_ESPI_CSMODE_CP,4,2             ## @ESPI_CSMODE_CP
	.comm	_SPIBUS_CS_HIGH,4,2             ## @SPIBUS_CS_HIGH
	.comm	_ESPI_CSMODE_POL,4,2            ## @ESPI_CSMODE_POL
	.comm	_ESPI_SPCOM,4,2                 ## @ESPI_SPCOM
	.comm	_ESPI_SPCOM_CS_S,4,2            ## @ESPI_SPCOM_CS_S
	.comm	_ESPI_SPIM,4,2                  ## @ESPI_SPIM
	.comm	_ESPI_SPIE_TXE,4,2              ## @ESPI_SPIE_TXE
	.comm	_ESPI_SPIE_DON,4,2              ## @ESPI_SPIE_DON
	.comm	_ESPI_SPIE_RXF,4,2              ## @ESPI_SPIE_RXF
	.comm	_hz,4,2                         ## @hz
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
L_.str.5:                               ## @.str.5
	.asciz	"SPI error\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_fsl_espi_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_espi_transfer
_fsl_espi_transfer:                     ; @fsl_espi_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_device_get_softc
	mov	x20, x0
	ldp	x8, x9, [x21]
	cmp	x8, x9
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldp	x8, x9, [x21, #16]
	cmp	x8, x9
	cset	w0, eq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
Lloh4:
	adrp	x10, _ESPI_SPCOM_TRANLEN_M@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ESPI_SPCOM_TRANLEN_M@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	add	x10, x10, #1
	add	x8, x9, x8
	cmp	x8, x10
	b.gt	LBB0_5
; %bb.1:
	add	x1, sp, #20
	mov	x0, x22
	bl	_spibus_get_cs
	ldr	w23, [sp, #20]
	tbnz	w23, #31, LBB0_3
; %bb.2:
	ldr	w8, [x20]
	cmp	w23, w8
	b.le	LBB0_8
LBB0_3:
	mov	x0, x22
	bl	_device_get_nameunit
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_device_printf
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	add	x1, sp, #28
	mov	x0, x22
	bl	_spibus_get_clock
	add	x1, sp, #24
	mov	x0, x22
	bl	_spibus_get_mode
	mov	x0, x20
	bl	_FSL_ESPI_LOCK
	ldr	w9, [x20, #4]
Lloh11:
	adrp	x24, _FSL_ESPI_BUSY@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FSL_ESPI_BUSY@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.9:
	add	x22, x20, #20
Lloh13:
	adrp	x23, l_.str.3@PAGE
Lloh14:
	add	x23, x23, l_.str.3@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	mov	x3, x23
	mov	w4, #0
	bl	_mtx_sleep
	ldr	w9, [x20, #4]
	ldr	w8, [x24]
	tst	w8, w9
	b.ne	LBB0_10
LBB0_11:
	str	w8, [x20, #4]
	stp	xzr, x21, [x20, #32]
	str	xzr, [x20, #24]
	ldr	x8, [x21]
	ldr	x9, [x21, #16]
	add	x8, x9, x8
	str	x8, [x20, #8]
	bl	_mpc85xx_get_system_clock
	mov	x21, x0
	ldr	w0, [sp, #28]
	add	w8, w21, #255
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w1, w8, #8
	bl	_max
	str	w0, [sp, #28]
	cbz	w21, LBB0_14
; %bb.12:
	cmp	w21, w0, lsl #5
	b.le	LBB0_15
; %bb.13:
Lloh15:
	adrp	x8, _ESPI_CSMODE_DIV16@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ESPI_CSMODE_DIV16@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	add	w8, w21, #15
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w21, w8, #4
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_15:
	mov	w22, #0
LBB0_16:
	lsl	w1, w0, #1
	mov	x0, x21
	bl	_howmany
	mov	w8, #16
	cmp	w0, #16
	csel	w8, w0, w8, lt
	sub	w8, w8, #1
	cmp	w0, #1
	csinc	w8, w8, wzr, ge
Lloh20:
	adrp	x9, _ESPI_CSMODE_PM_S@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ESPI_CSMODE_PM_S@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w23, w8, w9
Lloh23:
	adrp	x8, _ESPI_CSMODE_REV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ESPI_CSMODE_REV@GOTPAGEOFF]
Lloh25:
	ldr	w24, [x8]
	ldr	w8, [sp, #24]
Lloh26:
	adrp	x9, _SPIBUS_MODE_CPOL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SPIBUS_MODE_CPOL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh29:
	adrp	x9, _SPIBUS_MODE_CPOL_CPHA@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SPIBUS_MODE_CPOL_CPHA@GOTPAGEOFF]
	cset	w10, eq
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w9, eq
Lloh32:
	adrp	x11, _ESPI_CSMODE_CI@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ESPI_CSMODE_CI@GOTPAGEOFF]
	orr	w10, w10, w9
Lloh34:
	ldr	w11, [x11]
	cmp	w10, #0
	csel	w25, w11, wzr, ne
Lloh35:
	adrp	x10, _SPIBUS_MODE_CPHA@GOTPAGE
Lloh36:
	ldr	x10, [x10, _SPIBUS_MODE_CPHA@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	cmp	w8, w10
	cset	w8, eq
	orr	w8, w8, w9
Lloh38:
	adrp	x9, _ESPI_CSMODE_CP@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ESPI_CSMODE_CP@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w26, w9, wzr, ne
	ldr	w8, [sp, #20]
Lloh41:
	adrp	x9, _SPIBUS_CS_HIGH@GOTPAGE
Lloh42:
	ldr	x9, [x9, _SPIBUS_CS_HIGH@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
Lloh44:
	adrp	x10, _ESPI_CSMODE_POL@GOTPAGE
Lloh45:
	ldr	x10, [x10, _ESPI_CSMODE_POL@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w27, w10, wzr, eq
	mov	w0, #7
	bl	_ESPI_CSMODE_LEN
	mov	x21, x0
	mov	w0, #1
	bl	_ESPI_CSMODE_CSCG
	orr	w8, w24, w22
	orr	w8, w8, w23
	orr	w8, w8, w25
	orr	w8, w8, w26
	orr	w8, w8, w21
	orr	w8, w8, w27
	orr	w21, w8, w0
Lloh47:
	adrp	x8, _ESPI_SPCOM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ESPI_SPCOM@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x8, _ESPI_SPCOM_CS_S@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ESPI_SPCOM_CS_S@GOTPAGEOFF]
	ldr	w9, [sp, #20]
Lloh52:
	ldr	w8, [x8]
	lsl	w8, w9, w8
	ldr	w9, [x20, #8]
	sub	w9, w9, #1
	orr	w2, w9, w8
	mov	x0, x20
	bl	_FSL_ESPI_WRITE
	ldr	w0, [sp, #20]
	bl	_ESPI_CSMODE
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_FSL_ESPI_WRITE
Lloh53:
	adrp	x22, _ESPI_SPIM@GOTPAGE
Lloh54:
	ldr	x22, [x22, _ESPI_SPIM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh55:
	adrp	x8, _ESPI_SPIE_TXE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ESPI_SPIE_TXE@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _ESPI_SPIE_DON@GOTPAGE
Lloh59:
	ldr	x9, [x9, _ESPI_SPIE_DON@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh61:
	adrp	x9, _ESPI_SPIE_RXF@GOTPAGE
Lloh62:
	ldr	x9, [x9, _ESPI_SPIE_RXF@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_FSL_ESPI_WRITE
	add	x1, x20, #20
Lloh64:
	adrp	x8, _hz@GOTPAGE
Lloh65:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	lsl	w4, w8, #1
Lloh67:
	adrp	x3, l_.str.3@PAGE
Lloh68:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	bl	_mtx_sleep
	mov	x21, x0
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_FSL_ESPI_WRITE
	str	wzr, [x20, #4]
	mov	x0, x19
	bl	_wakeup_one
	mov	x0, x20
	bl	_FSL_ESPI_UNLOCK
Lloh69:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh70:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.17:
	ldr	w0, [x20, #16]
Lloh72:
	adrp	x1, l_.str.5@PAGE
Lloh73:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_device_printf
Lloh74:
	adrp	x8, _EIO@GOTPAGE
Lloh75:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX/RX command sizes should be equal"

l_.str.1:                               ; @.str.1
	.asciz	"TX/RX data sizes should be equal"

	.comm	_ESPI_SPCOM_TRANLEN_M,8,3       ; @ESPI_SPCOM_TRANLEN_M
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Invalid chip select %d requested by %s\n"

	.comm	_FSL_ESPI_BUSY,4,2              ; @FSL_ESPI_BUSY
l_.str.3:                               ; @.str.3
	.asciz	"fsl_espi"

l_.str.4:                               ; @.str.4
	.asciz	"unable to get platform clock, giving up.\n"

	.comm	_ESPI_CSMODE_DIV16,4,2          ; @ESPI_CSMODE_DIV16
	.comm	_ESPI_CSMODE_PM_S,4,2           ; @ESPI_CSMODE_PM_S
	.comm	_ESPI_CSMODE_REV,4,2            ; @ESPI_CSMODE_REV
	.comm	_SPIBUS_MODE_CPOL,4,2           ; @SPIBUS_MODE_CPOL
	.comm	_SPIBUS_MODE_CPOL_CPHA,4,2      ; @SPIBUS_MODE_CPOL_CPHA
	.comm	_ESPI_CSMODE_CI,4,2             ; @ESPI_CSMODE_CI
	.comm	_SPIBUS_MODE_CPHA,4,2           ; @SPIBUS_MODE_CPHA
	.comm	_ESPI_CSMODE_CP,4,2             ; @ESPI_CSMODE_CP
	.comm	_SPIBUS_CS_HIGH,4,2             ; @SPIBUS_CS_HIGH
	.comm	_ESPI_CSMODE_POL,4,2            ; @ESPI_CSMODE_POL
	.comm	_ESPI_SPCOM,4,2                 ; @ESPI_SPCOM
	.comm	_ESPI_SPCOM_CS_S,4,2            ; @ESPI_SPCOM_CS_S
	.comm	_ESPI_SPIM,4,2                  ; @ESPI_SPIM
	.comm	_ESPI_SPIE_TXE,4,2              ; @ESPI_SPIE_TXE
	.comm	_ESPI_SPIE_DON,4,2              ; @ESPI_SPIE_DON
	.comm	_ESPI_SPIE_RXF,4,2              ; @ESPI_SPIE_RXF
	.comm	_hz,4,2                         ; @hz
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
l_.str.5:                               ; @.str.5
	.asciz	"SPI error\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_fsl_espi_transfer
.subsections_via_symbols
