	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_find_free_sta_id
_iwl_mvm_find_free_sta_id:              ## @iwl_mvm_find_free_sta_id
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_IWL_MVM_STATION_COUNT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$33, (%rax)
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	_IWL_MVM_STATUS_IN_HW_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r15), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_BIT
	movl	%eax, %r14d
LBB0_2:
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %r12d
	movq	%r15, %rdi
	callq	_lockdep_is_held
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_rcu_dereference_protected
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_7:
	movq	_IWL_MVM_INVALID_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MVM_STATION_COUNT,4,2      ## @IWL_MVM_STATION_COUNT
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ## @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.comm	_IWL_MVM_INVALID_STA,4,2        ## @IWL_MVM_INVALID_STA
	.no_dead_strip	_iwl_mvm_find_free_sta_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_find_free_sta_id
_iwl_mvm_find_free_sta_id:              ; @iwl_mvm_find_free_sta_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _IWL_MVM_STATION_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MVM_STATION_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #32
	cset	w0, gt
	bl	_BUILD_BUG_ON
Lloh3:
	adrp	x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_MVM_STATUS_IN_HW_RESTART@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_test_bit
	bl	_WARN_ON_ONCE
	mov	x0, x19
	bl	_lockdep_assert_held
Lloh6:
	adrp	x8, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	bl	_BIT
	mov	x20, x0
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w20
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19, #8]
	ldr	w22, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_lockdep_is_held
	mov	x1, x0
	mov	x0, x22
	bl	_rcu_dereference_protected
	cbnz	w0, LBB0_5
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _IWL_MVM_INVALID_STA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IWL_MVM_INVALID_STA@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MVM_STATION_COUNT,4,2      ; @IWL_MVM_STATION_COUNT
	.comm	_IWL_MVM_STATUS_IN_HW_RESTART,4,2 ; @IWL_MVM_STATUS_IN_HW_RESTART
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.comm	_IWL_MVM_INVALID_STA,4,2        ; @IWL_MVM_INVALID_STA
	.no_dead_strip	_iwl_mvm_find_free_sta_id
.subsections_via_symbols
