	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_get_unused_priv_by_bss_type
_mwifiex_get_unused_priv_by_bss_type:   ## @mwifiex_get_unused_priv_by_bss_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %r8
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rbx,8), %rdx
	cmpq	%rdi, (%rdx)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rcx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	callq	_mwifiex_get_unused_bss_num
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, 8(%rcx)
	movq	(%r14), %rax
	cmpq	%rax, %rbx
	jae	LBB0_6
LBB0_8:
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ## @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_mwifiex_get_unused_priv_by_bss_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_get_unused_priv_by_bss_type
_mwifiex_get_unused_priv_by_bss_type:   ; @mwifiex_get_unused_priv_by_bss_type
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, #0
	ldr	x9, [x19, #8]
Lloh0:
	adrp	x10, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x20, lsl #3]
	ldr	x11, [x11]
	cmp	x11, x10
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x20, #0
	cmp	x20, x8
	b.lo	LBB0_7
LBB0_5:
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_mwifiex_get_unused_bss_num
	ldp	x8, x9, [x19]
	ldr	x9, [x9, x20, lsl #3]
	str	w0, [x9, #8]
	cmp	x20, x8
	b.hs	LBB0_5
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_UNSPECIFIED,8,3 ; @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_mwifiex_get_unused_priv_by_bss_type
.subsections_via_symbols
