	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function soctherm_init_tsensor
_soctherm_init_tsensor:                 ## @soctherm_init_tsensor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_tsensor_calibration
	movq	_TSENSOR_CONFIG0@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_RD4
	movq	_TSENSOR_CONFIG0_STOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rcx, %rbx
	movq	_TSENSOR_CONFIG0_STATUS_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_WR4
	movq	32(%r12), %rax
	movl	16(%rax), %edi
	callq	_TSENSOR_CONFIG0_TALL
	orl	(%rbx), %eax
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_WR4
	movq	32(%r12), %rax
	movq	8(%rax), %rdi
	decq	%rdi
	callq	_TSENSOR_CONFIG1_TSAMPLE
	movl	%eax, %r15d
	movq	32(%r12), %rax
	movl	4(%rax), %edi
	callq	_TSENSOR_CONFIG1_TIDDQ_EN
	movl	%eax, %ebx
	movq	32(%r12), %rax
	movl	(%rax), %edi
	callq	_TSENSOR_CONFIG1_TEN_COUNT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_TSENSOR_CONFIG1_TEMP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_TSENSOR_CONFIG1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_WR4
	movl	24(%r12), %edi
	callq	_TSENSOR_CONFIG2_THERMA
	movl	%eax, %ebx
	movl	16(%r12), %edi
	callq	_TSENSOR_CONFIG2_THERMB
	orl	%eax, %ebx
	movq	_TSENSOR_CONFIG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_WR4
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	callq	_RD4
	movq	_TSENSOR_CONFIG0_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	(%r13), %rsi
	addq	8(%r12), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WR4                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TSENSOR_CONFIG0,8,3            ## @TSENSOR_CONFIG0
	.comm	_TSENSOR_CONFIG0_STOP,4,2       ## @TSENSOR_CONFIG0_STOP
	.comm	_TSENSOR_CONFIG0_STATUS_CLR,4,2 ## @TSENSOR_CONFIG0_STATUS_CLR
	.comm	_TSENSOR_CONFIG1_TEMP_ENABLE,4,2 ## @TSENSOR_CONFIG1_TEMP_ENABLE
	.comm	_TSENSOR_CONFIG1,8,3            ## @TSENSOR_CONFIG1
	.comm	_TSENSOR_CONFIG2,8,3            ## @TSENSOR_CONFIG2
	.comm	_TSENSOR_STATUS0,8,3            ## @TSENSOR_STATUS0
	.comm	_TSENSOR_STATUS1,8,3            ## @TSENSOR_STATUS1
	.comm	_TSENSOR_STATUS2,8,3            ## @TSENSOR_STATUS2
	.no_dead_strip	_soctherm_init_tsensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function soctherm_init_tsensor
_soctherm_init_tsensor:                 ; @soctherm_init_tsensor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_tsensor_calibration
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x22, _TSENSOR_CONFIG0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TSENSOR_CONFIG0@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_RD4
Lloh2:
	adrp	x23, _TSENSOR_CONFIG0_STOP@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TSENSOR_CONFIG0_STOP@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh4:
	adrp	x9, _TSENSOR_CONFIG0_STATUS_CLR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TSENSOR_CONFIG0_STATUS_CLR@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh6:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_WR4
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #16]
	bl	_TSENSOR_CONFIG0_TALL
	ldr	w8, [x23]
	orr	w2, w8, w0
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_WR4
	ldr	x8, [x20, #32]
	ldr	x8, [x8, #8]
	sub	x0, x8, #1
	bl	_TSENSOR_CONFIG1_TSAMPLE
	mov	x21, x0
	ldr	x8, [x20, #32]
	ldr	w0, [x8, #4]
	bl	_TSENSOR_CONFIG1_TIDDQ_EN
	orr	w21, w0, w21
	ldr	x8, [x20, #32]
	ldr	w0, [x8]
	bl	_TSENSOR_CONFIG1_TEN_COUNT
	orr	w8, w21, w0
Lloh7:
	adrp	x9, _TSENSOR_CONFIG1_TEMP_ENABLE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TSENSOR_CONFIG1_TEMP_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _TSENSOR_CONFIG1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TSENSOR_CONFIG1@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_WR4
	ldr	w0, [x20, #24]
	bl	_TSENSOR_CONFIG2_THERMA
	mov	x21, x0
	ldr	w0, [x20, #16]
	bl	_TSENSOR_CONFIG2_THERMB
	orr	w2, w0, w21
	ldr	x8, [x20, #8]
Lloh13:
	adrp	x9, _TSENSOR_CONFIG2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TSENSOR_CONFIG2@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x19
	bl	_WR4
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	bl	_RD4
	ldr	w8, [x23]
	bic	w2, w0, w8
	ldr	x8, [x20, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_WR4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TSENSOR_CONFIG0,8,3            ; @TSENSOR_CONFIG0
	.comm	_TSENSOR_CONFIG0_STOP,4,2       ; @TSENSOR_CONFIG0_STOP
	.comm	_TSENSOR_CONFIG0_STATUS_CLR,4,2 ; @TSENSOR_CONFIG0_STATUS_CLR
	.comm	_TSENSOR_CONFIG1_TEMP_ENABLE,4,2 ; @TSENSOR_CONFIG1_TEMP_ENABLE
	.comm	_TSENSOR_CONFIG1,8,3            ; @TSENSOR_CONFIG1
	.comm	_TSENSOR_CONFIG2,8,3            ; @TSENSOR_CONFIG2
	.comm	_TSENSOR_STATUS0,8,3            ; @TSENSOR_STATUS0
	.comm	_TSENSOR_STATUS1,8,3            ; @TSENSOR_STATUS1
	.comm	_TSENSOR_STATUS2,8,3            ; @TSENSOR_STATUS2
	.no_dead_strip	_soctherm_init_tsensor
.subsections_via_symbols
