	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_pm_update_profile
_radeon_pm_update_profile:              ## @radeon_pm_update_profile
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	cmpl	$2, 16(%rbx)
	jl	LBB0_12
LBB0_7:
	movq	_PM_PROFILE_MID_MH_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	cmpl	$2, 16(%rbx)
	jl	LBB0_10
## %bb.9:
	movq	_PM_PROFILE_LOW_MH_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	cmpl	$2, 16(%rbx)
	jl	LBB0_14
LBB0_5:
	movq	_PM_PROFILE_HIGH_MH_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_PM_PROFILE_DEFAULT_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_3:
	xorl	%eax, %eax
	callq	_power_supply_is_system_supplied
	movl	16(%rbx), %ecx
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	jge	LBB0_5
LBB0_14:
	movq	_PM_PROFILE_HIGH_SH_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_PM_PROFILE_LOW_SH_IDX@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	cmpl	$2, %ecx
	jge	LBB0_7
LBB0_12:
	movq	_PM_PROFILE_MID_SH_IDX@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_16:
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	shlq	$4, %rax
	cmpl	$0, 16(%rbx)
	leaq	(%rcx,%rax), %rdx
	leaq	12(%rcx,%rax), %rsi
	leaq	8(%rcx,%rax), %rdi
	leaq	4(%rcx,%rax), %rax
	cmoveq	%rsi, %rax
	cmovneq	%rdx, %rdi
	movl	(%rdi), %ecx
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	%ecx, 32(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_PM_PROFILE_DEFAULT_IDX,8,3     ## @PM_PROFILE_DEFAULT_IDX
	.comm	_PM_PROFILE_HIGH_MH_IDX,8,3     ## @PM_PROFILE_HIGH_MH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ## @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ## @PM_PROFILE_MID_MH_IDX
	.comm	_PM_PROFILE_MID_SH_IDX,8,3      ## @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ## @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_LOW_SH_IDX,8,3      ## @PM_PROFILE_LOW_SH_IDX
	.no_dead_strip	_radeon_pm_update_profile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_pm_update_profile
_radeon_pm_update_profile:              ; @radeon_pm_update_profile
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_14
LBB0_3:
Lloh2:
	adrp	x8, _PM_PROFILE_MID_MH_IDX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PM_PROFILE_MID_MH_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.5:
Lloh4:
	adrp	x8, _PM_PROFILE_LOW_MH_IDX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PM_PROFILE_LOW_MH_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19, #16]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _PM_PROFILE_DEFAULT_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PM_PROFILE_DEFAULT_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	bl	_power_supply_is_system_supplied
	ldr	w8, [x19, #16]
	cmp	w0, #1
	b.lt	LBB0_13
LBB0_9:
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
Lloh8:
	adrp	x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PM_PROFILE_HIGH_MH_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh10:
	adrp	x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PM_PROFILE_HIGH_SH_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
Lloh12:
	adrp	x8, _PM_PROFILE_LOW_SH_IDX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PM_PROFILE_LOW_SH_IDX@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	cmp	w8, #1
	b.gt	LBB0_3
LBB0_14:
Lloh14:
	adrp	x8, _PM_PROFILE_MID_SH_IDX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PM_PROFILE_MID_SH_IDX@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_16:
	ldr	w8, [x19, #16]
	ldr	x9, [x19, #24]
	ldr	x10, [x19, #8]
	add	x9, x9, x10, lsl #4
	add	x10, x9, #12
	add	x11, x9, #8
	add	x12, x9, #4
	cmp	w8, #0
	csel	x8, x10, x12, eq
	csel	x9, x11, x9, eq
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w9, w8, [x19, #32]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_PM_PROFILE_DEFAULT_IDX,8,3     ; @PM_PROFILE_DEFAULT_IDX
	.comm	_PM_PROFILE_HIGH_MH_IDX,8,3     ; @PM_PROFILE_HIGH_MH_IDX
	.comm	_PM_PROFILE_HIGH_SH_IDX,8,3     ; @PM_PROFILE_HIGH_SH_IDX
	.comm	_PM_PROFILE_MID_MH_IDX,8,3      ; @PM_PROFILE_MID_MH_IDX
	.comm	_PM_PROFILE_MID_SH_IDX,8,3      ; @PM_PROFILE_MID_SH_IDX
	.comm	_PM_PROFILE_LOW_MH_IDX,8,3      ; @PM_PROFILE_LOW_MH_IDX
	.comm	_PM_PROFILE_LOW_SH_IDX,8,3      ; @PM_PROFILE_LOW_SH_IDX
	.no_dead_strip	_radeon_pm_update_profile
.subsections_via_symbols
