	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atif_probe_handle
_amdgpu_atif_probe_handle:              ## @amdgpu_atif_probe_handle
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	$0, -280(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -33(%rbp)
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movl	$255, -296(%rbp)
	leaq	-272(%rbp), %rax
	movq	%rax, -288(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-280(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	-280(%rbp), %rdi
	movq	_ACPI_FULL_PATHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-296(%rbp), %rdx
	callq	_acpi_get_name
	leaq	L_.str.2(%rip), %rdi
	leaq	-272(%rbp), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	-280(%rbp), %rbx
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_amdgpu_has_atpx
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_amdgpu_atpx_get_dhandle
	leaq	L_.str(%rip), %rsi
	leaq	-280(%rbp), %rdx
	movq	%rax, %rdi
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATIF"

L_.str.1:                               ## @.str.1
	.asciz	"No ATIF handle found\n"

	.comm	_ACPI_FULL_PATHNAME,4,2         ## @ACPI_FULL_PATHNAME
L_.str.2:                               ## @.str.2
	.asciz	"Found ATIF handle %s\n"

	.no_dead_strip	_amdgpu_atif_probe_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_atif_probe_handle
_amdgpu_atif_probe_handle:              ; @amdgpu_atif_probe_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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]
	add	x19, sp, #32
	stp	x19, xzr, [sp, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #239]
	stp	q0, q0, [x19, #208]
	stp	q0, q0, [x19, #176]
	stp	q0, q0, [x19, #144]
	stp	q0, q0, [x19, #112]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	str	q0, [sp, #32]
	mov	w8, #255
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
LBB0_1:
	ldr	x0, [sp, #24]
Lloh5:
	adrp	x8, _ACPI_FULL_PATHNAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ACPI_FULL_PATHNAME@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_acpi_get_name
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x0, [sp, #24]
	b	LBB0_5
LBB0_2:
	bl	_amdgpu_has_atpx
	cbz	x0, LBB0_4
; %bb.3:
	bl	_amdgpu_atpx_get_dhandle
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbnz	x0, LBB0_1
LBB0_4:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	mov	x0, #0
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATIF"

l_.str.1:                               ; @.str.1
	.asciz	"No ATIF handle found\n"

	.comm	_ACPI_FULL_PATHNAME,4,2         ; @ACPI_FULL_PATHNAME
l_.str.2:                               ; @.str.2
	.asciz	"Found ATIF handle %s\n"

	.no_dead_strip	_amdgpu_atif_probe_handle
.subsections_via_symbols
