	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_atombios_parse_misc_flags_1_3
_radeon_atombios_parse_misc_flags_1_3:  ## @radeon_atombios_parse_misc_flags_1_3
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %r8
	movslq	%esi, %rax
	leaq	(%rax,%rax,4), %r9
	movl	%edx, (%r8,%r9,8)
	movl	%ecx, 4(%r8,%r9,8)
	movq	_ATOM_PM_MISCINFO_POWER_SAVING_MODE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_POWER_STATE_TYPE_POWERSAVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
LBB0_2:
	movq	_ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
LBB0_4:
	movq	_ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
LBB0_6:
	movq	_ATOM_PM_MISCINFO_LOAD_BALANCE_EN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_POWER_STATE_TYPE_BALANCED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
LBB0_8:
	movq	_ATOM_PM_MISCINFO_3D_ACCELERATION_EN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_POWER_STATE_TYPE_PERFORMANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
	movq	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r8,%r9,8)
LBB0_10:
	movq	_ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_POWER_STATE_TYPE_BALANCED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
LBB0_12:
	movq	_ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_POWER_STATE_TYPE_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r8,%r9,8)
	movl	%esi, (%rdi)
	movq	8(%r8,%r9,8), %rax
	movq	%rax, 16(%r8,%r9,8)
	popq	%rbp
	retq
LBB0_14:
	testl	%esi, %esi
	je	LBB0_15
## %bb.16:
	popq	%rbp
	retq
LBB0_15:
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r8,%r9,8), %rcx
	orl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATOM_PM_MISCINFO_POWER_SAVING_MODE,4,2 ## @ATOM_PM_MISCINFO_POWER_SAVING_MODE
	.comm	_POWER_STATE_TYPE_POWERSAVE,8,3 ## @POWER_STATE_TYPE_POWERSAVE
	.comm	_ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE,4,2 ## @ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE
	.comm	_POWER_STATE_TYPE_BATTERY,8,3   ## @POWER_STATE_TYPE_BATTERY
	.comm	_ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE,4,2 ## @ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE
	.comm	_ATOM_PM_MISCINFO_LOAD_BALANCE_EN,4,2 ## @ATOM_PM_MISCINFO_LOAD_BALANCE_EN
	.comm	_POWER_STATE_TYPE_BALANCED,8,3  ## @POWER_STATE_TYPE_BALANCED
	.comm	_ATOM_PM_MISCINFO_3D_ACCELERATION_EN,4,2 ## @ATOM_PM_MISCINFO_3D_ACCELERATION_EN
	.comm	_POWER_STATE_TYPE_PERFORMANCE,8,3 ## @POWER_STATE_TYPE_PERFORMANCE
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,4,2 ## @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE,4,2 ## @ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE
	.comm	_ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE,4,2 ## @ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE
	.comm	_POWER_STATE_TYPE_DEFAULT,8,3   ## @POWER_STATE_TYPE_DEFAULT
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ## @RADEON_PM_MODE_NO_DISPLAY
	.no_dead_strip	_radeon_atombios_parse_misc_flags_1_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_atombios_parse_misc_flags_1_3
_radeon_atombios_parse_misc_flags_1_3:  ; @radeon_atombios_parse_misc_flags_1_3
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	sxtw	x9, w1
	mov	w10, #40
	smaddl	x10, w1, w10, x8
	stp	w2, w3, [x10]
Lloh0:
	adrp	x10, _ATOM_PM_MISCINFO_POWER_SAVING_MODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ATOM_PM_MISCINFO_POWER_SAVING_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x10, _POWER_STATE_TYPE_POWERSAVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _POWER_STATE_TYPE_POWERSAVE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #40
	madd	x11, x9, x11, x8
	str	x10, [x11, #24]
LBB0_2:
Lloh6:
	adrp	x10, _ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x10]
Lloh9:
	adrp	x10, _POWER_STATE_TYPE_BATTERY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POWER_STATE_TYPE_BATTERY@GOTPAGEOFF]
	tst	w11, w2
	b.eq	LBB0_4
; %bb.3:
	ldr	x11, [x10]
	mov	w12, #40
	madd	x12, x9, x12, x8
	str	x11, [x12, #24]
LBB0_4:
Lloh11:
	adrp	x11, _ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w2
	b.eq	LBB0_6
; %bb.5:
	ldr	x10, [x10]
	mov	w11, #40
	madd	x11, x9, x11, x8
	str	x10, [x11, #24]
LBB0_6:
Lloh14:
	adrp	x10, _ATOM_PM_MISCINFO_LOAD_BALANCE_EN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ATOM_PM_MISCINFO_LOAD_BALANCE_EN@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x10]
Lloh17:
	adrp	x10, _POWER_STATE_TYPE_BALANCED@GOTPAGE
Lloh18:
	ldr	x10, [x10, _POWER_STATE_TYPE_BALANCED@GOTPAGEOFF]
	tst	w11, w2
	b.eq	LBB0_8
; %bb.7:
	ldr	x11, [x10]
	mov	w12, #40
	madd	x12, x9, x12, x8
	str	x11, [x12, #24]
LBB0_8:
Lloh19:
	adrp	x11, _ATOM_PM_MISCINFO_3D_ACCELERATION_EN@GOTPAGE
Lloh20:
	ldr	x11, [x11, _ATOM_PM_MISCINFO_3D_ACCELERATION_EN@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	tst	w11, w2
	b.eq	LBB0_10
; %bb.9:
Lloh22:
	adrp	x11, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _POWER_STATE_TYPE_PERFORMANCE@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	mov	w12, #40
	madd	x12, x9, x12, x8
	str	x11, [x12, #24]
Lloh25:
	adrp	x11, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGE
Lloh26:
	ldr	x11, [x11, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
	ldr	w13, [x12, #32]
	bic	w11, w13, w11
	str	w11, [x12, #32]
LBB0_10:
Lloh28:
	adrp	x11, _ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE@GOTPAGE
Lloh29:
	ldr	x11, [x11, _ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE@GOTPAGEOFF]
Lloh30:
	ldr	w11, [x11]
	tst	w11, w3
	b.eq	LBB0_12
; %bb.11:
	ldr	x10, [x10]
	mov	w11, #40
	madd	x11, x9, x11, x8
	str	x10, [x11, #24]
LBB0_12:
Lloh31:
	adrp	x10, _ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE@GOTPAGE
Lloh32:
	ldr	x10, [x10, _ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	tst	w10, w2
	b.eq	LBB0_14
; %bb.13:
Lloh34:
	adrp	x10, _POWER_STATE_TYPE_DEFAULT@GOTPAGE
Lloh35:
	ldr	x10, [x10, _POWER_STATE_TYPE_DEFAULT@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	mov	w11, #40
	madd	x8, x9, x11, x8
	str	w1, [x0]
	ldr	x9, [x8, #8]
	stp	x9, x10, [x8, #16]
	ret
LBB0_14:
	cbz	w1, LBB0_16
; %bb.15:
	ret
LBB0_16:
Lloh37:
	adrp	x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGE
Lloh38:
	ldr	x10, [x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	mov	w11, #40
	madd	x8, x9, x11, x8
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	orr	w9, w9, w10
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ATOM_PM_MISCINFO_POWER_SAVING_MODE,4,2 ; @ATOM_PM_MISCINFO_POWER_SAVING_MODE
	.comm	_POWER_STATE_TYPE_POWERSAVE,8,3 ; @POWER_STATE_TYPE_POWERSAVE
	.comm	_ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE,4,2 ; @ATOM_PM_MISCINFO_DEFAULT_DC_STATE_ENTRY_TRUE
	.comm	_POWER_STATE_TYPE_BATTERY,8,3   ; @POWER_STATE_TYPE_BATTERY
	.comm	_ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE,4,2 ; @ATOM_PM_MISCINFO_DEFAULT_LOW_DC_STATE_ENTRY_TRUE
	.comm	_ATOM_PM_MISCINFO_LOAD_BALANCE_EN,4,2 ; @ATOM_PM_MISCINFO_LOAD_BALANCE_EN
	.comm	_POWER_STATE_TYPE_BALANCED,8,3  ; @POWER_STATE_TYPE_BALANCED
	.comm	_ATOM_PM_MISCINFO_3D_ACCELERATION_EN,4,2 ; @ATOM_PM_MISCINFO_3D_ACCELERATION_EN
	.comm	_POWER_STATE_TYPE_PERFORMANCE,8,3 ; @POWER_STATE_TYPE_PERFORMANCE
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,4,2 ; @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE,4,2 ; @ATOM_PM_MISCINFO2_SYSTEM_AC_LITE_MODE
	.comm	_ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE,4,2 ; @ATOM_PM_MISCINFO_DRIVER_DEFAULT_MODE
	.comm	_POWER_STATE_TYPE_DEFAULT,8,3   ; @POWER_STATE_TYPE_DEFAULT
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ; @RADEON_PM_MODE_NO_DISPLAY
	.no_dead_strip	_radeon_atombios_parse_misc_flags_1_3
.subsections_via_symbols
