	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_hsmmc_do_irq
_omap_hsmmc_do_irq:                     ## @omap_hsmmc_do_irq
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %r13
	movl	20(%rdi), %edi
	callq	_mmc_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_dev_vdbg
	movq	_ERR_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_omap_hsmmc_dbg_report_irq
	movq	_CTO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CCRC_EN@GOTPCREL(%rip), %rdx
	movq	_CEB_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movl	%eax, %esi
	orl	%ecx, %esi
	xorl	%r12d, %r12d
	testl	%r15d, %esi
	setne	%dl
	cmpq	$0, 32(%rbx)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
LBB0_5:
	xorl	%r14d, %r14d
	testl	%r15d, %esi
	sete	%r14b
	movq	$0, 24(%rbx)
LBB0_6:
	movb	%dl, %r12b
	movq	_DTO_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%r15d, %ecx
	je	LBB0_8
## %bb.7:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_8:
	movq	_DCRC_EN@GOTPCREL(%rip), %rcx
	movq	_DEB_EN@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_BADA_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%r15d, %eax
	je	LBB0_11
## %bb.9:
	movq	_EILSEQ@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_hsmmc_command_incomplete
LBB0_11:
	movq	_ACE_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_22
## %bb.12:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	movq	_AC12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OMAP_HSMMC_READ
	movl	%eax, %r13d
	movq	_ACNE@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_21
## %bb.13:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.14:
	movq	_ACTO@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_16:
	movq	_ACCE@GOTPCREL(%rip), %rcx
	movq	_ACEB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ACIE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%r13d, %edx
	je	LBB0_17
## %bb.18:
	movq	_EILSEQ@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%esi, %esi
	subl	(%rcx), %esi
LBB0_20:
	movl	%esi, (%rax)
	movl	$1, %r12d
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hsmmc_command_incomplete
LBB0_21:
	movl	20(%rbx), %edi
	callq	_mmc_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movl	%r13d, %edx
	callq	_dev_dbg
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_22:
	movl	16(%rbx), %edi
	movq	_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_OMAP_HSMMC_WRITE
	testl	%r12d, %r12d
	je	LBB0_24
## %bb.23:
	movq	8(%rbx), %rsi
LBB0_26:
	movq	%rbx, %rdi
	callq	_omap_hsmmc_cmd_done
LBB0_27:
	testl	%r14d, %r14d
	jne	LBB0_29
## %bb.28:
	movq	_TC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_30
LBB0_29:
	cmpq	$0, (%rbx)
	je	LBB0_30
## %bb.31:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap_hsmmc_xfer_done           ## TAILCALL
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_CC_EN@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_27
## %bb.25:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_26
	jmp	LBB0_27
LBB0_17:
	xorl	%esi, %esi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ Status is %x\n"

	.comm	_ERR_EN,4,2                     ## @ERR_EN
	.comm	_CTO_EN,4,2                     ## @CTO_EN
	.comm	_CCRC_EN,4,2                    ## @CCRC_EN
	.comm	_CEB_EN,4,2                     ## @CEB_EN
	.comm	_DTO_EN,4,2                     ## @DTO_EN
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_DCRC_EN,4,2                    ## @DCRC_EN
	.comm	_DEB_EN,4,2                     ## @DEB_EN
	.comm	_BADA_EN,4,2                    ## @BADA_EN
	.comm	_EILSEQ,4,2                     ## @EILSEQ
	.comm	_ACE_EN,4,2                     ## @ACE_EN
	.comm	_AC12,4,2                       ## @AC12
	.comm	_ACNE,4,2                       ## @ACNE
	.comm	_ACTO,4,2                       ## @ACTO
	.comm	_ACCE,4,2                       ## @ACCE
	.comm	_ACEB,4,2                       ## @ACEB
	.comm	_ACIE,4,2                       ## @ACIE
L_.str.1:                               ## @.str.1
	.asciz	"AC12 err: 0x%x\n"

	.comm	_STAT,4,2                       ## @STAT
	.comm	_CC_EN,4,2                      ## @CC_EN
	.comm	_TC_EN,4,2                      ## @TC_EN
	.no_dead_strip	_omap_hsmmc_do_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_hsmmc_do_irq
_omap_hsmmc_do_irq:                     ; @omap_hsmmc_do_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	w0, [x0, #20]
	bl	_mmc_dev
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_vdbg
Lloh2:
	adrp	x8, _ERR_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_omap_hsmmc_dbg_report_irq
Lloh5:
	adrp	x8, _CTO_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTO_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x8]
Lloh8:
	adrp	x8, _CCRC_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CCRC_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x10, _CEB_EN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CEB_EN@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w10, w8
	orr	w10, w8, w9
	ands	w10, w10, w21
	cset	w22, ne
	ldr	x11, [x20, #32]
	cbnz	x11, LBB0_3
; %bb.2:
	ldr	x11, [x20, #24]
	cbz	x11, LBB0_14
LBB0_3:
	cmp	w10, #0
	cset	w24, eq
	str	xzr, [x20, #24]
LBB0_4:
Lloh14:
	adrp	x10, _DTO_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DTO_EN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w10, w10, w9
Lloh17:
	adrp	x25, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _ETIMEDOUT@GOTPAGEOFF]
	mov	x9, x25
	tst	w10, w21
	b.ne	LBB0_7
; %bb.5:
Lloh19:
	adrp	x9, _DCRC_EN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DCRC_EN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _DEB_EN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _DEB_EN@GOTPAGEOFF]
Lloh24:
	adrp	x11, _BADA_EN@GOTPAGE
Lloh25:
	ldr	x11, [x11, _BADA_EN@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	ldr	w11, [x11]
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	tst	w8, w21
	b.eq	LBB0_8
; %bb.6:
Lloh28:
	adrp	x9, _EILSEQ@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EILSEQ@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x9]
	neg	w1, w8
	mov	x0, x20
	mov	x2, x22
	bl	_hsmmc_command_incomplete
LBB0_8:
Lloh30:
	adrp	x8, _ACE_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ACE_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.9:
	ldr	w0, [x20, #16]
Lloh33:
	adrp	x8, _AC12@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AC12@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_OMAP_HSMMC_READ
	mov	x23, x0
Lloh36:
	adrp	x8, _ACNE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ACNE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_19
; %bb.10:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.11:
Lloh39:
	adrp	x9, _ACTO@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ACTO@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_15
; %bb.12:
	ldr	w9, [x25]
	b	LBB0_17
LBB0_13:
	mov	w24, #0
	mov	w22, #0
	b	LBB0_20
LBB0_14:
	mov	w24, #0
	b	LBB0_4
LBB0_15:
Lloh42:
	adrp	x9, _ACCE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ACCE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _ACEB@GOTPAGE
Lloh46:
	ldr	x10, [x10, _ACEB@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh48:
	adrp	x10, _ACIE@GOTPAGE
Lloh49:
	ldr	x10, [x10, _ACIE@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w23
	b.eq	LBB0_30
; %bb.16:
Lloh51:
	adrp	x9, _EILSEQ@GOTPAGE
Lloh52:
	ldr	x9, [x9, _EILSEQ@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
LBB0_17:
	neg	w1, w9
LBB0_18:
	str	w1, [x8]
	mov	w22, #1
	mov	x0, x20
	mov	w2, #1
	bl	_hsmmc_command_incomplete
LBB0_19:
	ldr	w0, [x20, #20]
	bl	_mmc_dev
Lloh54:
	adrp	x1, l_.str.1@PAGE
Lloh55:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_dev_dbg
LBB0_20:
	ldr	w0, [x20, #16]
Lloh56:
	adrp	x8, _STAT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STAT@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_OMAP_HSMMC_WRITE
	cbz	w22, LBB0_28
; %bb.21:
	ldr	x1, [x20, #8]
LBB0_22:
	mov	x0, x20
	bl	_omap_hsmmc_cmd_done
LBB0_23:
	cbnz	w24, LBB0_25
; %bb.24:
Lloh59:
	adrp	x8, _TC_EN@GOTPAGE
Lloh60:
	ldr	x8, [x8, _TC_EN@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_27
LBB0_25:
	ldr	x8, [x20]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x20
	mov	x1, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_omap_hsmmc_xfer_done
LBB0_27:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
Lloh62:
	adrp	x8, _CC_EN@GOTPAGE
Lloh63:
	ldr	x8, [x8, _CC_EN@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_23
; %bb.29:
	ldr	x1, [x20, #8]
	cbnz	x1, LBB0_22
	b	LBB0_23
LBB0_30:
	mov	w1, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ Status is %x\n"

	.comm	_ERR_EN,4,2                     ; @ERR_EN
	.comm	_CTO_EN,4,2                     ; @CTO_EN
	.comm	_CCRC_EN,4,2                    ; @CCRC_EN
	.comm	_CEB_EN,4,2                     ; @CEB_EN
	.comm	_DTO_EN,4,2                     ; @DTO_EN
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_DCRC_EN,4,2                    ; @DCRC_EN
	.comm	_DEB_EN,4,2                     ; @DEB_EN
	.comm	_BADA_EN,4,2                    ; @BADA_EN
	.comm	_EILSEQ,4,2                     ; @EILSEQ
	.comm	_ACE_EN,4,2                     ; @ACE_EN
	.comm	_AC12,4,2                       ; @AC12
	.comm	_ACNE,4,2                       ; @ACNE
	.comm	_ACTO,4,2                       ; @ACTO
	.comm	_ACCE,4,2                       ; @ACCE
	.comm	_ACEB,4,2                       ; @ACEB
	.comm	_ACIE,4,2                       ; @ACIE
l_.str.1:                               ; @.str.1
	.asciz	"AC12 err: 0x%x\n"

	.comm	_STAT,4,2                       ; @STAT
	.comm	_CC_EN,4,2                      ; @CC_EN
	.comm	_TC_EN,4,2                      ; @TC_EN
	.no_dead_strip	_omap_hsmmc_do_irq
.subsections_via_symbols
