	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_fw_dbg_conf_write
_iwl_dbgfs_fw_dbg_conf_write:           ## @iwl_dbgfs_fw_dbg_conf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	-28(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtouint
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	-28(%rbp), %eax
	movq	_FW_DBG_CONF_MAX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setae	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	4(%r15), %rdi
	movl	-28(%rbp), %esi
	callq	_iwl_fw_start_dbg_conf
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r14d
	movl	%r14d, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FW_DBG_CONF_MAX,4,2            ## @FW_DBG_CONF_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iwl_dbgfs_fw_dbg_conf_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_fw_dbg_conf_write
_iwl_dbgfs_fw_dbg_conf_write:           ; @iwl_dbgfs_fw_dbg_conf_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_4
; %bb.1:
	add	x2, sp, #12
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtouint
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _FW_DBG_CONF_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FW_DBG_CONF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, hs
	bl	_WARN_ON
	cbz	x0, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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:
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x20, #4
	ldr	w1, [sp, #12]
	bl	_iwl_fw_start_dbg_conf
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w21, #0
	csel	w0, w19, w21, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FW_DBG_CONF_MAX,4,2            ; @FW_DBG_CONF_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iwl_dbgfs_fw_dbg_conf_write
.subsections_via_symbols
