	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dbgfs_quota_min_write
_iwl_dbgfs_quota_min_write:             ## @iwl_dbgfs_quota_min_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
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r12
	movq	8(%rax), %r15
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtou16
	movl	%eax, -36(%rbp)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	cmpl	$96, -40(%rbp)
	jl	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	$0, (%r12)
	movl	4(%r15), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_dbgfs_quota_check@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_ieee80211_iterate_interfaces
	cmpl	$0, -36(%rbp)
	jne	LBB0_5
## %bb.4:
	movl	-40(%rbp), %eax
	movl	%eax, (%r12)
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_iwl_mvm_update_quotas
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_dbgfs_quota_check,4,2      ## @iwl_dbgfs_quota_check
	.no_dead_strip	_iwl_dbgfs_quota_min_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_quota_min_write
_iwl_dbgfs_quota_min_write:             ; @iwl_dbgfs_quota_min_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	x22, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x2, sp, #12
	mov	x0, x22
	mov	w1, #0
	bl	_kstrtou16
	str	w0, [sp, #8]
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #96
	b.lt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_mutex_lock
	str	wzr, [x21]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _iwl_dbgfs_quota_check@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwl_dbgfs_quota_check@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_ieee80211_iterate_interfaces
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_iwl_mvm_update_quotas
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [sp, #8]
	cmp	w8, #0
	csel	w0, w19, w8, eq
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_dbgfs_quota_check,4,2      ; @iwl_dbgfs_quota_check
	.no_dead_strip	_iwl_dbgfs_quota_min_write
.subsections_via_symbols
