	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_tt_initialize              ## -- Begin function iwl_tt_initialize
	.p2align	4, 0x90
_iwl_tt_initialize:                     ## @iwl_tt_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	%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	_IWL_TI_STATE_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	leaq	L_.str(%rip), %rsi
	callq	_IWL_DEBUG_TEMP
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_IWL_TI_0@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	leaq	28(%rbx), %rdi
	movq	_iwl_tt_check_exit_ct_kill@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	24(%rbx), %rdi
	movq	_iwl_tt_ready_for_ct_kill@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_timer_setup
	leaq	48(%rbx), %rdi
	movq	_iwl_bg_tt_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	44(%rbx), %rdi
	movq	_iwl_bg_ct_enter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	40(%rbx), %rdi
	movq	_iwl_bg_ct_exit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	32(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_TEMP
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%rbx)
	movl	(%r15), %eax
	leal	-1(%rax), %edi
	imull	%eax, %edi
	movl	(%r13), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.2:
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leal	-4(,%r14,4), %r14d
	movslq	(%r12), %rcx
	movslq	(%r15), %rdx
	decq	%rdx
	imulq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %rdi
	movq	_tt_range_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_IWL_TI_1@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r15), %rdi
	decq	%rdi
	imulq	%rax, %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movq	_tt_range_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_IWL_TI_2@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r15), %rdi
	decq	%rdi
	imulq	%rax, %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movq	_tt_range_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_IWL_TI_CT_KILL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r15), %rdi
	decq	%rdi
	imulq	%rax, %rdi
	shlq	$2, %rdi
	addq	16(%rbx), %rdi
	movq	_tt_range_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	(%r15), %edx
	shll	$2, %edx
	movq	8(%rbx), %rdi
	movq	_restriction_range@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_memcpy
	movl	$1, 4(%rbx)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_TEMP
	movl	$0, 4(%rbx)
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movl	$0, 4(%rbx)
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_TI_STATE_MAX,4,2           ## @IWL_TI_STATE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialize Thermal Throttling\n"

	.comm	_IWL_TI_0,4,2                   ## @IWL_TI_0
	.comm	_iwl_tt_check_exit_ct_kill,4,2  ## @iwl_tt_check_exit_ct_kill
	.comm	_iwl_tt_ready_for_ct_kill,4,2   ## @iwl_tt_ready_for_ct_kill
	.comm	_iwl_bg_tt_work,4,2             ## @iwl_bg_tt_work
	.comm	_iwl_bg_ct_enter,4,2            ## @iwl_bg_ct_enter
	.comm	_iwl_bg_ct_exit,4,2             ## @iwl_bg_ct_exit
L_.str.1:                               ## @.str.1
	.asciz	"Advanced Thermal Throttling\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"Fallback to Legacy Throttling\n"

	.comm	_tt_range_0,8,3                 ## @tt_range_0
	.comm	_IWL_TI_1,4,2                   ## @IWL_TI_1
	.comm	_tt_range_1,8,3                 ## @tt_range_1
	.comm	_IWL_TI_2,4,2                   ## @IWL_TI_2
	.comm	_tt_range_2,8,3                 ## @tt_range_2
	.comm	_IWL_TI_CT_KILL,4,2             ## @IWL_TI_CT_KILL
	.comm	_tt_range_3,8,3                 ## @tt_range_3
	.comm	_restriction_range,8,3          ## @restriction_range
L_.str.3:                               ## @.str.3
	.asciz	"Legacy Thermal Throttling\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_tt_initialize              ; -- Begin function iwl_tt_initialize
	.p2align	2
_iwl_tt_initialize:                     ; @iwl_tt_initialize
	.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	x19, x0
Lloh0:
	adrp	x21, _IWL_TI_STATE_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IWL_TI_STATE_MAX@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_TEMP
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh4:
	adrp	x22, _IWL_TI_0@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IWL_TI_0@GOTPAGEOFF]
	ldr	w8, [x22]
	str	w8, [x19]
	add	x0, x19, #28
Lloh6:
	adrp	x8, _iwl_tt_check_exit_ct_kill@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwl_tt_check_exit_ct_kill@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #24
Lloh9:
	adrp	x8, _iwl_tt_ready_for_ct_kill@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwl_tt_ready_for_ct_kill@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	add	x0, x19, #48
Lloh12:
	adrp	x8, _iwl_bg_tt_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iwl_bg_tt_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #44
Lloh15:
	adrp	x8, _iwl_bg_ct_enter@GOTPAGE
Lloh16:
	ldr	x8, [x8, _iwl_bg_ct_enter@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
Lloh18:
	adrp	x8, _iwl_bg_ct_exit@GOTPAGE
Lloh19:
	ldr	x8, [x8, _iwl_bg_ct_exit@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TEMP
	ldr	w0, [x21]
Lloh23:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	ldr	w8, [x21]
	sub	w9, w8, #1
	mul	w0, w9, w8
	ldr	w2, [x23]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	cbz	x0, LBB0_5
; %bb.3:
	lsl	w8, w20, #2
	sub	w20, w8, #4
	ldr	w8, [x22]
	ldr	w9, [x21]
	sub	w9, w9, #1
	mul	w8, w9, w8
	add	x0, x0, w8, sxtw #2
Lloh25:
	adrp	x8, _tt_range_0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _tt_range_0@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #16]
Lloh28:
	adrp	x9, _IWL_TI_1@GOTPAGE
Lloh29:
	ldr	x9, [x9, _IWL_TI_1@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [x21]
	sub	w10, w10, #1
	mul	w9, w10, w9
	add	x0, x8, w9, sxtw #2
Lloh31:
	adrp	x8, _tt_range_1@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tt_range_1@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #16]
Lloh34:
	adrp	x9, _IWL_TI_2@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IWL_TI_2@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	ldr	w10, [x21]
	sub	w10, w10, #1
	mul	w9, w10, w9
	add	x0, x8, w9, sxtw #2
Lloh37:
	adrp	x8, _tt_range_2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _tt_range_2@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19, #16]
Lloh40:
	adrp	x9, _IWL_TI_CT_KILL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _IWL_TI_CT_KILL@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	ldr	w10, [x21]
	sub	w10, w10, #1
	mul	w9, w10, w9
	add	x0, x8, w9, sxtw #2
Lloh43:
	adrp	x8, _tt_range_3@GOTPAGE
Lloh44:
	ldr	x8, [x8, _tt_range_3@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x21]
	lsl	w2, w8, #2
	ldr	x0, [x19, #8]
Lloh46:
	adrp	x8, _restriction_range@GOTPAGE
Lloh47:
	ldr	x8, [x8, _restriction_range@GOTPAGEOFF]
Lloh48:
	ldr	x1, [x8]
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_4:
Lloh49:
	adrp	x1, l_.str.3@PAGE
Lloh50:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TEMP
	str	wzr, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh51:
	adrp	x1, l_.str.2@PAGE
Lloh52:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	str	wzr, [x19, #4]
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_kfree
	str	xzr, [x19, #16]
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_TI_STATE_MAX,4,2           ; @IWL_TI_STATE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialize Thermal Throttling\n"

	.comm	_IWL_TI_0,4,2                   ; @IWL_TI_0
	.comm	_iwl_tt_check_exit_ct_kill,4,2  ; @iwl_tt_check_exit_ct_kill
	.comm	_iwl_tt_ready_for_ct_kill,4,2   ; @iwl_tt_ready_for_ct_kill
	.comm	_iwl_bg_tt_work,4,2             ; @iwl_bg_tt_work
	.comm	_iwl_bg_ct_enter,4,2            ; @iwl_bg_ct_enter
	.comm	_iwl_bg_ct_exit,4,2             ; @iwl_bg_ct_exit
l_.str.1:                               ; @.str.1
	.asciz	"Advanced Thermal Throttling\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"Fallback to Legacy Throttling\n"

	.comm	_tt_range_0,8,3                 ; @tt_range_0
	.comm	_IWL_TI_1,4,2                   ; @IWL_TI_1
	.comm	_tt_range_1,8,3                 ; @tt_range_1
	.comm	_IWL_TI_2,4,2                   ; @IWL_TI_2
	.comm	_tt_range_2,8,3                 ; @tt_range_2
	.comm	_IWL_TI_CT_KILL,4,2             ; @IWL_TI_CT_KILL
	.comm	_tt_range_3,8,3                 ; @tt_range_3
	.comm	_restriction_range,8,3          ; @restriction_range
l_.str.3:                               ; @.str.3
	.asciz	"Legacy Thermal Throttling\n"

.subsections_via_symbols
