	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_stm                   ## -- Begin function ata_acpi_stm
	.p2align	4, 0x90
_ata_acpi_stm:                          ## @ata_acpi_stm
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -88(%rbp)
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -80(%rbp)
	leaq	-88(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movq	%rax, -64(%rbp)
	movl	$512, -64(%rbp)                 ## imm = 0x200
	movq	8(%rdi), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, -56(%rbp)
	movq	%rax, -48(%rbp)
	movl	$512, -48(%rbp)                 ## imm = 0x200
	movq	8(%rcx), %rax
	movq	%rax, -40(%rbp)
	movl	$3, -104(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-104(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_acpi_evaluate_object
	movq	%rax, %r15
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_ata_port_printk
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_STM"

	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
L_.str.1:                               ## @.str.1
	.asciz	"ACPI set timing mode failed (status=0x%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_stm                   ; -- Begin function ata_acpi_stm
	.p2align	2
_ata_acpi_stm:                          ; @ata_acpi_stm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
	ldr	w8, [x1]
	str	w8, [sp, #16]
Lloh3:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #4
	add	x10, sp, #16
	stp	x8, x10, [sp, #24]
	str	w9, [sp, #24]
	str	x8, [sp, #40]
	mov	w9, #512
	str	w9, [sp, #40]
	ldr	x10, [x0, #8]
	ldr	x11, [x10]
	stp	x11, x8, [sp, #48]
	str	w9, [sp, #56]
	ldr	x8, [x10, #8]
	str	x8, [sp, #64]
	mov	w8, #3
	str	w8, [sp]
	add	x8, sp, #24
	str	x8, [sp, #8]
	ldr	w0, [x0]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, sp
	mov	x3, #0
	bl	_acpi_evaluate_object
Lloh8:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ata_port_printk
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_STM"

	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
l_.str.1:                               ; @.str.1
	.asciz	"ACPI set timing mode failed (status=0x%x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
