	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_execute_tpc
_r592_execute_tpc:                      ## @r592_execute_tpc
	.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), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.1:
	movq	%rdi, %r14
	leaq	24(%rax), %rcx
	leaq	4(%rax), %rdx
	cmpq	$0, 32(%rax)
	cmoveq	%rdx, %rcx
	movl	(%rcx), %r15d
	movq	_R592_LFIFO_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jle	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_message
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_35:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_message                        ## TAILCALL
LBB0_3:
	movl	(%rax), %r12d
	movq	_MS_TPC_SET_RW_REG_ADRS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_R592_REG_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_r592_read_reg
	movq	_R592_REG_MSC_PRSNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_memstick_debug_get_tpc_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dbg
	movq	_R592_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R592_IO_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	cmpl	%r13d, %r12d
	jge	LBB0_7
## %bb.6:
	callq	_r592_clear_reg_mask
	movq	%r14, %rdi
	callq	_r592_test_fifo_empty
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_7:
	callq	_r592_set_reg_mask
	movq	%r14, %rdi
	callq	_r592_test_fifo_empty
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_34
## %bb.8:
	movq	%r14, %rdi
	callq	_r592_transfer_fifo_dma
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_r592_transfer_fifo_pio
	movl	%eax, %ebx
LBB0_10:
	testl	%ebx, %ebx
	jne	LBB0_34
LBB0_11:
	movq	_R592_TPC_EXEC_LEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	(%r14), %rax
	movl	(%rax), %edx
	movq	_R592_TPC_EXEC_TPC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%r15d, %edx
	movq	_R592_TPC_EXEC_BIG_FIFO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_R592_TPC_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_r592_write_reg
	movq	_R592_STATUS_RDY@GOTPCREL(%rip), %rax
	movq	(%r14), %rcx
	xorl	%edx, %edx
	cmpq	$0, 16(%rcx)
	je	LBB0_13
## %bb.12:
	movq	_R592_STATUS_CED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_13:
	orl	(%rax), %edx
	movq	%r14, %rdi
	movl	%edx, %esi
	callq	_r592_wait_status
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_message
	jmp	LBB0_34
LBB0_15:
	movq	%r14, %rdi
	callq	_r592_test_io_error
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_33
LBB0_17:
	xorl	%ebx, %ebx
	cmpl	%r13d, %r12d
	jge	LBB0_20
## %bb.18:
	movq	%r14, %rdi
	callq	_r592_transfer_fifo_dma
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_r592_transfer_fifo_pio
	movl	%eax, %ebx
LBB0_20:
	cmpq	$0, 8(%r14)
	je	LBB0_30
## %bb.21:
	movq	(%r14), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_30
## %bb.22:
	movl	$0, 12(%rax)
	movq	_R592_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_r592_read_reg
	movq	_R592_STATUS_P_CMDNACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
## %bb.23:
	movq	_MEMSTICK_INT_CMDNAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	orl	%ecx, 12(%rdx)
LBB0_24:
	movq	_R592_STATUS_P_BREQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.25:
	movq	_MEMSTICK_INT_BREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	orl	%ecx, 12(%rdx)
LBB0_26:
	movq	_R592_STATUS_P_INTERR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.27:
	movq	_MEMSTICK_INT_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%r14), %rdx
	orl	%ecx, 12(%rdx)
LBB0_28:
	movq	_R592_STATUS_P_CED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.29:
	movq	_MEMSTICK_INT_CED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 12(%rcx)
LBB0_30:
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.32:
	leaq	L_.str.6(%rip), %rdi
LBB0_33:
	xorl	%eax, %eax
	callq	_dbg
LBB0_34:
	movq	(%r14), %rax
	movl	%ebx, 8(%rax)
	movq	_R592_REG_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_R592_REG_MSC_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r592_clear_reg_mask            ## TAILCALL
LBB0_31:
	xorl	%ebx, %ebx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BUG: tpc execution without request!"

	.comm	_MS_TPC_SET_RW_REG_ADRS,4,2     ## @MS_TPC_SET_RW_REG_ADRS
	.comm	_R592_LFIFO_SIZE,4,2            ## @R592_LFIFO_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"IO: hardware doesn't support TPCs longer that 512"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_R592_REG_MSC,4,2               ## @R592_REG_MSC
	.comm	_R592_REG_MSC_PRSNT,4,2         ## @R592_REG_MSC_PRSNT
L_.str.2:                               ## @.str.2
	.asciz	"IO: refusing to send TPC because card is absent"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"IO: executing %s LEN=%d"

	.comm	_R592_IO,4,2                    ## @R592_IO
	.comm	_R592_IO_DIRECTION,4,2          ## @R592_IO_DIRECTION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_R592_TPC_EXEC_LEN_SHIFT,4,2    ## @R592_TPC_EXEC_LEN_SHIFT
	.comm	_R592_TPC_EXEC_TPC_SHIFT,4,2    ## @R592_TPC_EXEC_TPC_SHIFT
	.comm	_R592_TPC_EXEC_BIG_FIFO,4,2     ## @R592_TPC_EXEC_BIG_FIFO
	.comm	_R592_TPC_EXEC,4,2              ## @R592_TPC_EXEC
	.comm	_R592_STATUS_RDY,4,2            ## @R592_STATUS_RDY
	.comm	_R592_STATUS_CED,4,2            ## @R592_STATUS_CED
L_.str.4:                               ## @.str.4
	.asciz	"card didn't respond"

L_.str.5:                               ## @.str.5
	.asciz	"IO error"

	.comm	_R592_STATUS,4,2                ## @R592_STATUS
	.comm	_R592_STATUS_P_CMDNACK,4,2      ## @R592_STATUS_P_CMDNACK
	.comm	_MEMSTICK_INT_CMDNAK,4,2        ## @MEMSTICK_INT_CMDNAK
	.comm	_R592_STATUS_P_BREQ,4,2         ## @R592_STATUS_P_BREQ
	.comm	_MEMSTICK_INT_BREQ,4,2          ## @MEMSTICK_INT_BREQ
	.comm	_R592_STATUS_P_INTERR,4,2       ## @R592_STATUS_P_INTERR
	.comm	_MEMSTICK_INT_ERR,4,2           ## @MEMSTICK_INT_ERR
	.comm	_R592_STATUS_P_CED,4,2          ## @R592_STATUS_P_CED
	.comm	_MEMSTICK_INT_CED,4,2           ## @MEMSTICK_INT_CED
L_.str.6:                               ## @.str.6
	.asciz	"FIFO read error"

	.comm	_R592_REG_MSC_LED,4,2           ## @R592_REG_MSC_LED
	.no_dead_strip	_r592_execute_tpc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_execute_tpc
_r592_execute_tpc:                      ; @r592_execute_tpc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x8, #32]
	mov	w10, #24
	mov	w11, #4
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w24, [x8, x9]
Lloh0:
	adrp	x9, _R592_LFIFO_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R592_LFIFO_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _R592_REG_MSC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _R592_REG_MSC@GOTPAGEOFF]
	cmp	w24, w9
	b.le	LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_message
Lloh7:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_message
LBB0_4:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _MS_TPC_SET_RW_REG_ADRS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MS_TPC_SET_RW_REG_ADRS@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_r592_read_reg
Lloh14:
	adrp	x8, _R592_REG_MSC_PRSNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R592_REG_MSC_PRSNT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_memstick_debug_get_tpc_name
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x24, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dbg
Lloh19:
	adrp	x8, _R592_IO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _R592_IO@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _R592_IO_DIRECTION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R592_IO_DIRECTION@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	cmp	w22, w23
	b.ge	LBB0_10
; %bb.6:
	bl	_r592_clear_reg_mask
	mov	x0, x19
	bl	_r592_test_fifo_empty
	mov	x20, x0
	cbnz	w0, LBB0_9
	b	LBB0_14
LBB0_7:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	ldr	x8, [x19]
	str	w20, [x8, #8]
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _R592_REG_MSC_LED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R592_REG_MSC_LED@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_r592_clear_reg_mask
LBB0_10:
	bl	_r592_set_reg_mask
	mov	x0, x19
	bl	_r592_test_fifo_empty
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.11:
	mov	x0, x19
	bl	_r592_transfer_fifo_dma
	mov	x20, x0
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_r592_transfer_fifo_pio
	mov	x20, x0
LBB0_13:
	cbnz	w20, LBB0_9
LBB0_14:
Lloh35:
	adrp	x8, _R592_TPC_EXEC_LEN_SHIFT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _R592_TPC_EXEC_LEN_SHIFT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	lsl	w8, w24, w8
	ldr	x9, [x19]
	ldr	w9, [x9]
Lloh38:
	adrp	x10, _R592_TPC_EXEC_TPC_SHIFT@GOTPAGE
Lloh39:
	ldr	x10, [x10, _R592_TPC_EXEC_TPC_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh41:
	adrp	x10, _R592_TPC_EXEC_BIG_FIFO@GOTPAGE
Lloh42:
	ldr	x10, [x10, _R592_TPC_EXEC_BIG_FIFO@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh43:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh44:
	adrp	x8, _R592_TPC_EXEC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _R592_TPC_EXEC@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_r592_write_reg
Lloh47:
	adrp	x8, _R592_STATUS_RDY@GOTPAGE
Lloh48:
	ldr	x8, [x8, _R592_STATUS_RDY@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	x9, [x9, #16]
Lloh50:
	adrp	x10, _R592_STATUS_CED@GOTPAGE
Lloh51:
	ldr	x10, [x10, _R592_STATUS_CED@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, x1
	bl	_r592_wait_status
	cbz	w0, LBB0_16
; %bb.15:
	mov	x20, x0
Lloh53:
	adrp	x0, l_.str.4@PAGE
Lloh54:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_message
	b	LBB0_9
LBB0_16:
	mov	x0, x19
	bl	_r592_test_io_error
	cbz	w0, LBB0_18
; %bb.17:
	mov	x20, x0
Lloh55:
	adrp	x0, l_.str.5@PAGE
Lloh56:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_34
LBB0_18:
	cmp	w22, w23
	b.ge	LBB0_21
; %bb.19:
	mov	x0, x19
	bl	_r592_transfer_fifo_dma
	mov	x20, x0
Lloh57:
	adrp	x8, _EINVAL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_r592_transfer_fifo_pio
	mov	x20, x0
	b	LBB0_22
LBB0_21:
	mov	w20, #0
LBB0_22:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_32
; %bb.23:
	ldr	x8, [x19]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_32
; %bb.24:
	str	wzr, [x8, #12]
Lloh60:
	adrp	x8, _R592_STATUS@GOTPAGE
Lloh61:
	ldr	x8, [x8, _R592_STATUS@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_r592_read_reg
Lloh63:
	adrp	x8, _R592_STATUS_P_CMDNACK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _R592_STATUS_P_CMDNACK@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_26
; %bb.25:
Lloh66:
	adrp	x8, _MEMSTICK_INT_CMDNAK@GOTPAGE
Lloh67:
	ldr	x8, [x8, _MEMSTICK_INT_CMDNAK@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
	str	w8, [x9, #12]
LBB0_26:
Lloh69:
	adrp	x8, _R592_STATUS_P_BREQ@GOTPAGE
Lloh70:
	ldr	x8, [x8, _R592_STATUS_P_BREQ@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_28
; %bb.27:
Lloh72:
	adrp	x8, _MEMSTICK_INT_BREQ@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MEMSTICK_INT_BREQ@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
	str	w8, [x9, #12]
LBB0_28:
Lloh75:
	adrp	x8, _R592_STATUS_P_INTERR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _R592_STATUS_P_INTERR@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_30
; %bb.29:
Lloh78:
	adrp	x8, _MEMSTICK_INT_ERR@GOTPAGE
Lloh79:
	ldr	x8, [x8, _MEMSTICK_INT_ERR@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
	str	w8, [x9, #12]
LBB0_30:
Lloh81:
	adrp	x8, _R592_STATUS_P_CED@GOTPAGE
Lloh82:
	ldr	x8, [x8, _R592_STATUS_P_CED@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_32
; %bb.31:
Lloh84:
	adrp	x8, _MEMSTICK_INT_CED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _MEMSTICK_INT_CED@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #12]
	orr	w8, w10, w8
	str	w8, [x9, #12]
LBB0_32:
	cbz	w20, LBB0_9
; %bb.33:
Lloh87:
	adrp	x0, l_.str.6@PAGE
Lloh88:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_34:
	bl	_dbg
	b	LBB0_9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.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 AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BUG: tpc execution without request!"

	.comm	_MS_TPC_SET_RW_REG_ADRS,4,2     ; @MS_TPC_SET_RW_REG_ADRS
	.comm	_R592_LFIFO_SIZE,4,2            ; @R592_LFIFO_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"IO: hardware doesn't support TPCs longer that 512"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_R592_REG_MSC,4,2               ; @R592_REG_MSC
	.comm	_R592_REG_MSC_PRSNT,4,2         ; @R592_REG_MSC_PRSNT
l_.str.2:                               ; @.str.2
	.asciz	"IO: refusing to send TPC because card is absent"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"IO: executing %s LEN=%d"

	.comm	_R592_IO,4,2                    ; @R592_IO
	.comm	_R592_IO_DIRECTION,4,2          ; @R592_IO_DIRECTION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_R592_TPC_EXEC_LEN_SHIFT,4,2    ; @R592_TPC_EXEC_LEN_SHIFT
	.comm	_R592_TPC_EXEC_TPC_SHIFT,4,2    ; @R592_TPC_EXEC_TPC_SHIFT
	.comm	_R592_TPC_EXEC_BIG_FIFO,4,2     ; @R592_TPC_EXEC_BIG_FIFO
	.comm	_R592_TPC_EXEC,4,2              ; @R592_TPC_EXEC
	.comm	_R592_STATUS_RDY,4,2            ; @R592_STATUS_RDY
	.comm	_R592_STATUS_CED,4,2            ; @R592_STATUS_CED
l_.str.4:                               ; @.str.4
	.asciz	"card didn't respond"

l_.str.5:                               ; @.str.5
	.asciz	"IO error"

	.comm	_R592_STATUS,4,2                ; @R592_STATUS
	.comm	_R592_STATUS_P_CMDNACK,4,2      ; @R592_STATUS_P_CMDNACK
	.comm	_MEMSTICK_INT_CMDNAK,4,2        ; @MEMSTICK_INT_CMDNAK
	.comm	_R592_STATUS_P_BREQ,4,2         ; @R592_STATUS_P_BREQ
	.comm	_MEMSTICK_INT_BREQ,4,2          ; @MEMSTICK_INT_BREQ
	.comm	_R592_STATUS_P_INTERR,4,2       ; @R592_STATUS_P_INTERR
	.comm	_MEMSTICK_INT_ERR,4,2           ; @MEMSTICK_INT_ERR
	.comm	_R592_STATUS_P_CED,4,2          ; @R592_STATUS_P_CED
	.comm	_MEMSTICK_INT_CED,4,2           ; @MEMSTICK_INT_CED
l_.str.6:                               ; @.str.6
	.asciz	"FIFO read error"

	.comm	_R592_REG_MSC_LED,4,2           ; @R592_REG_MSC_LED
	.no_dead_strip	_r592_execute_tpc
.subsections_via_symbols
