	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_initialize_bios_scratch_regs ## -- Begin function radeon_combios_initialize_bios_scratch_regs
	.p2align	4, 0x90
_radeon_combios_initialize_bios_scratch_regs: ## @radeon_combios_initialize_bios_scratch_regs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RADEON_BIOS_0_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_RADEON_BIOS_6_SCRATCH@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_RADEON_BIOS_7_SCRATCH@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_RADEON_DRIVER_BRIGHTNESS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r15d, %esi
	movq	_RADEON_DISPLAY_SWITCHING_DIS@GOTPCREL(%rip), %rax
	movq	_RADEON_ACC_MODE_CHANGE@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_RADEON_DRV_LOADED@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	_RADEON_BIOS_0_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_WREG32
	movl	(%r13), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movl	(%r12), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_BIOS_0_SCRATCH,4,2      ## @RADEON_BIOS_0_SCRATCH
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ## @RADEON_BIOS_6_SCRATCH
	.comm	_RADEON_BIOS_7_SCRATCH,4,2      ## @RADEON_BIOS_7_SCRATCH
	.comm	_RADEON_DRIVER_BRIGHTNESS_EN,4,2 ## @RADEON_DRIVER_BRIGHTNESS_EN
	.comm	_RADEON_DISPLAY_SWITCHING_DIS,4,2 ## @RADEON_DISPLAY_SWITCHING_DIS
	.comm	_RADEON_ACC_MODE_CHANGE,4,2     ## @RADEON_ACC_MODE_CHANGE
	.comm	_RADEON_DRV_LOADED,4,2          ## @RADEON_DRV_LOADED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_initialize_bios_scratch_regs ; -- Begin function radeon_combios_initialize_bios_scratch_regs
	.p2align	2
_radeon_combios_initialize_bios_scratch_regs: ; @radeon_combios_initialize_bios_scratch_regs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _RADEON_BIOS_0_SCRATCH@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RADEON_BIOS_0_SCRATCH@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_RREG32
	mov	x19, x0
Lloh2:
	adrp	x22, _RADEON_BIOS_6_SCRATCH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RADEON_BIOS_6_SCRATCH@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_RREG32
	mov	x20, x0
Lloh4:
	adrp	x23, _RADEON_BIOS_7_SCRATCH@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RADEON_BIOS_7_SCRATCH@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_RREG32
Lloh6:
	adrp	x8, _RADEON_DRIVER_BRIGHTNESS_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RADEON_DRIVER_BRIGHTNESS_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _RADEON_DISPLAY_SWITCHING_DIS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADEON_DISPLAY_SWITCHING_DIS@GOTPAGEOFF]
	bic	w1, w19, w8
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _RADEON_ACC_MODE_CHANGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RADEON_ACC_MODE_CHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w19, w8, w9
Lloh15:
	adrp	x8, _RADEON_DRV_LOADED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RADEON_DRV_LOADED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w20, w8, w0
	ldr	w0, [x21]
	bl	_WREG32
	ldr	w0, [x22]
	mov	x1, x19
	bl	_WREG32
	ldr	w0, [x23]
	mov	x1, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_BIOS_0_SCRATCH,4,2      ; @RADEON_BIOS_0_SCRATCH
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ; @RADEON_BIOS_6_SCRATCH
	.comm	_RADEON_BIOS_7_SCRATCH,4,2      ; @RADEON_BIOS_7_SCRATCH
	.comm	_RADEON_DRIVER_BRIGHTNESS_EN,4,2 ; @RADEON_DRIVER_BRIGHTNESS_EN
	.comm	_RADEON_DISPLAY_SWITCHING_DIS,4,2 ; @RADEON_DISPLAY_SWITCHING_DIS
	.comm	_RADEON_ACC_MODE_CHANGE,4,2     ; @RADEON_ACC_MODE_CHANGE
	.comm	_RADEON_DRV_LOADED,4,2          ; @RADEON_DRV_LOADED
.subsections_via_symbols
