	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_tempmon
_initialize_tempmon:                    ## @initialize_tempmon
	.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	%rdi, %rbx
	movq	_FSL_OCOTP_ANA1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fsl_ocotp_read_4
	movl	%eax, %ecx
	movzbl	%al, %edx
	shrl	$20, %eax
	movl	%eax, (%rbx)
	shrl	$8, %ecx
	andl	$4095, %ecx                     ## imm = 0xFFF
	movl	%ecx, 4(%rbx)
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %eax
	movl	%eax, 8(%rbx)
	leal	(%rdx,%rdx,4), %esi
	addl	$-100, %esi
	movl	%esi, 12(%rbx)
	movq	%rbx, %rdi
	callq	_temp_to_count
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %esi
	addl	$-50, %esi
	movq	%rbx, %rdi
	callq	_temp_to_count
	movq	%rax, 40(%rbx)
	movq	_IMX6_ANALOG_TEMPMON_TEMPSENSE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_imx6_anatop_write_4
	movq	_IMX6_ANALOG_TEMPMON_TEMPSENSE0@GOTPCREL(%rip), %rax
	movl	16(%rbx), %esi
	movq	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	(%rax), %edi
	movq	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_imx6_anatop_write_4
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_temp_update_count
	cmpq	$0, 24(%rbx)
	je	LBB0_1
LBB0_3:
	movq	_SBT_1MS@GOTPCREL(%rip), %rax
	imull	$100, (%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	36(%rbx), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_callout_init
	movl	32(%rbx), %esi
	movq	_tempmon_throttle_check@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_callout_reset_sbt
	movq	__hw_imx@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_SYSCTL_STATIC_CHILDREN
	movq	_OID_AUTO@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_CTLTYPE_INT@GOTPCREL(%rip), %r15
	movq	_CTLFLAG_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%r15), %r8d
	movq	_temp_sysctl_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leaq	L_.str.2(%rip), %r11
	leaq	L_.str.1(%rip), %r14
	leaq	L_.str(%rip), %rcx
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r14
	pushq	%r10
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$32, %rsp
	movl	(%r12), %edi
	callq	_SYSCTL_STATIC_CHILDREN
	movl	(%r13), %edx
	movq	_CTLFLAG_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%r15), %r8d
	movq	_temp_throttle_sysctl_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leaq	L_.str.4(%rip), %r11
	leaq	L_.str.3(%rip), %rcx
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%rbx, %r9
	pushq	%r11
	pushq	%r14
	pushq	%r10
	pushq	$0
	callq	_SYSCTL_ADD_PROC
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FSL_OCOTP_ANA1,4,2             ## @FSL_OCOTP_ANA1
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE1,4,2 ## @IMX6_ANALOG_TEMPMON_TEMPSENSE1
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0,4,2 ## @IMX6_ANALOG_TEMPMON_TEMPSENSE0
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT,4,2 ## @IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE,4,2 ## @IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE
	.comm	_SBT_1MS,4,2                    ## @SBT_1MS
	.comm	_tempmon_throttle_check,4,2     ## @tempmon_throttle_check
	.comm	__hw_imx,4,2                    ## @_hw_imx
	.comm	_OID_AUTO,4,2                   ## @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"temperature"

	.comm	_CTLTYPE_INT,4,2                ## @CTLTYPE_INT
	.comm	_CTLFLAG_RD,4,2                 ## @CTLFLAG_RD
	.comm	_temp_sysctl_handler,4,2        ## @temp_sysctl_handler
L_.str.1:                               ## @.str.1
	.asciz	"IK"

L_.str.2:                               ## @.str.2
	.asciz	"Current die temperature"

L_.str.3:                               ## @.str.3
	.asciz	"throttle_temperature"

	.comm	_CTLFLAG_RW,4,2                 ## @CTLFLAG_RW
	.comm	_temp_throttle_sysctl_handler,4,2 ## @temp_throttle_sysctl_handler
L_.str.4:                               ## @.str.4
	.asciz	"Throttle CPU when exceeding this temperature"

	.no_dead_strip	_initialize_tempmon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initialize_tempmon
_initialize_tempmon:                    ; @initialize_tempmon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, _FSL_OCOTP_ANA1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FSL_OCOTP_ANA1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_fsl_ocotp_read_4
	lsr	w8, w0, #20
	ubfx	w9, w0, #8, #12
	stp	w8, w9, [x19]
	and	w8, w0, #0xff
	add	w8, w8, w0, uxtb #2
	lsl	w8, w8, #1
	sub	w1, w8, #100
	stp	w8, w1, [x19, #8]
	mov	x0, x19
	bl	_temp_to_count
	str	w0, [x19, #16]
	ldr	w8, [x19, #12]
	sub	w1, w8, #50
	mov	x0, x19
	bl	_temp_to_count
	str	x0, [x19, #40]
Lloh3:
	adrp	x8, _IMX6_ANALOG_TEMPMON_TEMPSENSE1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMX6_ANALOG_TEMPMON_TEMPSENSE1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #2048
	bl	_imx6_anatop_write_4
Lloh6:
	adrp	x8, _IMX6_ANALOG_TEMPMON_TEMPSENSE0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMX6_ANALOG_TEMPMON_TEMPSENSE0@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh12:
	adrp	x9, _IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_imx6_anatop_write_4
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_temp_update_count
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_1
LBB0_2:
Lloh15:
	adrp	x8, _SBT_1MS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SBT_1MS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #100
	mul	w8, w8, w9
	str	w8, [x19, #32]
	add	x20, x19, #36
	mov	x0, x20
	mov	w1, #0
	bl	_callout_init
	ldr	w1, [x19, #32]
Lloh18:
	adrp	x8, _tempmon_throttle_check@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tempmon_throttle_check@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x4, x19
	mov	w5, #0
	bl	_callout_reset_sbt
Lloh21:
	adrp	x20, __hw_imx@GOTPAGE
Lloh22:
	ldr	x20, [x20, __hw_imx@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_SYSCTL_STATIC_CHILDREN
	mov	x1, x0
Lloh23:
	adrp	x21, _OID_AUTO@GOTPAGE
Lloh24:
	ldr	x21, [x21, _OID_AUTO@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh25:
	adrp	x22, _CTLTYPE_INT@GOTPAGE
Lloh26:
	ldr	x22, [x22, _CTLTYPE_INT@GOTPAGEOFF]
Lloh27:
	adrp	x8, _CTLFLAG_RD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CTLFLAG_RD@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh29:
	ldr	w8, [x8]
	orr	w4, w8, w9
Lloh30:
	adrp	x8, _temp_sysctl_handler@GOTPAGE
Lloh31:
	ldr	x8, [x8, _temp_sysctl_handler@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
Lloh33:
	adrp	x8, l_.str.2@PAGE
Lloh34:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh35:
	adrp	x23, l_.str.1@PAGE
Lloh36:
	add	x23, x23, l_.str.1@PAGEOFF
	stp	x23, x8, [sp]
Lloh37:
	adrp	x3, l_.str@PAGE
Lloh38:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, #0
	mov	x5, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	ldr	w0, [x20]
	bl	_SYSCTL_STATIC_CHILDREN
	mov	x1, x0
	ldr	w2, [x21]
Lloh39:
	adrp	x8, _CTLFLAG_RW@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CTLFLAG_RW@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh41:
	ldr	w8, [x8]
	orr	w4, w8, w9
Lloh42:
	adrp	x8, _temp_throttle_sysctl_handler@GOTPAGE
Lloh43:
	ldr	x8, [x8, _temp_throttle_sysctl_handler@GOTPAGEOFF]
Lloh44:
	ldr	w7, [x8]
Lloh45:
	adrp	x8, l_.str.4@PAGE
Lloh46:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x23, x8, [sp]
Lloh47:
	adrp	x3, l_.str.3@PAGE
Lloh48:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x5, x19
	mov	w6, #0
	bl	_SYSCTL_ADD_PROC
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_FSL_OCOTP_ANA1,4,2             ; @FSL_OCOTP_ANA1
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE1,4,2 ; @IMX6_ANALOG_TEMPMON_TEMPSENSE1
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0,4,2 ; @IMX6_ANALOG_TEMPMON_TEMPSENSE0
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT,4,2 ; @IMX6_ANALOG_TEMPMON_TEMPSENSE0_ALARM_SHIFT
	.comm	_IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE,4,2 ; @IMX6_ANALOG_TEMPMON_TEMPSENSE0_MEASURE
	.comm	_SBT_1MS,4,2                    ; @SBT_1MS
	.comm	_tempmon_throttle_check,4,2     ; @tempmon_throttle_check
	.comm	__hw_imx,4,2                    ; @_hw_imx
	.comm	_OID_AUTO,4,2                   ; @OID_AUTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"temperature"

	.comm	_CTLTYPE_INT,4,2                ; @CTLTYPE_INT
	.comm	_CTLFLAG_RD,4,2                 ; @CTLFLAG_RD
	.comm	_temp_sysctl_handler,4,2        ; @temp_sysctl_handler
l_.str.1:                               ; @.str.1
	.asciz	"IK"

l_.str.2:                               ; @.str.2
	.asciz	"Current die temperature"

l_.str.3:                               ; @.str.3
	.asciz	"throttle_temperature"

	.comm	_CTLFLAG_RW,4,2                 ; @CTLFLAG_RW
	.comm	_temp_throttle_sysctl_handler,4,2 ; @temp_throttle_sysctl_handler
l_.str.4:                               ; @.str.4
	.asciz	"Throttle CPU when exceeding this temperature"

	.no_dead_strip	_initialize_tempmon
.subsections_via_symbols
