	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_sd_data_event
_tifm_sd_data_event:                    ## @tifm_sd_data_event
	.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	%rdi, %rbx
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_tifm_get_drvdata
	movq	%rax, %rdi
	callq	_mmc_priv
	movq	%rax, %r14
	movq	_SOCK_DMA_FIFO_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	leaq	16(%rbx), %rdi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	_TIFM_FIFO_READY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_tifm_sd_set_dma_data
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FIFO_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_tifm_sd_check_status
LBB0_5:
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DMA_FIFO_STATUS,8,3       ## @SOCK_DMA_FIFO_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data event: fifo_status %x, flags %x\n"

	.comm	_TIFM_FIFO_READY,4,2            ## @TIFM_FIFO_READY
	.comm	_FIFO_READY,4,2                 ## @FIFO_READY
	.no_dead_strip	_tifm_sd_data_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_sd_data_event
_tifm_sd_data_event:                    ; @tifm_sd_data_event
	.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	x19, x0
	bl	_spin_lock
	mov	x0, x19
	bl	_tifm_get_drvdata
	bl	_mmc_priv
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _SOCK_DMA_FIFO_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SOCK_DMA_FIFO_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	add	x0, x19, #16
	ldr	w3, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	ldr	x1, [x8]
	cbz	x1, LBB0_5
; %bb.2:
Lloh4:
	adrp	x8, _TIFM_FIFO_READY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIFM_FIFO_READY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_tifm_sd_set_dma_data
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _FIFO_READY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FIFO_READY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x20
	bl	_tifm_sd_check_status
LBB0_5:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	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	_spin_unlock
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DMA_FIFO_STATUS,8,3       ; @SOCK_DMA_FIFO_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data event: fifo_status %x, flags %x\n"

	.comm	_TIFM_FIFO_READY,4,2            ; @TIFM_FIFO_READY
	.comm	_FIFO_READY,4,2                 ; @FIFO_READY
	.no_dead_strip	_tifm_sd_data_event
.subsections_via_symbols
