	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_sd_end_cmd
_tifm_sd_end_cmd:                       ## @tifm_sd_end_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, %rbx
	movq	32(%rdi), %r12
	movq	%r12, %rdi
	callq	_tifm_get_drvdata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	leaq	24(%rbx), %rdi
	callq	_del_timer
	movq	16(%rbx), %r15
	movq	$0, 16(%rbx)
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_TIFM_MMCSD_BUFINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	_SOCK_MMCSD_INT_ENABLE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	andl	%eax, %ebx
	movq	(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	jmp	LBB0_5
LBB0_7:
	leaq	16(%r12), %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %r14
	movq	%r14, %rax
	cmoveq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_tifm_unmap_sg
	movq	24(%r13), %rsi
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	movl	4(%r13), %edx
	cmoveq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r12, %rdi
	callq	_tifm_unmap_sg
LBB0_5:
	movl	12(%r13), %ebx
	movq	_SOCK_MMCSD_NUM_BLOCKS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	notl	%eax
	addl	%ebx, %eax
	movl	16(%r13), %ebx
	imull	%ebx, %eax
	movl	%eax, 8(%r13)
	movq	_SOCK_MMCSD_BLOCK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	movl	8(%r13), %ecx
	subl	%eax, %ebx
	leal	(%rbx,%rcx), %eax
	incl	%eax
	movl	%eax, 8(%r13)
LBB0_6:
	movq	_TIFM_CTRL_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	_SOCK_CONTROL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%r12), %rdi
	callq	_readl
	andl	%eax, %ebx
	movq	(%r14), %rsi
	addq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmc_request_done               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" %s : no request to complete?\n"

	.comm	_TIFM_MMCSD_BUFINT,4,2          ## @TIFM_MMCSD_BUFINT
	.comm	_SOCK_MMCSD_INT_ENABLE,8,3      ## @SOCK_MMCSD_INT_ENABLE
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_SOCK_MMCSD_NUM_BLOCKS,8,3      ## @SOCK_MMCSD_NUM_BLOCKS
	.comm	_SOCK_MMCSD_BLOCK_LEN,8,3       ## @SOCK_MMCSD_BLOCK_LEN
	.comm	_TIFM_CTRL_LED,4,2              ## @TIFM_CTRL_LED
	.comm	_SOCK_CONTROL,8,3               ## @SOCK_CONTROL
	.no_dead_strip	_tifm_sd_end_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_sd_end_cmd
_tifm_sd_end_cmd:                       ; @tifm_sd_end_cmd
	.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	x22, x0
	ldr	x19, [x0, #32]
	mov	x0, x19
	bl	_tifm_get_drvdata
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x0, x22, #24
	bl	_del_timer
	ldr	x21, [x22, #16]
	str	xzr, [x22, #16]
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	ldr	x23, [x8]
	cbz	x23, LBB0_7
; %bb.2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _TIFM_MMCSD_BUFINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFM_MMCSD_BUFINT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x24, _SOCK_MMCSD_INT_ENABLE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SOCK_MMCSD_INT_ENABLE@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_readl
	bic	w0, w0, w22
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_6
LBB0_4:
	add	x0, x19, #16
	bl	_dev_name
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, 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	_spin_unlock_irqrestore
LBB0_5:
	ldr	w8, [x23]
Lloh7:
	adrp	x24, _MMC_DATA_WRITE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh9:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh11:
	adrp	x26, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x26, x25, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_tifm_unmap_sg
	ldr	x1, [x23, #24]
	ldp	w8, w2, [x23]
	ldr	w9, [x24]
	tst	w9, w8
	csel	x8, x26, x25, eq
	ldr	w3, [x8]
	mov	x0, x19
	bl	_tifm_unmap_sg
LBB0_6:
	ldr	w22, [x23, #12]
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _SOCK_MMCSD_NUM_BLOCKS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SOCK_MMCSD_NUM_BLOCKS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mvn	w8, w0
	add	w8, w22, w8
	ldr	w22, [x23, #16]
	mul	w8, w22, w8
	str	w8, [x23, #8]
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _SOCK_MMCSD_BLOCK_LEN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOCK_MMCSD_BLOCK_LEN@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23, #8]
	sub	w9, w22, w0
	add	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x23, #8]
LBB0_7:
Lloh19:
	adrp	x8, _TIFM_CTRL_LED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIFM_CTRL_LED@GOTPAGEOFF]
Lloh21:
	ldr	w22, [x8]
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x23, _SOCK_CONTROL@GOTPAGE
Lloh23:
	ldr	x23, [x23, _SOCK_CONTROL@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	bic	w0, w0, w22
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	x1, x21
	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	_mmc_request_done
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" %s : no request to complete?\n"

	.comm	_TIFM_MMCSD_BUFINT,4,2          ; @TIFM_MMCSD_BUFINT
	.comm	_SOCK_MMCSD_INT_ENABLE,8,3      ; @SOCK_MMCSD_INT_ENABLE
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_SOCK_MMCSD_NUM_BLOCKS,8,3      ; @SOCK_MMCSD_NUM_BLOCKS
	.comm	_SOCK_MMCSD_BLOCK_LEN,8,3       ; @SOCK_MMCSD_BLOCK_LEN
	.comm	_TIFM_CTRL_LED,4,2              ; @TIFM_CTRL_LED
	.comm	_SOCK_CONTROL,8,3               ; @SOCK_CONTROL
	.no_dead_strip	_tifm_sd_end_cmd
.subsections_via_symbols
