	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_init_thermal_data
_cm_init_thermal_data:                  ## @cm_init_thermal_data
	.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	%rsi, %rax
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_POWER_SUPPLY_PROP_TEMP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	callq	_power_supply_get_property
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 16(%r14)
	je	LBB0_4
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r15), %ecx
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	movl	%ecx, (%rsi,%rdx,4)
	incq	%rdx
	movq	%rdx, 8(%rbx)
	movq	(%rbx), %rcx
	movl	$1, (%rcx)
	cmpq	$0, 16(%r14)
	jne	LBB0_5
LBB0_4:
	movq	_CM_DEFAULT_CHARGE_TEMP_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r14)
	cmpq	$0, 8(%r14)
	jne	LBB0_7
LBB0_6:
	movq	_CM_DEFAULT_RECHARGE_TEMP_DIFF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_PROP_TEMP,4,2     ## @POWER_SUPPLY_PROP_TEMP
	.comm	_CM_DEFAULT_CHARGE_TEMP_MAX,8,3 ## @CM_DEFAULT_CHARGE_TEMP_MAX
	.comm	_CM_DEFAULT_RECHARGE_TEMP_DIFF,8,3 ## @CM_DEFAULT_RECHARGE_TEMP_DIFF
	.comm	_POWER_SUPPLY_PROP_TEMP_AMBIENT,4,2 ## @POWER_SUPPLY_PROP_TEMP_AMBIENT
	.no_dead_strip	_cm_init_thermal_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_init_thermal_data
_cm_init_thermal_data:                  ; @cm_init_thermal_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x1
	mov	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x21, _POWER_SUPPLY_PROP_TEMP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _POWER_SUPPLY_PROP_TEMP@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x8
	bl	_power_supply_get_property
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [x21]
	ldp	x10, x9, [x19, #8]
	ldr	x11, [x19]
	str	w8, [x9, x10, lsl #2]
	add	x8, x10, #1
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x11]
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _CM_DEFAULT_CHARGE_TEMP_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CM_DEFAULT_CHARGE_TEMP_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_4
LBB0_7:
Lloh5:
	adrp	x8, _CM_DEFAULT_RECHARGE_TEMP_DIFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CM_DEFAULT_RECHARGE_TEMP_DIFF@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_PROP_TEMP,4,2     ; @POWER_SUPPLY_PROP_TEMP
	.comm	_CM_DEFAULT_CHARGE_TEMP_MAX,8,3 ; @CM_DEFAULT_CHARGE_TEMP_MAX
	.comm	_CM_DEFAULT_RECHARGE_TEMP_DIFF,8,3 ; @CM_DEFAULT_RECHARGE_TEMP_DIFF
	.comm	_POWER_SUPPLY_PROP_TEMP_AMBIENT,4,2 ; @POWER_SUPPLY_PROP_TEMP_AMBIENT
	.no_dead_strip	_cm_init_thermal_data
.subsections_via_symbols
