	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc86c001_dma_start
_tc86c001_dma_start:                    ## @tc86c001_dma_start
	.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, %r14
	movq	8(%rdi), %r15
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	movq	(%r15), %rbx
	setne	%al
	leaq	(%rbx,%rax,2), %r12
	addq	$4, %r12
	movl	16(%r15), %edi
	callq	_blk_rq_sectors
	addq	$10, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_outw
	movq	_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	%r12, %rsi
	callq	_outw
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	callq	_ide_set_hwifdata
	movq	_tc86c001_timer_expiry@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ide_dma_start                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SIZE,4,2                ## @SECTOR_SIZE
	.comm	_tc86c001_timer_expiry,4,2      ## @tc86c001_timer_expiry
	.no_dead_strip	_tc86c001_dma_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc86c001_dma_start
_tc86c001_dma_start:                    ; @tc86c001_dma_start
	.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
	ldp	x8, x20, [x0]
	ldr	x22, [x20]
	mov	w9, #6
	mov	w10, #4
	cmp	x8, #0
	csel	x8, x10, x9, eq
	add	x21, x8, x22
	ldr	w0, [x20, #16]
	bl	_blk_rq_sectors
	add	x1, x22, #10
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_outw
Lloh0:
	adrp	x8, _SECTOR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECTOR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	mov	x1, x21
	bl	_outw
	ldr	x1, [x20, #8]
	mov	x0, x20
	bl	_ide_set_hwifdata
Lloh3:
	adrp	x8, _tc86c001_timer_expiry@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tc86c001_timer_expiry@GOTPAGEOFF]
	str	x8, [x20, #8]
	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	_ide_dma_start
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SIZE,4,2                ; @SECTOR_SIZE
	.comm	_tc86c001_timer_expiry,4,2      ; @tc86c001_timer_expiry
	.no_dead_strip	_tc86c001_dma_start
.subsections_via_symbols
