	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_get_bss_vif            ## -- Begin function iwl_mvm_get_bss_vif
	.p2align	4, 0x90
_iwl_mvm_get_bss_vif:                   ## @iwl_mvm_get_bss_vif
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -32(%rbp)
	movl	(%rdi), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_bss_iface_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	cmpq	$0, -24(%rbp)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	jmp	LBB0_3
LBB0_2:
	movq	-32(%rbp), %rax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_bss_iface_iterator,4,2 ## @iwl_mvm_bss_iface_iterator
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than one managed interface active!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_get_bss_vif            ; -- Begin function iwl_mvm_get_bss_vif
	.p2align	2
_iwl_mvm_get_bss_vif:                   ; @iwl_mvm_get_bss_vif
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	xzr, xzr, [sp]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _iwl_mvm_bss_iface_iterator@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iwl_mvm_bss_iface_iterator@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_ieee80211_iterate_active_interfaces_atomic
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_bss_iface_iterator,4,2 ; @iwl_mvm_bss_iface_iterator
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than one managed interface active!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
