	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_vdbg
	movq	%r14, 32(%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_omap_hsmmc_enable_irq
	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_5
## %bb.1:
	movq	_MMC_RSP_136@GOTPCREL(%rip), %rsi
	movl	$65536, %ecx                    ## imm = 0x10000
	testl	%edx, (%rsi)
	jne	LBB0_5
## %bb.2:
	movq	_MMC_RSP_BUSY@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_3
## %bb.4:
	movl	$1, (%r12)
	movl	$196608, %ecx                   ## imm = 0x30000
	jmp	LBB0_5
LBB0_3:
	movl	$131072, %ecx                   ## imm = 0x20000
LBB0_5:
	movq	24(%r12), %rdx
	cmpq	%r14, 8(%rdx)
	movl	$12582912, %edx                 ## imm = 0xC00000
	cmovel	%edx, %eax
	movl	(%r14), %edi
	movl	%edi, %ebx
	shll	$24, %ebx
	orl	%ecx, %ebx
	orl	%eax, %ebx
	movq	_AUTO_CMD23@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_9
## %bb.6:
	callq	_mmc_op_multi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_ACEN_ACMD23@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movl	12(%r12), %edi
	movq	_SDMASA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_OMAP_HSMMC_WRITE
LBB0_9:
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:
	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_12
## %bb.11:
	orl	%eax, %ebx
	jmp	LBB0_13
LBB0_12:
	notl	%eax
	andl	%eax, %ebx
LBB0_13:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%r12)
	je	LBB0_15
## %bb.14:
	movq	_DMAE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_15:
	orl	%ebx, %r15d
	movl	$1, 8(%r12)
	movl	12(%r12), %edi
	movq	_ARG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_OMAP_HSMMC_WRITE
	movl	12(%r12), %edi
	movq	_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	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	_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	_AUTO_CMD23,4,2                 ## @AUTO_CMD23
	.comm	_ACEN_ACMD23,4,2                ## @ACEN_ACMD23
	.comm	_SDMASA,4,2                     ## @SDMASA
	.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	_DMAE,4,2                       ## @DMAE
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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_vdbg
	str	x20, [x19, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_omap_hsmmc_enable_irq
	str	wzr, [x19]
	ldr	w8, [x20, #8]
Lloh2:
	adrp	x9, _MMC_RSP_PRESENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMC_RSP_PRESENT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, _MMC_RSP_136@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MMC_RSP_136@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w8, #65536
	b	LBB0_7
LBB0_3:
	mov	w8, #0
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x9, _MMC_RSP_BUSY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MMC_RSP_BUSY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
	mov	w8, #196608
	b	LBB0_7
LBB0_6:
	mov	w8, #131072
LBB0_7:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, #8]
	cmp	x9, x20
	mov	w9, #12582912
	csel	w9, w9, wzr, eq
	ldr	w0, [x20]
	bfi	w8, w0, #24, #8
	orr	w22, w8, w9
	ldr	w8, [x19, #4]
Lloh11:
	adrp	x9, _AUTO_CMD23@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AUTO_CMD23@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	bl	_mmc_op_multi
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh14:
	adrp	x9, _ACEN_ACMD23@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ACEN_ACMD23@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w22, w9, w22
	ldr	w0, [x19, #12]
Lloh17:
	adrp	x9, _SDMASA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SDMASA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	ldr	w2, [x8]
	bl	_OMAP_HSMMC_WRITE
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _DP_SELECT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DP_SELECT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _MSBS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MSBS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _BCE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _BCE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w8, w8, w10
	ldr	w9, [x21]
Lloh29:
	adrp	x10, _MMC_DATA_READ@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MMC_DATA_READ@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w9
Lloh32:
	adrp	x9, _DDIR@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DDIR@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	csel	w22, w10, w8, eq
LBB0_13:
Lloh35:
	adrp	x8, _DMAE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DMAE@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh37:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w21, w8, w22
	mov	w8, #1
	str	w8, [x19, #8]
	ldr	w0, [x19, #12]
Lloh38:
	adrp	x8, _ARG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ARG@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_OMAP_HSMMC_WRITE
	ldr	w0, [x19, #12]
Lloh41:
	adrp	x8, _CMD@GOTPAGE
Lloh42:
	ldr	x8, [x8, _CMD@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_OMAP_HSMMC_WRITE
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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 AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: CMD%d, argument 0x%08x\n"

	.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	_AUTO_CMD23,4,2                 ; @AUTO_CMD23
	.comm	_ACEN_ACMD23,4,2                ; @ACEN_ACMD23
	.comm	_SDMASA,4,2                     ; @SDMASA
	.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	_DMAE,4,2                       ; @DMAE
	.comm	_ARG,4,2                        ; @ARG
	.comm	_CMD,4,2                        ; @CMD
	.no_dead_strip	_omap_hsmmc_start_command
.subsections_via_symbols
