	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_up_therm_channel
_set_up_therm_channel:                  ## @set_up_therm_channel
	.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
	movq	_SKIN_SENSOR0_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_msic_reg_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	1(%rbx), %rdi
	movq	_SKIN_SENSOR1_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_msic_reg_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	leaq	2(%rbx), %rdi
	movq	_SYS_SENSOR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_intel_msic_reg_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	addq	$3, %rbx
	movq	_MSIC_DIE_SENSOR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	$16, %esi
	movq	%rbx, %rdi
	callq	_intel_msic_reg_write
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_configure_adc                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SKIN_SENSOR0_CODE,4,2          ## @SKIN_SENSOR0_CODE
	.comm	_SKIN_SENSOR1_CODE,4,2          ## @SKIN_SENSOR1_CODE
	.comm	_SYS_SENSOR_CODE,4,2            ## @SYS_SENSOR_CODE
	.comm	_MSIC_DIE_SENSOR_CODE,4,2       ## @MSIC_DIE_SENSOR_CODE
	.no_dead_strip	_set_up_therm_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_up_therm_channel
_set_up_therm_channel:                  ; @set_up_therm_channel
	.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
Lloh0:
	adrp	x8, _SKIN_SENSOR0_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SKIN_SENSOR0_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_intel_msic_reg_write
	cbnz	w0, LBB0_4
; %bb.1:
	add	x0, x19, #1
Lloh3:
	adrp	x8, _SKIN_SENSOR1_CODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SKIN_SENSOR1_CODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_intel_msic_reg_write
	cbnz	w0, LBB0_4
; %bb.2:
	add	x0, x19, #2
Lloh6:
	adrp	x8, _SYS_SENSOR_CODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SYS_SENSOR_CODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_intel_msic_reg_write
	cbnz	w0, LBB0_4
; %bb.3:
	add	x0, x19, #3
Lloh9:
	adrp	x8, _MSIC_DIE_SENSOR_CODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSIC_DIE_SENSOR_CODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w1, w8, #0x10
	bl	_intel_msic_reg_write
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_configure_adc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SKIN_SENSOR0_CODE,4,2          ; @SKIN_SENSOR0_CODE
	.comm	_SKIN_SENSOR1_CODE,4,2          ; @SKIN_SENSOR1_CODE
	.comm	_SYS_SENSOR_CODE,4,2            ; @SYS_SENSOR_CODE
	.comm	_MSIC_DIE_SENSOR_CODE,4,2       ; @MSIC_DIE_SENSOR_CODE
	.no_dead_strip	_set_up_therm_channel
.subsections_via_symbols
