	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshsd_data_end_irq
_toshsd_data_end_irq:                   ## @toshsd_data_end_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	$0, 16(%rdi)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%edx, %edx
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	16(%rax), %edx
	imull	12(%rax), %edx
LBB0_3:
	movl	%edx, 8(%rax)
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_SD_STOPINTERNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	xorl	%edi, %edi
	callq	_iowrite16
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_toshsd_finish_request          ## TAILCALL
LBB0_4:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spurious data end IRQ\n"

L_.str.1:                               ## @.str.1
	.asciz	"Completed data request xfr=%d\n"

	.comm	_SD_STOPINTERNAL,8,3            ## @SD_STOPINTERNAL
	.no_dead_strip	_toshsd_data_end_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshsd_data_end_irq
_toshsd_data_end_irq:                   ; @toshsd_data_end_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	str	xzr, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	w2, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_4:
	ldp	w9, w10, [x8, #12]
	mul	w2, w10, w9
LBB0_5:
	str	w2, [x8, #8]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _SD_STOPINTERNAL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SD_STOPINTERNAL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite16
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_toshsd_finish_request
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spurious data end IRQ\n"

l_.str.1:                               ; @.str.1
	.asciz	"Completed data request xfr=%d\n"

	.comm	_SD_STOPINTERNAL,8,3            ; @SD_STOPINTERNAL
	.no_dead_strip	_toshsd_data_end_irq
.subsections_via_symbols
