	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_thermal_initialize
_ci_thermal_initialize:                 ## @ci_thermal_initialize
	.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
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	_CG_TACH_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32_SMC
	movq	_EDGE_PER_REV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	(%r14), %rdi
	decq	%rdi
	callq	_EDGE_PER_REV
	orl	%eax, %ebx
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_WREG32_SMC
LBB0_2:
	movq	_CG_FDO_CTRL2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32_SMC
	movq	_TACH_PWM_RESP_RATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$40, %edi
	callq	_TACH_PWM_RESP_RATE
	orl	%eax, %ebx
	movl	(%r14), %edi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SMC                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_TACH_CTRL,4,2               ## @CG_TACH_CTRL
	.comm	_EDGE_PER_REV_MASK,4,2          ## @EDGE_PER_REV_MASK
	.comm	_CG_FDO_CTRL2,4,2               ## @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE_MASK,4,2    ## @TACH_PWM_RESP_RATE_MASK
	.no_dead_strip	_ci_thermal_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_thermal_initialize
_ci_thermal_initialize:                 ; @ci_thermal_initialize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _CG_TACH_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CG_TACH_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32_SMC
Lloh2:
	adrp	x8, _EDGE_PER_REV_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDGE_PER_REV_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w21, w0, w8
	ldr	x8, [x19]
	sub	x0, x8, #1
	bl	_EDGE_PER_REV
	orr	w1, w0, w21
	ldr	w0, [x20]
	bl	_WREG32_SMC
LBB0_2:
Lloh5:
	adrp	x19, _CG_FDO_CTRL2@GOTPAGE
Lloh6:
	ldr	x19, [x19, _CG_FDO_CTRL2@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_RREG32_SMC
Lloh7:
	adrp	x8, _TACH_PWM_RESP_RATE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TACH_PWM_RESP_RATE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w20, w0, w8
	mov	w0, #40
	bl	_TACH_PWM_RESP_RATE
	orr	w1, w20, w0
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32_SMC
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_TACH_CTRL,4,2               ; @CG_TACH_CTRL
	.comm	_EDGE_PER_REV_MASK,4,2          ; @EDGE_PER_REV_MASK
	.comm	_CG_FDO_CTRL2,4,2               ; @CG_FDO_CTRL2
	.comm	_TACH_PWM_RESP_RATE_MASK,4,2    ; @TACH_PWM_RESP_RATE_MASK
	.no_dead_strip	_ci_thermal_initialize
.subsections_via_symbols
