	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_thermal_set_throttling  ## -- Begin function ath10k_thermal_set_throttling
	.p2align	4, 0x90
_ath10k_thermal_set_throttling:         ## @ath10k_thermal_set_throttling
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_lockdep_assert_held
	movq	_WMI_SERVICE_THERM_THROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	movq	_ATH10K_STATE_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %r14d
	movl	12(%rbx), %eax
	imull	%r14d, %eax
	cltq
	imulq	$1374389535, %rax, %r15         ## imm = 0x51EB851F
	movq	%r15, %rcx
	shrq	$63, %rcx
	sarq	$37, %r15
	addl	%ecx, %r15d
	addl	$-100, %eax
	xorl	%r12d, %r12d
	cmpl	$-199, %eax
	setb	%r12b
	movq	_ATH10K_QUIET_START_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	callq	_ath10k_wmi_pdev_set_quiet_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_THERM_THROT,4,2    ## @WMI_SERVICE_THERM_THROT
	.comm	_ATH10K_STATE_ON,8,3            ## @ATH10K_STATE_ON
	.comm	_ATH10K_QUIET_START_OFFSET,4,2  ## @ATH10K_QUIET_START_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set quiet mode period %u duarion %u enabled %u ret %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_thermal_set_throttling  ; -- Begin function ath10k_thermal_set_throttling
	.p2align	2
_ath10k_thermal_set_throttling:         ; @ath10k_thermal_set_throttling
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #32
	bl	_lockdep_assert_held
Lloh0:
	adrp	x8, _WMI_SERVICE_THERM_THROT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_THERM_THROT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_test_bit
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ATH10K_STATE_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH10K_STATE_ON@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldp	w20, w8, [x19, #8]
	mul	w8, w8, w20
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w21, w9, w10
	sub	w8, w8, #100
	cmn	w8, #199
	cset	w22, lo
Lloh6:
	adrp	x8, _ATH10K_QUIET_START_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH10K_QUIET_START_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x4, x22
	bl	_ath10k_wmi_pdev_set_quiet_mode
	cbz	w0, LBB0_5
; %bb.4:
	mov	x5, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ath10k_warn
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_THERM_THROT,4,2    ; @WMI_SERVICE_THERM_THROT
	.comm	_ATH10K_STATE_ON,8,3            ; @ATH10K_STATE_ON
	.comm	_ATH10K_QUIET_START_OFFSET,4,2  ; @ATH10K_QUIET_START_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set quiet mode period %u duarion %u enabled %u ret %d\n"

.subsections_via_symbols
