	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_disable_power_off_write
_iwl_dbgfs_disable_power_off_write:     ## @iwl_dbgfs_disable_power_off_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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_iwl_mvm_firmware_running
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	$21, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	$21, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	addq	$21, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.8:
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r15)
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	addq	$21, %rbx
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.9:
	movl	-36(%rbp), %eax
	movl	%eax, (%r15)
LBB0_10:
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_iwl_mvm_power_update_device
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	movslq	%ebx, %rax
	cmoveq	%r14, %rax
	jmp	LBB0_11
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,8,3                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disable_power_off_d0="

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_EINVAL,8,3                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"disable_power_off_d3="

	.no_dead_strip	_iwl_dbgfs_disable_power_off_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_disable_power_off_write
_iwl_dbgfs_disable_power_off_write:     ; @iwl_dbgfs_disable_power_off_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
	cbz	w0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #21
	bl	_strncmp
	cbz	w0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	w2, #21
	bl	_strncmp
	cbnz	w0, LBB0_9
; %bb.3:
	add	x0, x21, #21
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x20, #4]
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	add	x0, x21, #21
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_8:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x20
	bl	_iwl_mvm_power_update_device
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	sxtw	x8, w20
	cmp	w20, #0
	csel	x0, x19, x8, eq
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_11:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,8,3                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disable_power_off_d0="

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_EINVAL,8,3                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"disable_power_off_d3="

	.no_dead_strip	_iwl_dbgfs_disable_power_off_write
.subsections_via_symbols
