	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_set_nic_temperature_write
_iwl_dbgfs_set_nic_temperature_write:   ## @iwl_dbgfs_set_nic_temperature_write
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%r14)
	je	LBB0_2
LBB0_4:
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoint
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subq	(%rax), %r12
LBB0_14:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-36(%rbp), %eax
	movq	_IWL_MVM_DEBUG_SET_TEMPERATURE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	setg	%cl
	movq	_IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_5
## %bb.7:
	movq	_IWL_MVM_DEBUG_SET_TEMPERATURE_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.8:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	-36(%rbp), %ecx
	cmpl	(%rbx), %ecx
	jne	LBB0_9
## %bb.10:
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %eax
LBB0_12:
	movl	%eax, (%r14)
	movl	%ecx, 4(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_TEMP
	movq	%r14, %rdi
	callq	_iwl_mvm_tt_handler
LBB0_13:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_MAX,4,2 ## @IWL_MVM_DEBUG_SET_TEMPERATURE_MAX
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE,4,2 ## @IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_MIN,4,2 ## @IWL_MVM_DEBUG_SET_TEMPERATURE_MIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sabling debug set temperature (temp = %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"En"

L_.str.2:                               ## @.str.2
	.asciz	"Dis"

	.no_dead_strip	_iwl_dbgfs_set_nic_temperature_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dbgfs_set_nic_temperature_write
_iwl_dbgfs_set_nic_temperature_write:   ; @iwl_dbgfs_set_nic_temperature_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_iwl_mvm_firmware_running
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_10
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoint
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _IWL_MVM_DEBUG_SET_TEMPERATURE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_MVM_DEBUG_SET_TEMPERATURE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x22, _IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE@GOTPAGEOFF]
	ldr	w10, [x22]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
Lloh5:
	adrp	x9, _IWL_MVM_DEBUG_SET_TEMPERATURE_MIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IWL_MVM_DEBUG_SET_TEMPERATURE_MIN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ccmp	w8, w9, #8, le
	b.ge	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
LBB0_7:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w3, [sp, #12]
	ldr	w8, [x22]
	cmp	w3, w8
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x20]
	cbz	w8, LBB0_13
; %bb.9:
	mov	w8, #0
	mov	w3, #0
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w8, #1
LBB0_12:
	stp	w8, w3, [x20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TEMP
	mov	x0, x20
	bl	_iwl_mvm_tt_handler
LBB0_13:
	mov	x0, x21
	bl	_mutex_unlock
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_MAX,4,2 ; @IWL_MVM_DEBUG_SET_TEMPERATURE_MAX
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE,4,2 ; @IWL_MVM_DEBUG_SET_TEMPERATURE_DISABLE
	.comm	_IWL_MVM_DEBUG_SET_TEMPERATURE_MIN,4,2 ; @IWL_MVM_DEBUG_SET_TEMPERATURE_MIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sabling debug set temperature (temp = %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"En"

l_.str.2:                               ; @.str.2
	.asciz	"Dis"

	.no_dead_strip	_iwl_dbgfs_set_nic_temperature_write
.subsections_via_symbols
