	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_acpi_exec_tfs
_ata_acpi_exec_tfs:                     ## @ata_acpi_exec_tfs
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_ata_dev_get_GTF
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	je	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rsi
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	(%r15)
	movq	-48(%rbp), %rsi
	movq	%rsi, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rsi
	movq	%rsi, -48(%rbp)
	decl	%ebx
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_ata_acpi_run_tf
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rsi
	jmp	LBB0_8
LBB0_2:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_ata_acpi_clear_gtf
	movl	%r12d, %ebx
	sarl	$31, %ebx
	andl	%r12d, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ata_acpi_exec_tfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_acpi_exec_tfs
_ata_acpi_exec_tfs:                     ; @ata_acpi_exec_tfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x1, sp, #8
	bl	_ata_dev_get_GTF
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
	cbz	w21, LBB0_8
; %bb.2:
	mov	x23, #0
	ldr	x1, [sp, #8]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x8, [sp, #8]
	mov	x23, x8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x8, #4
	str	x1, [sp, #8]
	subs	w21, w21, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x2, x23
	bl	_ata_acpi_run_tf
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w22, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	b	LBB0_4
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_ata_acpi_clear_gtf
	cmp	w22, #0
	csel	w21, w22, wzr, lt
LBB0_10:
	mov	x0, 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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ata_acpi_exec_tfs
.subsections_via_symbols
