	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atcs_call
_radeon_atcs_call:                      ## @radeon_atcs_call
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movq	$0, -56(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$2, -96(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%esi, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	8(%rdx), %eax
	movl	%eax, -24(%rbp)
	movq	(%rdx), %rax
	movq	%rax, -32(%rbp)
	jmp	LBB0_3
LBB0_2:
	movq	%rax, -32(%rbp)
	movl	$0, -32(%rbp)
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-80(%rbp), %rcx
	callq	_acpi_evaluate_object
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_acpi_format_exception
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_DRIVER
	movq	-80(%rbp), %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	-80(%rbp), %rax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATCS"

	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
L_.str.1:                               ## @.str.1
	.asciz	"failed to evaluate ATCS got %s\n"

	.no_dead_strip	_radeon_atcs_call
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atcs_call
_radeon_atcs_call:                      ; @radeon_atcs_call
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	xzr, xzr, [sp, #24]
Lloh3:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	mov	w8, #2
	str	w8, [sp, #40]
	add	x8, sp, #56
	str	x8, [sp, #48]
Lloh6:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	w1, [sp, #56]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w8, [x2, #8]
	str	w8, [sp, #80]
	ldr	x8, [x2]
	str	x8, [sp, #72]
	b	LBB0_3
LBB0_2:
	str	x8, [sp, #72]
	str	wzr, [sp, #72]
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #40
	add	x3, sp, #8
	bl	_acpi_evaluate_object
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _AE_NOT_FOUND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_NOT_FOUND@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x19, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_acpi_format_exception
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x0, [sp, #8]
	bl	_kfree
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATCS"

	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
l_.str.1:                               ; @.str.1
	.asciz	"failed to evaluate ATCS got %s\n"

	.no_dead_strip	_radeon_atcs_call
.subsections_via_symbols
