	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function radeon_combios_get_power_modes
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	160                             ## 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_combios_get_power_modes
	.p2align	4, 0x90
_radeon_combios_get_power_modes:        ## @radeon_combios_get_power_modes
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	64(%rdi), %r14
	movl	$-1, 8(%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, 32(%r12)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%rbx), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	32(%r12), %rcx
	movq	%rax, 24(%rcx)
	movl	(%rbx), %esi
	movl	$4, %edi
	callq	_kzalloc
	movq	32(%r12), %rcx
	movq	%rax, 72(%rcx)
	cmpq	$0, 24(%rcx)
	je	LBB0_8
## %bb.2:
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_COMBIOS_OVERDRIVE_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_RBIOS8
	cmpl	$2, %eax
	je	LBB0_14
## %bb.5:
	cmpl	$1, %eax
	je	LBB0_15
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:
	leal	3(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %r13d
	leal	4(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %ebx
	addl	$5, %r15d
	jmp	LBB0_16
LBB0_8:
	movl	$0, 8(%r12)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_43
LBB0_9:
	movq	(%r14), %rax
	cmpl	$16722, (%rax)                  ## imm = 0x4152
	jne	LBB0_26
## %bb.10:
	cmpl	$4163, 4(%rax)                  ## imm = 0x1043
	jne	LBB0_26
## %bb.11:
	cmpl	$49154, 8(%rax)                 ## imm = 0xC002
	jne	LBB0_26
## %bb.12:
	movq	_DDC_MONID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_radeon_i2c_lookup
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_26
## %bb.13:
	movq	$40, -56(%rbp)
	leaq	L_.str.1(%rip), %r15
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	40(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	_i2c_new_device
	movl	-56(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_DRM_INFO
	jmp	LBB0_26
LBB0_14:
	leal	4(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %r13d
	leal	5(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %ebx
	leal	6(%r15), %edi
	callq	_RBIOS8
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	10(%r15), %edi
	callq	_RBIOS8
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	$11, %r15d
	movl	%r15d, %edi
	callq	_RBIOS8
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_17
LBB0_15:
	leal	4(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %r13d
	leal	5(%r15), %edi
	callq	_RBIOS8
	movl	%eax, %ebx
	addl	$6, %r15d
LBB0_16:
	movl	%r15d, %edi
	callq	_RBIOS8
	movl	%eax, %ecx
	xorl	%r15d, %r15d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_17:
	leal	-1(%r13), %eax
	cmpl	$1, %eax
	ja	LBB0_26
## %bb.18:
	andl	$63, %ebx
	movq	_thermal_controller_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r13d, %r13d
	movq	(%rax,%r13,8), %rsi
	sarl	%ecx
	leaq	L_.str(%rip), %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	callq	_DRM_INFO
	movq	_DDC_LCD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_20
## %bb.19:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,160]
	movaps	%xmm0, -80(%rbp)
	jmp	LBB0_24
LBB0_20:
	movq	_DDC_GPIO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_22
## %bb.21:
	movl	$1, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	jmp	LBB0_23
LBB0_22:
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_23:
	callq	_combios_setup_i2c_bus
	movq	%rax, -80(%rbp)
	movq	%rdx, -72(%rbp)
LBB0_24:
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	_radeon_i2c_lookup
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_26
## %bb.25:
	movq	$0, -56(%rbp)
	movq	_thermal_controller_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rsi
	movl	%ecx, -56(%rbp)
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	movq	40(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	_i2c_new_device
LBB0_26:
	movq	_RADEON_IS_MOBILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_37
## %bb.27:
	movq	_COMBIOS_POWERPLAY_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_combios_get_table_offset
	testl	%eax, %eax
	je	LBB0_37
## %bb.28:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_RBIOS8
	movl	%eax, %r15d
	leal	2(%r14), %edi
	callq	_RBIOS8
	movq	32(%r12), %rax
	movl	$1, (%rax)
	leal	7(%r14), %edi
	callq	_RBIOS32
	movq	32(%r12), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx)
	leal	11(%r14), %edi
	callq	_RBIOS32
	movq	32(%r12), %rsi
	movq	24(%rsi), %rcx
	movq	%rax, 8(%rcx)
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	je	LBB0_38
## %bb.29:
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_39
## %bb.30:
	leal	5(%r14), %edi
	movq	_POWER_STATE_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rsi)
	callq	_RBIOS16
	movl	%eax, %r13d
	xorl	%ebx, %ebx
	cmpl	$5, %r15d
	jl	LBB0_32
## %bb.31:
	leal	19(%r14), %edi
	callq	_RBIOS16
	movl	%eax, %ebx
LBB0_32:
	movq	32(%r12), %rcx
	movl	%r13d, 4(%rcx)
	movl	%ebx, 8(%rcx)
	testb	$4, %r13b
	jne	LBB0_46
## %bb.33:
	movq	_VOLTAGE_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rcx), %rdx
	movq	%rax, 24(%rdx)
LBB0_34:
	cmpl	$7, %r15d
	jl	LBB0_36
## %bb.35:
	addl	$21, %r14d
	movl	%r14d, %edi
	callq	_RBIOS8
	movq	32(%r12), %rcx
	movl	%eax, 12(%rcx)
LBB0_36:
	movq	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rcx)
	movl	$1, %ecx
	movb	$1, %dl
	jmp	LBB0_39
LBB0_37:
	xorl	%edx, %edx
LBB0_38:
	xorl	%ecx, %ecx
LBB0_39:
	movq	_POWER_STATE_TYPE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%r12), %rsi
	movl	%ecx, %eax
	leaq	(%rax,%rax,2), %rax
	shlq	$4, %rax
	movl	%edi, 40(%rsi,%rax)
	movl	$1, (%rsi,%rax)
	movq	24(%rsi,%rax), %rdi
	movups	48(%r12), %xmm0
	movups	%xmm0, (%rdi)
	movq	%rdi, 32(%rsi,%rax)
	testb	%dl, %dl
	je	LBB0_41
## %bb.40:
	movq	24(%rsi), %rdx
	movq	24(%rdx), %r8
	movq	_VOLTAGE_GPIO@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %r8
	je	LBB0_44
LBB0_41:
	movq	_VOLTAGE_NONE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, 24(%rdi)
LBB0_42:
	movl	$16, 12(%rsi,%rax)
	movq	$0, 16(%rsi,%rax)
	movl	%ecx, 8(%r12)
	leal	1(%rcx), %eax
LBB0_43:
	movl	%eax, 12(%r12)
	movl	%ecx, 16(%r12)
	movq	$0, 24(%r12)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movups	16(%rdx), %xmm0
	movups	32(%rdx), %xmm1
	movups	%xmm1, 32(%rdi)
	movups	%xmm0, 16(%rdi)
	movq	32(%r12), %rsi
	jmp	LBB0_42
LBB0_46:
	movq	_VOLTAGE_GPIO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	24(%rcx), %rcx
	movq	%rax, 24(%rcx)
	shrl	$3, %r13d
	andl	$1, %r13d
	movl	%r13d, 16(%rcx)
	movl	$1, 32(%rcx)
	leal	16(%r14), %edi
	cmpl	$5, %r15d
	jg	LBB0_48
## %bb.47:
	callq	_RBIOS16
	shll	$2, %eax
	movq	32(%r12), %rcx
	movq	24(%rcx), %rcx
	movl	%eax, 36(%rcx)
	leal	18(%r14), %edi
	jmp	LBB0_51
LBB0_48:
	callq	_RBIOS8
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	17(%r14), %edi
	callq	_RBIOS16
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_52
## %bb.49:
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_52
## %bb.50:
	movl	%r13d, %edi
	callq	_RBIOS16
	shll	$2, %eax
	movq	32(%r12), %rcx
	movq	24(%rcx), %rcx
	movl	%eax, 36(%rcx)
	addl	$2, %r13d
	movl	%r13d, %edi
LBB0_51:
	callq	_RBIOS8
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movq	32(%r12), %rcx
	movq	24(%rcx), %rax
	movl	%edx, 40(%rax)
	jmp	LBB0_53
LBB0_52:
	movq	32(%r12), %rcx
	movq	24(%rcx), %rax
	movl	$0, 32(%rax)
LBB0_53:
	shrl	$8, %ebx
	andl	$7, %ebx
	decl	%ebx
	cmpl	$3, %ebx
	ja	LBB0_56
## %bb.54:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_55:
	movl	$33, 20(%rax)
	jmp	LBB0_34
LBB0_56:
	movl	$0, 20(%rax)
	jmp	LBB0_34
LBB0_57:
	movl	$66, 20(%rax)
	jmp	LBB0_34
LBB0_58:
	movl	$99, 20(%rax)
	jmp	LBB0_34
LBB0_59:
	movl	$132, 20(%rax)
	jmp	LBB0_34
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_55, LBB0_55-LJTI0_0
.set L0_0_set_57, LBB0_57-LJTI0_0
.set L0_0_set_58, LBB0_58-LJTI0_0
.set L0_0_set_59, LBB0_59-LJTI0_0
LJTI0_0:
	.long	L0_0_set_55
	.long	L0_0_set_57
	.long	L0_0_set_58
	.long	L0_0_set_59
	.end_data_region
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_COMBIOS_OVERDRIVE_INFO_TABLE,4,2 ## @COMBIOS_OVERDRIVE_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Possible %s thermal controller at 0x%02x\n"

	.comm	_thermal_controller_names,8,3   ## @thermal_controller_names
	.comm	_DDC_LCD,4,2                    ## @DDC_LCD
	.comm	_DDC_GPIO,4,2                   ## @DDC_GPIO
	.comm	_DDC_MONID,4,2                  ## @DDC_MONID
L_.str.1:                               ## @.str.1
	.asciz	"f75375"

	.comm	_RADEON_IS_MOBILITY,4,2         ## @RADEON_IS_MOBILITY
	.comm	_COMBIOS_POWERPLAY_INFO_TABLE,4,2 ## @COMBIOS_POWERPLAY_INFO_TABLE
	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ## @POWER_STATE_TYPE_BATTERY
	.comm	_VOLTAGE_GPIO,8,3               ## @VOLTAGE_GPIO
	.comm	_VOLTAGE_NONE,8,3               ## @VOLTAGE_NONE
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,8,3 ## @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_POWER_STATE_TYPE_DEFAULT,4,2   ## @POWER_STATE_TYPE_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function radeon_combios_get_power_modes
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	160                             ; 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_combios_get_power_modes
	.p2align	2
_radeon_combios_get_power_modes:        ; @radeon_combios_get_power_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #64]
	mov	w8, #-1
	str	w8, [x0, #8]
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #8
	bl	_kzalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x19, #32]
	str	x0, [x8, #24]
	ldr	w1, [x21]
	mov	w0, #4
	bl	_kzalloc
	ldr	x8, [x19, #32]
	str	x0, [x8, #72]
	ldr	x8, [x8, #24]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	w9, #0
	mov	w8, #0
	str	wzr, [x19, #8]
	b	LBB0_42
LBB0_3:
Lloh2:
	adrp	x8, _COMBIOS_OVERDRIVE_INFO_TABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COMBIOS_OVERDRIVE_INFO_TABLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_combios_get_table_offset
	cbz	w0, LBB0_8
; %bb.4:
	mov	x22, x0
	bl	_RBIOS8
	cmp	w0, #2
	b.eq	LBB0_13
; %bb.5:
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.6:
	cbnz	w0, LBB0_25
; %bb.7:
	add	w0, w22, #3
	bl	_RBIOS8
	mov	x21, x0
	add	w0, w22, #4
	bl	_RBIOS8
	mov	x23, x0
	add	w0, w22, #5
	b	LBB0_15
LBB0_8:
	ldr	x8, [x20]
	ldr	w9, [x8]
	mov	w10, #16722
	cmp	w9, w10
	b.ne	LBB0_25
; %bb.9:
	ldr	w9, [x8, #4]
	mov	w10, #4163
	cmp	w9, w10
	b.ne	LBB0_25
; %bb.10:
	ldr	w8, [x8, #8]
	mov	w9, #49154
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.11:
Lloh5:
	adrp	x8, _DDC_MONID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DDC_MONID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	bl	_radeon_i2c_lookup
	str	x0, [x19, #40]
	cbz	x0, LBB0_25
; %bb.12:
	mov	w8, #40
	str	x8, [sp, #8]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	w0, #0
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	ldr	x0, [x19, #40]
	add	x1, sp, #8
	bl	_i2c_new_device
	ldr	w2, [sp, #8]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_INFO
	b	LBB0_25
LBB0_13:
	add	w0, w22, #4
	bl	_RBIOS8
	mov	x21, x0
	add	w0, w22, #5
	bl	_RBIOS8
	mov	x23, x0
	add	w0, w22, #6
	bl	_RBIOS8
	mov	x26, x0
	add	w0, w22, #10
	bl	_RBIOS8
	mov	x24, x0
	add	w0, w22, #11
	bl	_RBIOS8
	mov	x25, x0
	b	LBB0_16
LBB0_14:
	add	w0, w22, #4
	bl	_RBIOS8
	mov	x21, x0
	add	w0, w22, #5
	bl	_RBIOS8
	mov	x23, x0
	add	w0, w22, #6
LBB0_15:
	bl	_RBIOS8
	mov	x26, x0
	mov	w25, #0
	mov	w24, #0
LBB0_16:
	sub	w8, w21, #1
	cmp	w8, #1
	b.hi	LBB0_25
; %bb.17:
	and	w23, w23, #0x3f
Lloh12:
	adrp	x27, _thermal_controller_names@GOTPAGE
Lloh13:
	ldr	x27, [x27, _thermal_controller_names@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x1, [x8, w21, uxtw #3]
	asr	w22, w26, #1
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_DRM_INFO
Lloh16:
	adrp	x8, _DDC_LCD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DDC_LCD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_19
; %bb.18:
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]
	b	LBB0_23
LBB0_19:
Lloh21:
	adrp	x8, _DDC_GPIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DDC_GPIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_21
; %bb.20:
	mov	w8, #1
	lsl	w2, w8, w24
	lsl	w3, w8, w25
	mov	x0, x19
	mov	x1, x23
	b	LBB0_22
LBB0_21:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	mov	w3, #0
LBB0_22:
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp, #16]
LBB0_23:
	add	x1, sp, #16
	mov	x0, x19
	bl	_radeon_i2c_lookup
	str	x0, [x19, #40]
	cbz	x0, LBB0_25
; %bb.24:
	mov	w8, w21
	str	xzr, [sp, #8]
	ldr	x9, [x27]
	ldr	x1, [x9, x8, lsl #3]
	str	w22, [sp, #8]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	ldr	x0, [x19, #40]
	add	x1, sp, #8
	bl	_i2c_new_device
LBB0_25:
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _RADEON_IS_MOBILITY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RADEON_IS_MOBILITY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_31
; %bb.26:
Lloh27:
	adrp	x8, _COMBIOS_POWERPLAY_INFO_TABLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _COMBIOS_POWERPLAY_INFO_TABLE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_combios_get_table_offset
	cbz	w0, LBB0_31
; %bb.27:
	mov	x20, x0
	bl	_RBIOS8
	mov	x21, x0
	add	w0, w20, #2
	bl	_RBIOS8
	ldr	x8, [x19, #32]
	mov	w9, #1
	str	w9, [x8]
	add	w0, w20, #7
	bl	_RBIOS32
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #24]
	str	x0, [x8]
	add	w0, w20, #11
	bl	_RBIOS32
	mov	w8, #0
	ldr	x9, [x19, #32]
	ldr	x10, [x9, #24]
	str	x0, [x10, #8]
	ldr	x10, [x10]
	cbz	x10, LBB0_38
; %bb.28:
	cbz	x0, LBB0_38
; %bb.29:
	add	w0, w20, #5
Lloh30:
	adrp	x8, _POWER_STATE_TYPE_BATTERY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _POWER_STATE_TYPE_BATTERY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x9, #40]
	bl	_RBIOS16
	mov	x23, x0
	cmp	w21, #5
	b.lt	LBB0_32
; %bb.30:
	add	w0, w20, #19
	bl	_RBIOS16
	mov	x22, x0
	b	LBB0_33
LBB0_31:
	mov	w8, #0
	b	LBB0_38
LBB0_32:
	mov	w22, #0
LBB0_33:
	ldr	x8, [x19, #32]
	stp	w23, w22, [x8, #4]
	tbnz	w23, #2, LBB0_44
; %bb.34:
Lloh33:
	adrp	x9, _VOLTAGE_NONE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _VOLTAGE_NONE@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	ldr	x10, [x8, #24]
	str	x9, [x10, #24]
LBB0_35:
	cmp	w21, #7
	b.lt	LBB0_37
; %bb.36:
	add	w0, w20, #21
	bl	_RBIOS8
	ldr	x8, [x19, #32]
	str	w0, [x8, #12]
LBB0_37:
Lloh36:
	adrp	x9, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	str	x9, [x8, #16]
	mov	w8, #1
LBB0_38:
Lloh39:
	adrp	x9, _POWER_STATE_TYPE_DEFAULT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _POWER_STATE_TYPE_DEFAULT@GOTPAGEOFF]
Lloh41:
	ldr	w11, [x9]
	ldr	x10, [x19, #32]
	mov	w9, w8
	mov	w12, #48
	umaddl	x12, w8, w12, x10
	str	w11, [x12, #40]
	mov	w11, #1
	str	w11, [x12]
	ldr	x11, [x12, #24]
	ldr	q0, [x19, #48]
	str	q0, [x11]
	str	x11, [x12, #32]
	cbz	w8, LBB0_40
; %bb.39:
	ldr	x12, [x10, #24]
	ldr	x13, [x12, #24]
Lloh42:
	adrp	x14, _VOLTAGE_GPIO@GOTPAGE
Lloh43:
	ldr	x14, [x14, _VOLTAGE_GPIO@GOTPAGEOFF]
Lloh44:
	ldr	x14, [x14]
	cmp	x13, x14
	b.eq	LBB0_43
LBB0_40:
Lloh45:
	adrp	x12, _VOLTAGE_NONE@GOTPAGE
Lloh46:
	ldr	x12, [x12, _VOLTAGE_NONE@GOTPAGEOFF]
Lloh47:
	ldr	x12, [x12]
	str	x12, [x11, #24]
LBB0_41:
	mov	w11, #48
	madd	x9, x9, x11, x10
	mov	w10, #16
	str	w10, [x9, #12]
	str	xzr, [x9, #16]
	str	w8, [x19, #8]
	add	w9, w8, #1
LBB0_42:
	stp	w9, w8, [x19, #12]
	str	xzr, [x19, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_43:
	ldp	q0, q1, [x12, #16]
	stp	q0, q1, [x11, #16]
	ldr	x10, [x19, #32]
	b	LBB0_41
LBB0_44:
Lloh48:
	adrp	x9, _VOLTAGE_GPIO@GOTPAGE
Lloh49:
	ldr	x9, [x9, _VOLTAGE_GPIO@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	ldr	x8, [x8, #24]
	str	x9, [x8, #24]
	ubfx	w9, w23, #3, #1
	str	w9, [x8, #16]
	mov	w23, #1
	str	w23, [x8, #32]
	add	w0, w20, #16
	cmp	w21, #5
	b.gt	LBB0_46
; %bb.45:
	bl	_RBIOS16
	lsl	w8, w0, #2
	ldr	x9, [x19, #32]
	ldr	x9, [x9, #24]
	str	w8, [x9, #36]
	add	w0, w20, #18
	bl	_RBIOS8
	lsl	w10, w23, w0
	b	LBB0_49
LBB0_46:
	bl	_RBIOS8
	mov	x24, x0
	add	w0, w20, #17
	bl	_RBIOS16
	cbz	w24, LBB0_50
; %bb.47:
	mov	x23, x0
	cbz	w0, LBB0_50
; %bb.48:
	mov	x0, x23
	bl	_RBIOS16
	lsl	w8, w0, #2
	ldr	x9, [x19, #32]
	ldr	x9, [x9, #24]
	str	w8, [x9, #36]
	add	w0, w23, #2
	bl	_RBIOS8
	mov	w8, #1
	lsl	w10, w8, w0
LBB0_49:
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #24]
	str	w10, [x9, #40]
	b	LBB0_51
LBB0_50:
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #24]
	str	wzr, [x9, #32]
LBB0_51:
	ubfx	w10, w22, #8, #3
	sub	w10, w10, #1
	cmp	w10, #3
	b.hi	LBB0_54
; %bb.52:
Lloh51:
	adrp	x11, lJTI0_0@PAGE
Lloh52:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_53
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_53:
	mov	w10, #33
	str	w10, [x9, #20]
	b	LBB0_35
LBB0_54:
	str	wzr, [x9, #20]
	b	LBB0_35
LBB0_55:
	mov	w10, #66
	str	w10, [x9, #20]
	b	LBB0_35
LBB0_56:
	mov	w10, #99
	str	w10, [x9, #20]
	b	LBB0_35
LBB0_57:
	mov	w10, #132
	str	w10, [x9, #20]
	b	LBB0_35
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_53-LBB0_53)>>2
	.byte	(LBB0_55-LBB0_53)>>2
	.byte	(LBB0_56-LBB0_53)>>2
	.byte	(LBB0_57-LBB0_53)>>2
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_COMBIOS_OVERDRIVE_INFO_TABLE,4,2 ; @COMBIOS_OVERDRIVE_INFO_TABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Possible %s thermal controller at 0x%02x\n"

	.comm	_thermal_controller_names,8,3   ; @thermal_controller_names
	.comm	_DDC_LCD,4,2                    ; @DDC_LCD
	.comm	_DDC_GPIO,4,2                   ; @DDC_GPIO
	.comm	_DDC_MONID,4,2                  ; @DDC_MONID
l_.str.1:                               ; @.str.1
	.asciz	"f75375"

	.comm	_RADEON_IS_MOBILITY,4,2         ; @RADEON_IS_MOBILITY
	.comm	_COMBIOS_POWERPLAY_INFO_TABLE,4,2 ; @COMBIOS_POWERPLAY_INFO_TABLE
	.comm	_POWER_STATE_TYPE_BATTERY,4,2   ; @POWER_STATE_TYPE_BATTERY
	.comm	_VOLTAGE_GPIO,8,3               ; @VOLTAGE_GPIO
	.comm	_VOLTAGE_NONE,8,3               ; @VOLTAGE_NONE
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,8,3 ; @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_POWER_STATE_TYPE_DEFAULT,4,2   ; @POWER_STATE_TYPE_DEFAULT
.subsections_via_symbols
