	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_start_command
_omap_hsmmc_start_command:              ## @omap_hsmmc_start_command
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	40(%rdi), %edi
	callq	_mmc_dev
	movl	%eax, %ebx
	movl	40(%r12), %edi
	callq	_mmc_hostname
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%r14, 32(%r12)
	movl	4(%r12), %edi
	movq	_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STAT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_OMAP_HSMMC_WRITE
	movl	4(%r12), %edi
	movq	_ISE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INT_EN_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_OMAP_HSMMC_WRITE
	cmpq	$0, 16(%r12)
	movl	4(%r12), %edi
	movq	_IE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	je	LBB0_2
## %bb.1:
	movq	_BRR_ENABLE@GOTPCREL(%rip), %rax
	movq	_BWR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %edx
LBB0_2:
	callq	_OMAP_HSMMC_WRITE
	movl	$0, (%r12)
	movl	8(%r14), %edx
	movq	_MMC_RSP_PRESENT@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	movl	$0, %ecx
	testl	%edx, (%rsi)
	je	LBB0_7
## %bb.3:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rsi
	movl	$65536, %ecx                    ## imm = 0x10000
	testl	%edx, (%rsi)
	jne	LBB0_7
## %bb.4:
	movq	_MMC_RSP_BUSY@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.6:
	movl	$1, (%r12)
	movl	$196608, %ecx                   ## imm = 0x30000
	jmp	LBB0_7
LBB0_5:
	movl	$131072, %ecx                   ## imm = 0x20000
LBB0_7:
	movq	24(%r12), %rdx
	cmpq	%r14, (%rdx)
	movl	$12582912, %edx                 ## imm = 0xC00000
	cmovel	%edx, %eax
	movl	(%r14), %ebx
	shll	$24, %ebx
	orl	%ecx, %ebx
	orl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_11
## %bb.8:
	movq	_DP_SELECT@GOTPCREL(%rip), %rax
	movq	_MSBS@GOTPCREL(%rip), %rcx
	movq	_BCE@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	movq	_MMC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%r15)
	je	LBB0_10
## %bb.9:
	orl	%eax, %ebx
	jmp	LBB0_11
LBB0_10:
	notl	%eax
	andl	%eax, %ebx
LBB0_11:
	movq	16(%r12), %r13
	movq	_DMA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_in_interrupt
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	12(%r12), %rdi
	movl	8(%r12), %esi
	callq	_spin_unlock_irqrestore
LBB0_13:
	testq	%r13, %r13
	movl	$0, %eax
	cmovel	%eax, %r15d
	orl	%ebx, %r15d
	movl	4(%r12), %edi
	movq	_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_OMAP_HSMMC_WRITE
	movl	4(%r12), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OMAP_HSMMC_WRITE               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: CMD%d, argument 0x%08x\n"

	.comm	_STAT,4,2                       ## @STAT
	.comm	_STAT_CLEAR,4,2                 ## @STAT_CLEAR
	.comm	_ISE,4,2                        ## @ISE
	.comm	_INT_EN_MASK,4,2                ## @INT_EN_MASK
	.comm	_IE,4,2                         ## @IE
	.comm	_BRR_ENABLE,4,2                 ## @BRR_ENABLE
	.comm	_BWR_ENABLE,4,2                 ## @BWR_ENABLE
	.comm	_MMC_RSP_PRESENT,4,2            ## @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ## @MMC_RSP_136
	.comm	_MMC_RSP_BUSY,4,2               ## @MMC_RSP_BUSY
	.comm	_DP_SELECT,4,2                  ## @DP_SELECT
	.comm	_MSBS,4,2                       ## @MSBS
	.comm	_BCE,4,2                        ## @BCE
	.comm	_MMC_DATA_READ,4,2              ## @MMC_DATA_READ
	.comm	_DDIR,4,2                       ## @DDIR
	.comm	_DMA_EN,4,2                     ## @DMA_EN
	.comm	_ARG,4,2                        ## @ARG
	.comm	_CMD,4,2                        ## @CMD
	.no_dead_strip	_omap_hsmmc_start_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_start_command
_omap_hsmmc_start_command:              ; @omap_hsmmc_start_command
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_mmc_dev
	mov	x22, x0
	ldr	w0, [x19, #40]
	bl	_mmc_hostname
	mov	x2, x0
	ldp	w3, w4, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	str	x20, [x19, #32]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _STAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STAT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _STAT_CLEAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STAT_CLEAR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _ISE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x22, _INT_EN_MASK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _INT_EN_MASK@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_OMAP_HSMMC_WRITE
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x9, _IE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	ldr	w2, [x22]
	cbz	x8, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _BRR_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BRR_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _BWR_ENABLE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BWR_ENABLE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w2, w8
LBB0_2:
	bl	_OMAP_HSMMC_WRITE
	str	wzr, [x19]
	ldr	w8, [x20, #8]
Lloh22:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh25:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w8, #65536
	b	LBB0_9
LBB0_5:
	mov	w8, #0
	b	LBB0_9
LBB0_6:
Lloh28:
	adrp	x9, _MMC_RSP_BUSY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MMC_RSP_BUSY@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
	mov	w8, #196608
	b	LBB0_9
LBB0_8:
	mov	w8, #131072
LBB0_9:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	cmp	x9, x20
	mov	w9, #12582912
	csel	w9, w9, wzr, eq
	ldr	w10, [x20]
	bfi	w8, w10, #24, #8
	orr	w22, w8, w9
	cbz	x21, LBB0_11
; %bb.10:
Lloh31:
	adrp	x8, _DP_SELECT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DP_SELECT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _MSBS@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MSBS@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _BCE@GOTPAGE
Lloh38:
	ldr	x10, [x10, _BCE@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [x21]
Lloh40:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
Lloh43:
	adrp	x9, _DDIR@GOTPAGE
Lloh44:
	ldr	x9, [x9, _DDIR@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	csel	w22, w10, w8, eq
LBB0_11:
	ldr	x21, [x19, #16]
Lloh46:
	adrp	x8, _DMA_EN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _DMA_EN@GOTPAGEOFF]
Lloh48:
	ldr	w23, [x8]
	bl	_in_interrupt
	cbnz	w0, LBB0_13
; %bb.12:
	add	x0, x19, #12
	ldr	w1, [x19, #8]
	bl	_spin_unlock_irqrestore
LBB0_13:
	cmp	x21, #0
	csel	w8, wzr, w23, eq
	orr	w21, w8, w22
	ldr	w0, [x19, #4]
Lloh49:
	adrp	x8, _ARG@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ARG@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x19, #4]
Lloh52:
	adrp	x8, _CMD@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x2, x21
	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
	b	_OMAP_HSMMC_WRITE
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: CMD%d, argument 0x%08x\n"

	.comm	_STAT,4,2                       ; @STAT
	.comm	_STAT_CLEAR,4,2                 ; @STAT_CLEAR
	.comm	_ISE,4,2                        ; @ISE
	.comm	_INT_EN_MASK,4,2                ; @INT_EN_MASK
	.comm	_IE,4,2                         ; @IE
	.comm	_BRR_ENABLE,4,2                 ; @BRR_ENABLE
	.comm	_BWR_ENABLE,4,2                 ; @BWR_ENABLE
	.comm	_MMC_RSP_PRESENT,4,2            ; @MMC_RSP_PRESENT
	.comm	_MMC_RSP_136,4,2                ; @MMC_RSP_136
	.comm	_MMC_RSP_BUSY,4,2               ; @MMC_RSP_BUSY
	.comm	_DP_SELECT,4,2                  ; @DP_SELECT
	.comm	_MSBS,4,2                       ; @MSBS
	.comm	_BCE,4,2                        ; @BCE
	.comm	_MMC_DATA_READ,4,2              ; @MMC_DATA_READ
	.comm	_DDIR,4,2                       ; @DDIR
	.comm	_DMA_EN,4,2                     ; @DMA_EN
	.comm	_ARG,4,2                        ; @ARG
	.comm	_CMD,4,2                        ; @CMD
	.no_dead_strip	_omap_hsmmc_start_command
.subsections_via_symbols
