	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __scc_dma_end
___scc_dma_end:                         ## @__scc_dma_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	callq	_scc_ide_inb
	andl	$-2, %eax
	movq	(%r14), %rsi
	movl	%eax, %edi
	callq	_scc_ide_outb
	movq	%r14, %rdi
	callq	_scc_dma_sff_read_status
	movl	%eax, %ebx
	movl	%eax, %edi
	orl	$6, %edi
	movq	(%r14), %rsi
	addq	$4, %rsi
	callq	_scc_ide_outb
	movl	%ebx, %ecx
	andl	$7, %ecx
	orl	$16, %ebx
	xorl	%eax, %eax
	cmpl	$4, %ecx
	cmovnel	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___scc_dma_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __scc_dma_end
___scc_dma_end:                         ; @__scc_dma_end
	.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
	ldr	x19, [x0]
	ldr	x0, [x19]
	bl	_scc_ide_inb
	and	w0, w0, #0xfffffffe
	ldr	x1, [x19]
	bl	_scc_ide_outb
	mov	x0, x19
	bl	_scc_dma_sff_read_status
	mov	x20, x0
	orr	w0, w0, #0x6
	ldr	x8, [x19]
	add	x1, x8, #4
	bl	_scc_ide_outb
	and	w8, w20, #0x7
	orr	w9, w20, #0x10
	cmp	w8, #4
	csel	w0, wzr, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___scc_dma_end
.subsections_via_symbols
