	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_tt_handler             ## -- Begin function iwl_mvm_tt_handler
	.p2align	4, 0x90
_iwl_mvm_tt_handler:                    ## @iwl_mvm_tt_handler
	.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, %r13
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TEMP
	cmpq	$0, 128(%r13)
	je	LBB0_3
## %bb.1:
	cmpq	48(%r13), %r14
	jge	LBB0_34
## %bb.2:
	cmpq	56(%r13), %r14
	jle	LBB0_35
LBB0_3:
	cmpq	$0, 120(%r13)
	je	LBB0_10
## %bb.4:
	cmpl	$0, 16(%r13)
	je	LBB0_5
## %bb.7:
	xorl	%r15d, %r15d
	cmpq	72(%r13), %r14
	jg	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_34:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_enter_ctkill           ## TAILCALL
LBB0_35:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_mvm_exit_ctkill            ## TAILCALL
LBB0_5:
	cmpq	64(%r13), %r14
	jl	LBB0_10
## %bb.6:
	movl	$1, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TEMP
	movl	%r15d, 16(%r13)
	movl	8(%r13), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_tt_smps_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
LBB0_10:
	cmpq	$0, 112(%r13)
	je	LBB0_14
## %bb.11:
	movl	$1, %esi
	movl	$1, %ebx
	cmpq	80(%r13), %r14
	jge	LBB0_13
## %bb.12:
	xorl	%esi, %esi
	movl	%r15d, %ebx
	cmpq	88(%r13), %r14
	jg	LBB0_14
LBB0_13:
	movq	%r13, %rdi
	callq	_iwl_mvm_tt_tx_protection
	movl	%ebx, %r15d
LBB0_14:
	cmpq	$0, 104(%r13)
	je	LBB0_15
## %bb.16:
	movq	24(%r13), %rax
	movq	_TT_TX_BACKOFF_SIZE@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.18:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	96(%r13), %rcx
	cmpq	(%rcx), %r14
	jl	LBB0_22
## %bb.19:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	movl	8(%rcx,%rbx), %esi
	callq	_max
	incq	%r15
	movslq	(%r12), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_21 Depth=1
	leaq	16(%rbx), %rdx
	movq	96(%r13), %rcx
	cmpq	16(%rcx,%rbx), %r14
	movq	%rdx, %rbx
	jge	LBB0_21
LBB0_22:
	movq	%rax, %rsi
	movq	24(%r13), %rax
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_23
LBB0_15:
	movl	%r15d, %ebx
	jmp	LBB0_25
LBB0_17:
	movq	%rax, %rsi
LBB0_23:
	cmpq	%rax, %rsi
	movl	$1, %ebx
	cmovel	%r15d, %ebx
	cmpq	%rsi, 32(%r13)
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	callq	_iwl_mvm_tt_tx_backoff
LBB0_25:
	movl	40(%r13), %eax
	testl	%ebx, %ebx
	je	LBB0_28
## %bb.26:
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_IWL_WARN
	movl	$1, 40(%r13)
	jmp	LBB0_33
LBB0_28:
	testl	%eax, %eax
	je	LBB0_33
## %bb.29:
	cmpl	$0, 16(%r13)
	jne	LBB0_33
## %bb.30:
	movq	32(%r13), %rax
	cmpq	24(%r13), %rax
	jne	LBB0_33
## %bb.31:
	cmpq	88(%r13), %r14
	jg	LBB0_33
## %bb.32:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_IWL_WARN
	movl	$0, 40(%r13)
LBB0_33:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NIC temperature: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable dynamic SMPS\n"

	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_tt_smps_iterator,4,2   ## @iwl_mvm_tt_smps_iterator
L_.str.2:                               ## @.str.2
	.asciz	"Disable dynamic SMPS\n"

	.comm	_TT_TX_BACKOFF_SIZE,4,2         ## @TT_TX_BACKOFF_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"Due to high temperature thermal throttling initiated\n"

L_.str.4:                               ## @.str.4
	.asciz	"Temperature is back to normal thermal throttling stopped\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_tt_handler             ; -- Begin function iwl_mvm_tt_handler
	.p2align	2
_iwl_mvm_tt_handler:                    ; @iwl_mvm_tt_handler
	.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
	ldr	x20, [x0]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_TEMP
	ldr	x8, [x19, #128]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #48]
	cmp	x20, x8
	b.ge	LBB0_7
; %bb.2:
	ldr	x8, [x19, #56]
	cmp	x20, x8
	b.le	LBB0_8
LBB0_3:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.5:
	mov	w21, #0
	ldr	x8, [x19, #72]
	cmp	x20, x8
	b.gt	LBB0_11
; %bb.6:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	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
	b	_iwl_mvm_enter_ctkill
LBB0_8:
	mov	x0, x19
	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
	b	_iwl_mvm_exit_ctkill
LBB0_9:
	ldr	x8, [x19, #64]
	cmp	x20, x8
	b.ge	LBB0_12
LBB0_10:
	mov	w21, #0
LBB0_11:
	ldr	x8, [x19, #112]
	cbnz	x8, LBB0_14
	b	LBB0_19
LBB0_12:
	mov	w21, #1
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_IWL_DEBUG_TEMP
	str	w21, [x19, #16]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _iwl_mvm_tt_smps_iterator@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iwl_mvm_tt_smps_iterator@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_19
LBB0_14:
	ldr	x8, [x19, #80]
	cmp	x20, x8
	b.ge	LBB0_17
; %bb.15:
	ldr	x8, [x19, #88]
	cmp	x20, x8
	b.gt	LBB0_19
; %bb.16:
	mov	w1, #0
	b	LBB0_18
LBB0_17:
	mov	w1, #1
	mov	w21, #1
LBB0_18:
	mov	x0, x19
	bl	_iwl_mvm_tt_tx_protection
LBB0_19:
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_29
; %bb.20:
	ldr	x0, [x19, #24]
Lloh12:
	adrp	x22, _TT_TX_BACKOFF_SIZE@GOTPAGE
Lloh13:
	ldr	x22, [x22, _TT_TX_BACKOFF_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.21:
	ldr	x8, [x19, #96]
	ldr	x9, [x8]
	cmp	x20, x9
	b.lt	LBB0_25
; %bb.22:
	mov	x24, #0
	mov	x23, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	bl	_max
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x19, #96]
	add	x9, x8, x24
	add	x24, x24, #16
	ldr	x9, [x9, #16]
	cmp	x20, x9
	b.ge	LBB0_23
LBB0_25:
	mov	x1, x0
	ldr	x0, [x19, #24]
	b	LBB0_27
LBB0_26:
	mov	x1, x0
LBB0_27:
	cmp	x1, x0
	csinc	w21, w21, wzr, eq
	ldr	x8, [x19, #32]
	cmp	x8, x1
	b.eq	LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_iwl_mvm_tt_tx_backoff
LBB0_29:
	ldr	w8, [x19, #40]
	cmp	w21, #0
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_35
; %bb.30:
	cbz	w8, LBB0_36
; %bb.31:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_36
; %bb.32:
	ldp	x9, x8, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.33:
	ldr	x8, [x19, #88]
	cmp	x20, x8
	b.gt	LBB0_36
; %bb.34:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
	str	wzr, [x19, #40]
	b	LBB0_36
LBB0_35:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_36:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NIC temperature: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable dynamic SMPS\n"

	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_tt_smps_iterator,4,2   ; @iwl_mvm_tt_smps_iterator
l_.str.2:                               ; @.str.2
	.asciz	"Disable dynamic SMPS\n"

	.comm	_TT_TX_BACKOFF_SIZE,4,2         ; @TT_TX_BACKOFF_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"Due to high temperature thermal throttling initiated\n"

l_.str.4:                               ; @.str.4
	.asciz	"Temperature is back to normal thermal throttling stopped\n"

.subsections_via_symbols
