	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_acpi_run_tf
_ata_acpi_run_tf:                       ## @ata_acpi_run_tf
	.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
	subq	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rsi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.1:
	cmpq	$0, 8(%rax)
	jne	LBB0_8
## %bb.2:
	cmpq	$0, 16(%rax)
	jne	LBB0_8
## %bb.3:
	cmpq	$0, 24(%rax)
	jne	LBB0_8
## %bb.4:
	cmpq	$0, 32(%rax)
	jne	LBB0_8
## %bb.5:
	cmpq	$0, 40(%rax)
	jne	LBB0_8
## %bb.6:
	cmpq	$0, 48(%rax)
	je	LBB0_7
LBB0_8:
	leaq	-152(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ata_acpi_gtf_to_tf
	testq	%r14, %r14
	je	LBB0_9
## %bb.10:
	leaq	-224(%rbp), %rbx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_ata_acpi_gtf_to_tf
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	leaq	-152(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_ata_acpi_filter_tf
	testl	%eax, %eax
	je	LBB0_12
## %bb.17:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-112(%rbp), %rdi
	movl	$60, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_18:
	movl	-152(%rbp), %edi
	callq	_ata_get_cmd_descript
	movl	-152(%rbp), %ecx
	movl	-148(%rbp), %r8d
	movl	-128(%rbp), %r9d
	movl	-132(%rbp), %r10d
	movl	-136(%rbp), %r11d
	movl	-140(%rbp), %r13d
	movl	-144(%rbp), %ebx
	testq	%rax, %rax
	leaq	L_.str.5(%rip), %r15
	cmovneq	%rax, %r15
	leaq	-112(%rbp), %rax
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	pushq	%rax
	pushq	%r15
	pushq	%rbx
	pushq	%r13
	pushq	%r11
	pushq	%r10
	callq	_ata_dev_printk
	addq	$48, %rsp
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r14d, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movups	-152(%rbp), %xmm0
	movups	-140(%rbp), %xmm1
	movups	%xmm1, -180(%rbp)
	movaps	%xmm0, -192(%rbp)
	movq	_DMA_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	subq	$8, %rsp
	xorl	%r14d, %r14d
	leaq	-192(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_ata_exec_internal
	addq	$16, %rsp
	cmpl	$128, %eax
	je	LBB0_15
## %bb.13:
	testl	%eax, %eax
	jne	LBB0_16
## %bb.14:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$60, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	$1, %r14d
	jmp	LBB0_18
LBB0_15:
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	-192(%rbp), %ecx
	movl	-188(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movl	$60, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_18
LBB0_16:
	movq	_KERN_ERR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	-192(%rbp), %r8d
	movl	-188(%rbp), %r9d
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	leaq	-112(%rbp), %rdi
	movl	$60, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_snprintf
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_NONE,4,2                   ## @DMA_NONE
	.comm	_KERN_DEBUG,8,3                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"succeeded"

	.comm	_KERN_INFO,8,3                  ## @KERN_INFO
L_.str.1:                               ## @.str.1
	.asciz	"rejected by device (Stat=0x%02x Err=0x%02x)"

	.comm	_KERN_ERR,8,3                   ## @KERN_ERR
L_.str.2:                               ## @.str.2
	.asciz	"failed (Emask=0x%x Stat=0x%02x Err=0x%02x)"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"filtered out"

L_.str.4:                               ## @.str.4
	.asciz	"ACPI cmd %02x/%02x:%02x:%02x:%02x:%02x:%02x (%s) %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"unknown"

	.no_dead_strip	_ata_acpi_run_tf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_acpi_run_tf
_ata_acpi_run_tf:                       ; @ata_acpi_run_tf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x1]
	ldr	x9, [x8]
	cbnz	x9, LBB0_7
; %bb.1:
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_7
; %bb.2:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_7
; %bb.3:
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_7
; %bb.4:
	ldr	x9, [x8, #32]
	cbnz	x9, LBB0_7
; %bb.5:
	ldr	x9, [x8, #40]
	cbnz	x9, LBB0_7
; %bb.6:
	ldr	x8, [x8, #48]
	cbz	x8, LBB0_21
LBB0_7:
	add	x2, sp, #96
	mov	x0, x19
	bl	_ata_acpi_gtf_to_tf
	cbz	x20, LBB0_9
; %bb.8:
	add	x21, sp, #64
	add	x2, sp, #64
	mov	x0, x19
	mov	x1, x20
	bl	_ata_acpi_gtf_to_tf
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	add	x1, sp, #96
	mov	x0, x19
	mov	x2, x21
	bl	_ata_acpi_filter_tf
	cbz	w0, LBB0_16
; %bb.11:
Lloh3:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_12:
	sub	x0, x29, #100
	mov	w1, #60
	bl	_snprintf
	mov	w21, #0
LBB0_13:
	ldr	w0, [sp, #96]
	bl	_ata_get_cmd_descript
	ldp	w3, w4, [sp, #96]
	ldp	w6, w5, [sp, #116]
	ldp	w9, w7, [sp, #108]
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
	cmp	x0, #0
	csel	x8, x8, x0, eq
	ldr	w10, [sp, #104]
	sub	x11, x29, #100
	stp	x8, x11, [sp, #8]
	stp	w9, w10, [sp]
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_ata_dev_printk
LBB0_14:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.15:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_16:
	ldr	q0, [sp, #96]
	str	q0, [sp, #32]
	ldur	q0, [sp, #108]
	stur	q0, [sp, #44]
Lloh15:
	adrp	x8, _DMA_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x1, sp, #32
	mov	x0, x19
	mov	x2, #0
	mov	x4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_ata_exec_internal
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #128
	b.eq	LBB0_19
; %bb.17:
	cbnz	w0, LBB0_20
; %bb.18:
Lloh18:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #100
	mov	w1, #60
	bl	_snprintf
	mov	w21, #1
	b	LBB0_13
LBB0_19:
Lloh23:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh25:
	ldr	x20, [x8]
	ldp	w8, w9, [sp, #32]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_20:
Lloh28:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh30:
	ldr	x20, [x8]
	ldp	w8, w9, [sp, #32]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	sub	x0, x29, #100
	mov	w1, #60
	bl	_snprintf
Lloh33:
	adrp	x8, _EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_21:
	mov	w21, #0
	b	LBB0_14
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_NONE,4,2                   ; @DMA_NONE
	.comm	_KERN_DEBUG,8,3                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"succeeded"

	.comm	_KERN_INFO,8,3                  ; @KERN_INFO
l_.str.1:                               ; @.str.1
	.asciz	"rejected by device (Stat=0x%02x Err=0x%02x)"

	.comm	_KERN_ERR,8,3                   ; @KERN_ERR
l_.str.2:                               ; @.str.2
	.asciz	"failed (Emask=0x%x Stat=0x%02x Err=0x%02x)"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"filtered out"

l_.str.4:                               ; @.str.4
	.asciz	"ACPI cmd %02x/%02x:%02x:%02x:%02x:%02x:%02x (%s) %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"unknown"

	.no_dead_strip	_ata_acpi_run_tf
.subsections_via_symbols
