	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_atombios_scratch_regs_init
_amdgpu_atombios_scratch_regs_init:     ## @amdgpu_atombios_scratch_regs_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_mmBIOS_SCRATCH_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, (%r15)
	addq	$2, %rdi
	callq	_RREG32
	movl	%eax, %r14d
	movq	(%r15), %rdi
	addq	$6, %rdi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_ATOM_S2_VRI_BRIGHT_ENABLE@GOTPCREL(%rip), %rax
	movq	_ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_ATOM_S2_DEVICE_DPMS_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	%r14d, %esi
	movq	(%r15), %rdi
	addq	$2, %rdi
	callq	_WREG32
	movq	(%r15), %rdi
	addq	$6, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmBIOS_SCRATCH_0,8,3           ## @mmBIOS_SCRATCH_0
	.comm	_ATOM_S2_VRI_BRIGHT_ENABLE,4,2  ## @ATOM_S2_VRI_BRIGHT_ENABLE
	.comm	_ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH,4,2 ## @ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH
	.comm	_ATOM_S2_DEVICE_DPMS_STATE,4,2  ## @ATOM_S2_DEVICE_DPMS_STATE
	.no_dead_strip	_amdgpu_atombios_scratch_regs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_atombios_scratch_regs_init
_amdgpu_atombios_scratch_regs_init:     ; @amdgpu_atombios_scratch_regs_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x8, _mmBIOS_SCRATCH_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmBIOS_SCRATCH_0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0]
	add	x0, x8, #2
	bl	_RREG32
	mov	x20, x0
	ldr	x8, [x19]
	add	x0, x8, #6
	bl	_RREG32
Lloh3:
	adrp	x8, _ATOM_S2_VRI_BRIGHT_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATOM_S2_VRI_BRIGHT_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ATOM_S2_DEVICE_DPMS_STATE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ATOM_S2_DEVICE_DPMS_STATE@GOTPAGEOFF]
	orr	w21, w9, w0
Lloh11:
	ldr	w9, [x10]
	orr	w8, w9, w8
	bic	w1, w20, w8
	ldr	x8, [x19]
	add	x0, x8, #2
	bl	_WREG32
	ldr	x8, [x19]
	add	x0, x8, #6
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmBIOS_SCRATCH_0,8,3           ; @mmBIOS_SCRATCH_0
	.comm	_ATOM_S2_VRI_BRIGHT_ENABLE,4,2  ; @ATOM_S2_VRI_BRIGHT_ENABLE
	.comm	_ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH,4,2 ; @ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH
	.comm	_ATOM_S2_DEVICE_DPMS_STATE,4,2  ; @ATOM_S2_DEVICE_DPMS_STATE
	.no_dead_strip	_amdgpu_atombios_scratch_regs_init
.subsections_via_symbols
