	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_acpi_exec_tfs              ## -- Begin function ide_acpi_exec_tfs
	.p2align	4, 0x90
_ide_acpi_exec_tfs:                     ## @ide_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	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBPRINT
	leaq	-20(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_do_drive_get_GTF
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBPRINT
	movl	-20(%rbp), %esi
	movq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_do_drive_set_taskfiles
	movl	%eax, %r14d
	movq	-32(%rbp), %rdi
	callq	_kfree
	testl	%r14d, %r14d
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DEBPRINT
LBB0_4:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DEBPRINT
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"call get_GTF, drive=%s port=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"get_GTF error (%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"call set_taskfiles, drive=%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"set_taskfiles error (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_acpi_exec_tfs              ; -- Begin function ide_acpi_exec_tfs
	.p2align	2
_ide_acpi_exec_tfs:                     ; @ide_acpi_exec_tfs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldp	w1, w8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBPRINT
	sub	x1, x29, #20
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x20
	bl	_do_drive_get_GTF
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w1, [x20]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEBPRINT
	ldur	w1, [x29, #-20]
	ldr	x2, [sp, #16]
	mov	x0, x20
	bl	_do_drive_set_taskfiles
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_kfree
	tbz	w19, #31, LBB0_3
; %bb.2:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_DEBPRINT
LBB0_3:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x19, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_DEBPRINT
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"call get_GTF, drive=%s port=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"get_GTF error (%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"call set_taskfiles, drive=%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"set_taskfiles error (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"ret=%d\n"

.subsections_via_symbols
