	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_gtm                   ## -- Begin function ata_acpi_gtm
	.p2align	4, 0x90
_ata_acpi_gtm:                          ## @ata_acpi_gtm
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movq	%rax, %rbx
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
## %bb.1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	jmp	LBB0_10
LBB0_4:
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.5:
	cmpl	$4, %ecx
	jne	LBB0_8
## %bb.6:
	shrq	$32, %rcx
	movq	%r15, %rdi
	movl	%ecx, %esi
	movl	$4, %edx
	callq	_memcpy
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_7:
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_9
LBB0_8:
	movslq	%ecx, %rcx
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_9:
	movq	%r14, %rdi
LBB0_10:
	callq	_ata_port_printk
LBB0_11:
	movq	-48(%rbp), %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_GTM"

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

	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"_GTM returned unexpected object type 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"_GTM returned invalid length %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_acpi_gtm                   ; -- Begin function ata_acpi_gtm
	.p2align	2
_ata_acpi_gtm:                          ; @ata_acpi_gtm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp]
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_object
Lloh5:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_2:
	mov	x22, x0
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	b	LBB0_10
LBB0_4:
	ldr	x8, [sp]
	ldr	x3, [x8]
Lloh19:
	adrp	x8, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_7
; %bb.5:
	cmp	w3, #4
	b.ne	LBB0_8
; %bb.6:
	lsr	x1, x3, #32
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	bl	_memcpy
	mov	w19, #0
	b	LBB0_11
LBB0_7:
Lloh22:
	adrp	x8, _KERN_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KERN_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	sxtw	x3, w3
Lloh27:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.3@PAGE
Lloh31:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
LBB0_10:
	bl	_ata_port_printk
LBB0_11:
	ldr	x0, [sp]
	bl	_kfree
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_GTM"

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

	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"_GTM returned unexpected object type 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"_GTM returned invalid length %d\n"

.subsections_via_symbols
