	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_ctdp_command           ## -- Begin function iwl_mvm_ctdp_command
	.p2align	4, 0x90
_iwl_mvm_ctdp_command:                  ## @iwl_mvm_ctdp_command
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	movq	_iwl_mvm_cdev_budgets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	callq	_cpu_to_le32
	movl	%eax, -40(%rbp)
	leaq	8(%r15), %rdi
	callq	_lockdep_assert_held
	movq	$0, -32(%rbp)
	movq	_PHY_OPS_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CTDP_CONFIG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WIDE_ID
	leaq	-48(%rbp), %rcx
	leaq	-32(%rbp), %r8
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$12, %edx
	callq	_iwl_mvm_send_cmd_pdu_status
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$128, %r14
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	$130, %r14
	jne	LBB0_6
## %bb.4:
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TEMP
	movl	-32(%rbp), %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TEMP
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_iwl_mvm_cdev_budgets,8,3       ## @iwl_mvm_cdev_budgets
	.comm	_PHY_OPS_GROUP,4,2              ## @PHY_OPS_GROUP
	.comm	_CTDP_CONFIG_CMD,4,2            ## @CTDP_CONFIG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cTDP command failed (err=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"cTDP avg energy in mWatt = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"cTDP stopped successfully\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_ctdp_command           ; -- Begin function iwl_mvm_ctdp_command
	.p2align	2
_iwl_mvm_ctdp_command:                  ; @iwl_mvm_ctdp_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #16]
Lloh0:
	adrp	x8, _iwl_mvm_cdev_budgets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _iwl_mvm_cdev_budgets@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x8, x2, lsl #3]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [sp, #24]
	add	x0, x19, #8
	bl	_lockdep_assert_held
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _PHY_OPS_GROUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_OPS_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _CTDP_CONFIG_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTDP_CONFIG_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_WIDE_ID
	mov	x1, x0
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #12
	bl	_iwl_mvm_send_cmd_pdu_status
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_IWL_ERR
	b	LBB0_7
LBB0_2:
	cmp	x20, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	x20, #130
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TEMP
	ldr	w21, [sp, #8]
	b	LBB0_7
LBB0_5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_TEMP
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_iwl_mvm_cdev_budgets,8,3       ; @iwl_mvm_cdev_budgets
	.comm	_PHY_OPS_GROUP,4,2              ; @PHY_OPS_GROUP
	.comm	_CTDP_CONFIG_CMD,4,2            ; @CTDP_CONFIG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cTDP command failed (err=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"cTDP avg energy in mWatt = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"cTDP stopped successfully\n"

.subsections_via_symbols
