	.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	24(%r12), %rdi
	callq	_readl
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	movq	_HOST_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%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	24(%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	24(%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, 64(%r12)
	movq	8(%r12), %rax
	movq	$0, (%rax)
	movq	32(%r12), %rsi
	movl	4(%rsi), %r15d
	shll	$16, %r15d
	movq	_TPC_DATA_SEL@GOTPCREL(%rip), %r8
	orl	(%r8), %r15d
	movq	8(%rsi), %rax
	movq	_READ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
## %bb.3:
	movq	_TPC_DIR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r13d
LBB0_4:
	orl	%r13d, %r15d
	cmpq	$0, 32(%rsi)
	je	LBB0_9
## %bb.5:
	movq	16(%r12), %rdi
	movq	_MEMSTICK_SERIAL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdi
	jne	LBB0_7
## %bb.6:
	movq	_TPC_GET_INT@GOTPCREL(%rip), %rdi
	jmp	LBB0_8
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_23
LBB0_7:
	movq	_TPC_WAIT_INT@GOTPCREL(%rip), %rdi
LBB0_8:
	orl	(%rdi), %r15d
LBB0_9:
	movq	_no_dma@GOTPCREL(%rip), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_10
## %bb.11:
	cmpq	$0, 24(%rsi)
	je	LBB0_13
LBB0_12:
	movl	20(%rsi), %r9d
	cmpl	$9, %r9d
	jae	LBB0_15
LBB0_16:
	movl	(%r8), %ebx
	notl	%ebx
	andl	%r15d, %ebx
	movq	_REG_DATA@GOTPCREL(%rip), %rdi
	movl	(%r12), %ecx
	orl	(%rdi), %ecx
	andl	$-16, %ebx
	movl	%ecx, (%r12)
	orl	%r9d, %ebx
	movq	_DMA_DATA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%ecx, %edi
	movl	%edi, (%r12)
	movl	%ebx, %r15d
	jmp	LBB0_17
LBB0_10:
	movq	_DMA_DATA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, (%r12)
	cmpq	$0, 24(%rsi)
	jne	LBB0_12
LBB0_13:
	movl	16(%rsi), %r9d
	movq	_DMA_DATA@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	notl	%edi
	andl	%edi, (%r12)
	cmpl	$9, %r9d
	jb	LBB0_16
LBB0_15:
	movl	(%r12), %edi
LBB0_17:
	movq	_DMA_DATA@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_25
## %bb.18:
	addq	$20, %rsi
	movq	56(%r12), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdx, %rax
	jne	LBB0_19
## %bb.20:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_25:
	movq	_REG_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edi, %edx
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_26
## %bb.30:
	movl	(%r8), %ecx
	notl	%ecx
	andl	%r15d, %ecx
	andl	$-16, %ecx
	orl	%edi, %edx
	movl	%edx, (%r12)
	movl	%r9d, %r15d
	andl	$15, %r15d
	orl	%ecx, %r15d
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_33
## %bb.31:
	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	24(%r12), %rsi
	callq	_writel
	movq	8(%r12), %rax
	movl	4(%rax), %r13d
	movq	_TPC_P1@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_19:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %ecx
	movl	$1, %edx
	callq	_dma_map_sg
	cmpl	$1, %eax
	jne	LBB0_22
## %bb.24:
	movq	32(%r12), %rdi
	addq	$20, %rdi
	callq	_sg_dma_len
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	addq	$20, %rdi
	callq	_sg_dma_address
	movq	_DMA_ADDRESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	24(%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	24(%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_32
LBB0_22:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_23:
	subl	(%rax), %ebx
	movq	32(%r12), %rax
	movl	%ebx, (%rax)
	jmp	LBB0_34
LBB0_26:
	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	24(%r12), %rsi
	callq	_writel
	movq	_INT_STATUS_ENABLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	24(%r12), %rdi
	callq	_readl
	movl	%eax, %r13d
	movq	32(%r12), %rax
	movq	8(%rax), %rax
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_27
## %bb.28:
	movq	_INT_STATUS_FIFO_RRDY@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_27:
	movq	_INT_STATUS_FIFO_WRDY@GOTPCREL(%rip), %rax
LBB0_29:
	orl	(%rax), %r13d
	movq	(%rbx), %rsi
	addq	24(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_INT_SIGNAL_ENABLE@GOTPCREL(%rip), %rax
LBB0_32:
	movq	(%rax), %rsi
	addq	24(%r12), %rsi
	movl	%r13d, %edi
	callq	_writel
LBB0_33:
	movq	%r12, %rdi
	addq	$48, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	40(%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	24(%r12), %rdi
	callq	_readl
	orl	%eax, %ebx
	movq	(%r13), %rsi
	addq	24(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	32(%r12), %rax
	movl	$0, (%rax)
	movq	_TPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%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_34:
	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	_MEMSTICK_SERIAL,8,3            ## @MEMSTICK_SERIAL
	.comm	_TPC_GET_INT,4,2                ## @TPC_GET_INT
	.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	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.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, #24]
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_4
; %bb.1:
	ldr	x8, [x20, #24]
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, #24]
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, #24]
	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, #64]
	ldr	x8, [x20, #8]
	str	xzr, [x8]
	ldr	x10, [x20, #32]
	ldr	w8, [x10, #4]
Lloh16:
	adrp	x9, _TPC_DATA_SEL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TPC_DATA_SEL@GOTPAGEOFF]
	ldr	w11, [x9]
	orr	w12, w11, w8, lsl #16
	ldr	x8, [x10, #8]
Lloh18:
	adrp	x23, _READ@GOTPAGE
Lloh19:
	ldr	x23, [x23, _READ@GOTPAGEOFF]
Lloh20:
	adrp	x13, _TPC_DIR@GOTPAGE
Lloh21:
	ldr	x13, [x13, _TPC_DIR@GOTPAGEOFF]
	ldr	x11, [x23]
Lloh22:
	ldr	w13, [x13]
	cmp	x8, x11
	csel	w13, w13, wzr, eq
	orr	w21, w12, w13
	ldr	x12, [x10, #32]
	cbz	x12, LBB0_7
; %bb.2:
	ldr	x12, [x20, #16]
Lloh23:
	adrp	x13, _MEMSTICK_SERIAL@GOTPAGE
Lloh24:
	ldr	x13, [x13, _MEMSTICK_SERIAL@GOTPAGEOFF]
Lloh25:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_5
; %bb.3:
Lloh26:
	adrp	x12, _TPC_GET_INT@GOTPAGE
Lloh27:
	ldr	x12, [x12, _TPC_GET_INT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh30:
	adrp	x8, _ETIME@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_21
LBB0_5:
Lloh32:
	adrp	x12, _TPC_WAIT_INT@GOTPAGE
Lloh33:
	ldr	x12, [x12, _TPC_WAIT_INT@GOTPAGEOFF]
LBB0_6:
	ldr	w12, [x12]
	orr	w21, w12, w21
LBB0_7:
Lloh34:
	adrp	x12, _no_dma@GOTPAGE
Lloh35:
	ldr	x12, [x12, _no_dma@GOTPAGEOFF]
Lloh36:
	ldr	w13, [x12]
Lloh37:
	adrp	x12, _DMA_DATA@GOTPAGE
Lloh38:
	ldr	x12, [x12, _DMA_DATA@GOTPAGEOFF]
	cbz	w13, LBB0_11
; %bb.8:
	ldr	x13, [x10, #24]
	cbz	x13, LBB0_12
LBB0_9:
	ldr	w22, [x10, #20]
	cmp	w22, #9
	b.hs	LBB0_13
LBB0_10:
	ldr	w13, [x9]
	bic	w13, w21, w13
	and	w13, w13, #0xfffffff0
Lloh39:
	adrp	x14, _REG_DATA@GOTPAGE
Lloh40:
	ldr	x14, [x14, _REG_DATA@GOTPAGEOFF]
Lloh41:
	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_14
LBB0_11:
	ldr	w13, [x12]
	ldr	w14, [x20]
	orr	w13, w14, w13
	str	w13, [x20]
	ldr	x13, [x10, #24]
	cbnz	x13, LBB0_9
LBB0_12:
	ldr	w22, [x10, #16]
	ldr	w13, [x12]
	ldr	w14, [x20]
	bic	w13, w14, w13
	str	w13, [x20]
	cmp	w22, #9
	b.lo	LBB0_10
LBB0_13:
	ldr	w13, [x20]
LBB0_14:
	ldr	w12, [x12]
	tst	w12, w13
	b.eq	LBB0_17
; %bb.15:
	ldr	x9, [x20, #56]
	ldr	x0, [x9]
Lloh42:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
	add	x1, x10, #20
Lloh44:
	adrp	x10, _DMA_TO_DEVICE@GOTPAGE
Lloh45:
	ldr	x10, [x10, _DMA_TO_DEVICE@GOTPAGEOFF]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
	mov	w2, #1
	bl	_dma_map_sg
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.16:
	ldr	x8, [x20, #32]
	add	x0, x8, #20
	bl	_sg_dma_len
	mov	x22, x0
	ldr	x8, [x20, #32]
	add	x0, x8, #20
	bl	_sg_dma_address
	ldr	x8, [x20, #24]
Lloh46:
	adrp	x9, _DMA_ADDRESS@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DMA_ADDRESS@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh49:
	adrp	x8, _BLOCK_COUNT_MASK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BLOCK_COUNT_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	and	w8, w8, #0x10000
Lloh52:
	adrp	x9, _BLOCK_SIZE_MASK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _BLOCK_SIZE_MASK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w0, w9, w8
	ldr	x8, [x20, #24]
Lloh55:
	adrp	x9, _BLOCK@GOTPAGE
Lloh56:
	ldr	x9, [x9, _BLOCK@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh58:
	adrp	x8, _DMA_CONTROL_ENABLE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DMA_CONTROL_ENABLE@GOTPAGEOFF]
Lloh60:
	ldr	w23, [x8]
Lloh61:
	adrp	x8, _DMA_CONTROL@GOTPAGE
Lloh62:
	ldr	x8, [x8, _DMA_CONTROL@GOTPAGEOFF]
	b	LBB0_23
LBB0_17:
Lloh63:
	adrp	x10, _REG_DATA@GOTPAGE
Lloh64:
	ldr	x10, [x10, _REG_DATA@GOTPAGEOFF]
Lloh65:
	ldr	w10, [x10]
	tst	w10, w13
	b.eq	LBB0_22
; %bb.18:
	ldr	w9, [x9]
	bic	w21, w21, w9
	orr	w9, w10, w13
	str	w9, [x20]
	bfxil	w21, w22, #0, #4
Lloh66:
	adrp	x9, _WRITE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _WRITE@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.19:
	mov	x0, x20
	bl	_jmb38x_ms_transfer_data
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh69:
	adrp	x9, _TPC_P0@GOTPAGE
Lloh70:
	ldr	x9, [x9, _TPC_P0@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #8]
	ldr	w23, [x8, #4]
Lloh72:
	adrp	x8, _TPC_P1@GOTPAGE
Lloh73:
	ldr	x8, [x8, _TPC_P1@GOTPAGEOFF]
	b	LBB0_23
LBB0_20:
Lloh74:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh75:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x20, #32]
	str	w0, [x8]
	b	LBB0_25
LBB0_22:
Lloh76:
	adrp	x8, _BLOCK_COUNT_MASK@GOTPAGE
Lloh77:
	ldr	x8, [x8, _BLOCK_COUNT_MASK@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	and	w8, w8, #0x10000
Lloh79:
	adrp	x9, _BLOCK_SIZE_MASK@GOTPAGE
Lloh80:
	ldr	x9, [x9, _BLOCK_SIZE_MASK@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	and	w9, w9, w22
	orr	w0, w9, w8
	ldr	x8, [x20, #24]
Lloh82:
	adrp	x9, _BLOCK@GOTPAGE
Lloh83:
	ldr	x9, [x9, _BLOCK@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x20, #24]
Lloh85:
	adrp	x25, _INT_STATUS_ENABLE@GOTPAGE
Lloh86:
	ldr	x25, [x25, _INT_STATUS_ENABLE@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	ldp	x9, x8, [x20, #24]
	ldr	x8, [x8, #8]
	ldr	x10, [x23]
Lloh87:
	adrp	x11, _INT_STATUS_FIFO_RRDY@GOTPAGE
Lloh88:
	ldr	x11, [x11, _INT_STATUS_FIFO_RRDY@GOTPAGEOFF]
Lloh89:
	adrp	x12, _INT_STATUS_FIFO_WRDY@GOTPAGE
Lloh90:
	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
Lloh91:
	adrp	x8, _INT_SIGNAL_ENABLE@GOTPAGE
Lloh92:
	ldr	x8, [x8, _INT_SIGNAL_ENABLE@GOTPAGEOFF]
LBB0_23:
	ldr	x9, [x20, #24]
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x23
	bl	_writel
LBB0_24:
	add	x0, x20, #48
Lloh93:
	adrp	x8, _jiffies@GOTPAGE
Lloh94:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh95:
	ldr	x8, [x8]
	ldr	x9, [x20, #40]
	add	x1, x9, x8
	bl	_mod_timer
Lloh96:
	adrp	x8, _HOST_CONTROL_LED@GOTPAGE
Lloh97:
	ldr	x8, [x8, _HOST_CONTROL_LED@GOTPAGEOFF]
Lloh98:
	ldr	w23, [x8]
	ldr	x8, [x20, #24]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	orr	w0, w0, w23
	ldr	x8, [x20, #24]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldp	x9, x8, [x20, #24]
	str	wzr, [x8]
Lloh99:
	adrp	x8, _TPC@GOTPAGE
Lloh100:
	ldr	x8, [x8, _TPC@GOTPAGEOFF]
Lloh101:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x21
	bl	_writel
	stp	x21, x22, [sp]
Lloh102:
	adrp	x1, l_.str.4@PAGE
Lloh103:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_25:
	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 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 AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.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	_MEMSTICK_SERIAL,8,3            ; @MEMSTICK_SERIAL
	.comm	_TPC_GET_INT,4,2                ; @TPC_GET_INT
	.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	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.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
