	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jmb38x_ms_issue_cmd
_jmb38x_ms_issue_cmd:                   ## @jmb38x_ms_issue_cmd
	.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, %r14
	callq	_memstick_priv
	movq	%rax, %r12
	movq	_STATUS_HAS_MEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_INT_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r15), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$0, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r12)
	movq	8(%r12), %rax
	movq	$0, (%rax)
	movq	24(%r12), %rsi
	movl	4(%rsi), %r15d
	movq	8(%rsi), %rax
	movq	_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$0, %edi
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.3:
	movq	_TPC_DIR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_4:
	shll	$16, %r15d
	movq	_TPC_DATA_SEL@GOTPCREL(%rip), %r8
	cmpq	$0, 40(%rsi)
	je	LBB0_6
## %bb.5:
	movq	_TPC_WAIT_INT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r13d
LBB0_6:
	orl	(%r8), %r15d
	movq	_no_dma@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	_DMA_DATA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	orl	%ebx, (%r12)
LBB0_8:
	orl	%edi, %r15d
	cmpq	$0, 32(%rsi)
	je	LBB0_10
## %bb.9:
	movl	28(%rsi), %r9d
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ETIME@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	movl	24(%rsi), %r9d
	movq	_DMA_DATA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edi, (%r12)
LBB0_11:
	orl	%r13d, %r15d
	cmpl	$9, %r9d
	jae	LBB0_12
## %bb.13:
	movl	(%r8), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_REG_DATA@GOTPCREL(%rip), %rdi
	movl	(%r12), %edx
	orl	(%rdi), %edx
	andl	$-16, %ebx
	movl	%edx, (%r12)
	orl	%r9d, %ebx
	movq	_DMA_DATA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edx, %edi
	movl	%edi, (%r12)
	movl	%ebx, %r15d
	jmp	LBB0_14
LBB0_12:
	movl	(%r12), %edi
LBB0_14:
	movq	_DMA_DATA@GOTPCREL(%rip), %rdx
	testl	%edi, (%rdx)
	je	LBB0_22
## %bb.15:
	addq	$28, %rsi
	movq	48(%r12), %rdx
	movl	(%rdx), %edi
	cmpq	%rcx, %rax
	jne	LBB0_16
## %bb.17:
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_22:
	movq	_REG_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edi, %ecx
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_23
## %bb.27:
	movl	(%r8), %edx
	notl	%edx
	andl	%r15d, %edx
	andl	$-16, %edx
	orl	%edi, %ecx
	movl	%ecx, (%r12)
	movl	%r9d, %r15d
	andl	$15, %r15d
	orl	%edx, %r15d
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_30
## %bb.28:
	movq	%r12, %rdi
	callq	_jmb38x_ms_transfer_data
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_TPC_P0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_writel
	movq	8(%r12), %rax
	movl	4(%rax), %r13d
	movq	_TPC_P1@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_16:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_pci_map_sg
	cmpl	$1, %eax
	jne	LBB0_19
## %bb.21:
	movq	24(%r12), %rdi
	addq	$28, %rdi
	callq	_sg_dma_len
	movl	%eax, %ebx
	movq	24(%r12), %rdi
	addq	$28, %rdi
	callq	_sg_dma_address
	movq	_DMA_ADDRESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	16(%r12), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_BLOCK_COUNT_MASK@GOTPCREL(%rip), %rax
	movl	$65536, %ecx                    ## imm = 0x10000
	andl	(%rax), %ecx
	movq	_BLOCK_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	andl	(%rax), %ebx
	orl	%ecx, %ebx
	movq	_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_DMA_CONTROL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DMA_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_20:
	subl	(%rax), %ebx
	movq	24(%r12), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_31
LBB0_23:
	movq	_BLOCK_COUNT_MASK@GOTPCREL(%rip), %rax
	movl	$65536, %ecx                    ## imm = 0x10000
	andl	(%rax), %ecx
	movq	_BLOCK_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r9d, %edi
	orl	%ecx, %edi
	movq	_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	callq	_writel
	movq	_INT_STATUS_ENABLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	24(%r12), %rax
	movq	8(%rax), %rax
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.25:
	movq	_INT_STATUS_FIFO_RRDY@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movq	_INT_STATUS_FIFO_WRDY@GOTPCREL(%rip), %rax
LBB0_26:
	orl	(%rax), %r13d
	movq	(%rbx), %rsi
	addq	16(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_INT_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
LBB0_30:
	movq	%r12, %rdi
	addq	$40, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	32(%r12), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	movq	_HOST_CONTROL_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_HOST_CONTROL@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	orl	%eax, %ebx
	movq	(%r13), %rsi
	addq	16(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	24(%r12), %rax
	movl	$0, (%rax)
	movq	_TPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r12), %rsi
	movl	%r15d, %edi
	callq	_writel
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_HAS_MEDIA,4,2           ## @STATUS_HAS_MEDIA
	.comm	_STATUS,8,3                     ## @STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no media status\n"

	.comm	_ETIME,4,2                      ## @ETIME
L_.str.1:                               ## @.str.1
	.asciz	"control %08x\n"

	.comm	_HOST_CONTROL,8,3               ## @HOST_CONTROL
L_.str.2:                               ## @.str.2
	.asciz	"status %08x\n"

	.comm	_INT_STATUS,8,3                 ## @INT_STATUS
L_.str.3:                               ## @.str.3
	.asciz	"hstatus %08x\n"

	.comm	_TPC_DATA_SEL,4,2               ## @TPC_DATA_SEL
	.comm	_READ,8,3                       ## @READ
	.comm	_TPC_DIR,4,2                    ## @TPC_DIR
	.comm	_TPC_WAIT_INT,4,2               ## @TPC_WAIT_INT
	.comm	_no_dma,4,2                     ## @no_dma
	.comm	_DMA_DATA,4,2                   ## @DMA_DATA
	.comm	_REG_DATA,4,2                   ## @REG_DATA
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_ADDRESS,8,3                ## @DMA_ADDRESS
	.comm	_BLOCK_COUNT_MASK,4,2           ## @BLOCK_COUNT_MASK
	.comm	_BLOCK_SIZE_MASK,4,2            ## @BLOCK_SIZE_MASK
	.comm	_BLOCK,8,3                      ## @BLOCK
	.comm	_DMA_CONTROL_ENABLE,4,2         ## @DMA_CONTROL_ENABLE
	.comm	_DMA_CONTROL,8,3                ## @DMA_CONTROL
	.comm	_INT_STATUS_ENABLE,8,3          ## @INT_STATUS_ENABLE
	.comm	_INT_STATUS_FIFO_RRDY,4,2       ## @INT_STATUS_FIFO_RRDY
	.comm	_INT_STATUS_FIFO_WRDY,4,2       ## @INT_STATUS_FIFO_WRDY
	.comm	_INT_SIGNAL_ENABLE,8,3          ## @INT_SIGNAL_ENABLE
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_TPC_P0,8,3                     ## @TPC_P0
	.comm	_TPC_P1,8,3                     ## @TPC_P1
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HOST_CONTROL_LED,4,2           ## @HOST_CONTROL_LED
	.comm	_TPC,8,3                        ## @TPC
L_.str.4:                               ## @.str.4
	.asciz	"executing TPC %08x, len %x\n"

	.no_dead_strip	_jmb38x_ms_issue_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jmb38x_ms_issue_cmd
_jmb38x_ms_issue_cmd:                   ; @jmb38x_ms_issue_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_memstick_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _STATUS_HAS_MEDIA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_HAS_MEDIA@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x0, #16]
Lloh3:
	adrp	x21, _STATUS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _STATUS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	tst	w0, w22
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x20, #16]
Lloh5:
	adrp	x24, _HOST_CONTROL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HOST_CONTROL@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _INT_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	wzr, [x20]
	stp	xzr, xzr, [x20, #56]
	ldr	x8, [x20, #8]
	str	xzr, [x8]
	ldr	x9, [x20, #24]
	ldr	w8, [x9, #4]
Lloh16:
	adrp	x10, _TPC_DATA_SEL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TPC_DATA_SEL@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w14, w11, w8, lsl #16
Lloh18:
	adrp	x23, _READ@GOTPAGE
Lloh19:
	ldr	x23, [x23, _READ@GOTPAGEOFF]
	ldr	x8, [x9, #8]
	ldr	x11, [x23]
Lloh20:
	adrp	x12, _TPC_DIR@GOTPAGE
Lloh21:
	ldr	x12, [x12, _TPC_DIR@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	cmp	x8, x11
	csel	w15, w12, wzr, eq
	ldr	x12, [x9, #40]
Lloh23:
	adrp	x13, _TPC_WAIT_INT@GOTPAGE
Lloh24:
	ldr	x13, [x13, _TPC_WAIT_INT@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	cmp	x12, #0
	csel	w13, wzr, w13, eq
Lloh26:
	adrp	x12, _no_dma@GOTPAGE
Lloh27:
	ldr	x12, [x12, _no_dma@GOTPAGEOFF]
Lloh28:
	ldr	w16, [x12]
Lloh29:
	adrp	x12, _DMA_DATA@GOTPAGE
Lloh30:
	ldr	x12, [x12, _DMA_DATA@GOTPAGEOFF]
	cbnz	w16, LBB0_3
; %bb.2:
	ldr	w16, [x12]
	ldr	w17, [x20]
	orr	w16, w17, w16
	str	w16, [x20]
LBB0_3:
	orr	w14, w14, w15
	ldr	x15, [x9, #32]
	cbz	x15, LBB0_6
; %bb.4:
	ldr	w22, [x9, #28]
	b	LBB0_7
LBB0_5:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh33:
	adrp	x8, _ETIME@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
	ldr	w22, [x9, #24]
	ldr	w15, [x12]
	ldr	w16, [x20]
	bic	w15, w16, w15
	str	w15, [x20]
LBB0_7:
	orr	w21, w14, w13
	cmp	w22, #9
	b.hs	LBB0_9
; %bb.8:
	ldr	w13, [x10]
	bic	w13, w21, w13
	and	w13, w13, #0xfffffff0
Lloh35:
	adrp	x14, _REG_DATA@GOTPAGE
Lloh36:
	ldr	x14, [x14, _REG_DATA@GOTPAGEOFF]
Lloh37:
	ldr	w14, [x14]
	ldr	w15, [x20]
	orr	w14, w15, w14
	str	w14, [x20]
	orr	w21, w13, w22
	ldr	w13, [x12]
	bic	w13, w14, w13
	str	w13, [x20]
	b	LBB0_10
LBB0_9:
	ldr	w13, [x20]
LBB0_10:
	ldr	w12, [x12]
	tst	w12, w13
	b.eq	LBB0_13
; %bb.11:
	ldr	x10, [x20, #48]
	ldr	w0, [x10]
Lloh38:
	adrp	x10, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	add	x1, x9, #28
Lloh40:
	adrp	x9, _PCI_DMA_TODEVICE@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	cmp	x8, x11
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	mov	w2, #1
	bl	_pci_map_sg
	cmp	w0, #1
	b.ne	LBB0_16
; %bb.12:
	ldr	x8, [x20, #24]
	add	x0, x8, #28
	bl	_sg_dma_len
	mov	x22, x0
	ldr	x8, [x20, #24]
	add	x0, x8, #28
	bl	_sg_dma_address
	ldr	x8, [x20, #16]
Lloh42:
	adrp	x9, _DMA_ADDRESS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _DMA_ADDRESS@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh45:
	adrp	x8, _BLOCK_COUNT_MASK@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BLOCK_COUNT_MASK@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	and	w8, w8, #0x10000
Lloh48:
	adrp	x9, _BLOCK_SIZE_MASK@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BLOCK_SIZE_MASK@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w0, w9, w8
	ldr	x8, [x20, #16]
Lloh51:
	adrp	x9, _BLOCK@GOTPAGE
Lloh52:
	ldr	x9, [x9, _BLOCK@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh54:
	adrp	x8, _DMA_CONTROL_ENABLE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DMA_CONTROL_ENABLE@GOTPAGEOFF]
Lloh56:
	ldr	w23, [x8]
Lloh57:
	adrp	x8, _DMA_CONTROL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DMA_CONTROL@GOTPAGEOFF]
	b	LBB0_19
LBB0_13:
Lloh59:
	adrp	x9, _REG_DATA@GOTPAGE
Lloh60:
	ldr	x9, [x9, _REG_DATA@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w9, w13
	b.eq	LBB0_18
; %bb.14:
	ldr	w10, [x10]
	bic	w21, w21, w10
	orr	w9, w9, w13
	str	w9, [x20]
	bfxil	w21, w22, #0, #4
Lloh62:
	adrp	x9, _WRITE@GOTPAGE
Lloh63:
	ldr	x9, [x9, _WRITE@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.15:
	mov	x0, x20
	bl	_jmb38x_ms_transfer_data
	ldp	x8, x9, [x20, #8]
	ldr	w0, [x8]
Lloh65:
	adrp	x8, _TPC_P0@GOTPAGE
Lloh66:
	ldr	x8, [x8, _TPC_P0@GOTPAGEOFF]
Lloh67:
	ldr	x8, [x8]
	add	x1, x8, x9
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	w23, [x8, #4]
Lloh68:
	adrp	x8, _TPC_P1@GOTPAGE
Lloh69:
	ldr	x8, [x8, _TPC_P1@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
Lloh70:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x20, #24]
	str	w0, [x8]
	b	LBB0_21
LBB0_18:
Lloh72:
	adrp	x8, _BLOCK_COUNT_MASK@GOTPAGE
Lloh73:
	ldr	x8, [x8, _BLOCK_COUNT_MASK@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	and	w8, w8, #0x10000
Lloh75:
	adrp	x9, _BLOCK_SIZE_MASK@GOTPAGE
Lloh76:
	ldr	x9, [x9, _BLOCK_SIZE_MASK@GOTPAGEOFF]
Lloh77:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w0, w9, w8
	ldr	x8, [x20, #16]
Lloh78:
	adrp	x9, _BLOCK@GOTPAGE
Lloh79:
	ldr	x9, [x9, _BLOCK@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #16]
Lloh81:
	adrp	x25, _INT_STATUS_ENABLE@GOTPAGE
Lloh82:
	ldr	x25, [x25, _INT_STATUS_ENABLE@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	ldp	x9, x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	x10, [x23]
Lloh83:
	adrp	x11, _INT_STATUS_FIFO_RRDY@GOTPAGE
Lloh84:
	ldr	x11, [x11, _INT_STATUS_FIFO_RRDY@GOTPAGEOFF]
Lloh85:
	adrp	x12, _INT_STATUS_FIFO_WRDY@GOTPAGE
Lloh86:
	ldr	x12, [x12, _INT_STATUS_FIFO_WRDY@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x11, x12, eq
	ldr	w8, [x8]
	orr	w23, w8, w0
	ldr	x8, [x25]
	add	x1, x8, x9
	mov	x0, x23
	bl	_writel
Lloh87:
	adrp	x8, _INT_SIGNAL_ENABLE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _INT_SIGNAL_ENABLE@GOTPAGEOFF]
LBB0_19:
	ldr	x9, [x20, #16]
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x23
	bl	_writel
LBB0_20:
	add	x0, x20, #40
Lloh89:
	adrp	x8, _jiffies@GOTPAGE
Lloh90:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh91:
	ldr	x8, [x8]
	ldr	x9, [x20, #32]
	add	x1, x9, x8
	bl	_mod_timer
Lloh92:
	adrp	x8, _HOST_CONTROL_LED@GOTPAGE
Lloh93:
	ldr	x8, [x8, _HOST_CONTROL_LED@GOTPAGEOFF]
Lloh94:
	ldr	w23, [x8]
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w23
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldp	x9, x8, [x20, #16]
	str	wzr, [x8]
Lloh95:
	adrp	x8, _TPC@GOTPAGE
Lloh96:
	ldr	x8, [x8, _TPC@GOTPAGEOFF]
Lloh97:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x21
	bl	_writel
	stp	x21, x22, [sp]
Lloh98:
	adrp	x1, l_.str.4@PAGE
Lloh99:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_HAS_MEDIA,4,2           ; @STATUS_HAS_MEDIA
	.comm	_STATUS,8,3                     ; @STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no media status\n"

	.comm	_ETIME,4,2                      ; @ETIME
l_.str.1:                               ; @.str.1
	.asciz	"control %08x\n"

	.comm	_HOST_CONTROL,8,3               ; @HOST_CONTROL
l_.str.2:                               ; @.str.2
	.asciz	"status %08x\n"

	.comm	_INT_STATUS,8,3                 ; @INT_STATUS
l_.str.3:                               ; @.str.3
	.asciz	"hstatus %08x\n"

	.comm	_TPC_DATA_SEL,4,2               ; @TPC_DATA_SEL
	.comm	_READ,8,3                       ; @READ
	.comm	_TPC_DIR,4,2                    ; @TPC_DIR
	.comm	_TPC_WAIT_INT,4,2               ; @TPC_WAIT_INT
	.comm	_no_dma,4,2                     ; @no_dma
	.comm	_DMA_DATA,4,2                   ; @DMA_DATA
	.comm	_REG_DATA,4,2                   ; @REG_DATA
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_ADDRESS,8,3                ; @DMA_ADDRESS
	.comm	_BLOCK_COUNT_MASK,4,2           ; @BLOCK_COUNT_MASK
	.comm	_BLOCK_SIZE_MASK,4,2            ; @BLOCK_SIZE_MASK
	.comm	_BLOCK,8,3                      ; @BLOCK
	.comm	_DMA_CONTROL_ENABLE,4,2         ; @DMA_CONTROL_ENABLE
	.comm	_DMA_CONTROL,8,3                ; @DMA_CONTROL
	.comm	_INT_STATUS_ENABLE,8,3          ; @INT_STATUS_ENABLE
	.comm	_INT_STATUS_FIFO_RRDY,4,2       ; @INT_STATUS_FIFO_RRDY
	.comm	_INT_STATUS_FIFO_WRDY,4,2       ; @INT_STATUS_FIFO_WRDY
	.comm	_INT_SIGNAL_ENABLE,8,3          ; @INT_SIGNAL_ENABLE
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_TPC_P0,8,3                     ; @TPC_P0
	.comm	_TPC_P1,8,3                     ; @TPC_P1
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HOST_CONTROL_LED,4,2           ; @HOST_CONTROL_LED
	.comm	_TPC,8,3                        ; @TPC
l_.str.4:                               ; @.str.4
	.asciz	"executing TPC %08x, len %x\n"

	.no_dead_strip	_jmb38x_ms_issue_cmd
.subsections_via_symbols
