	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_init_vif_specific       ## -- Begin function wl1271_init_vif_specific
	.p2align	4, 0x90
_wl1271_init_vif_specific:              ## @wl1271_init_vif_specific
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %rbx
	movq	(%rax), %r12
	movq	_BSS_TYPE_AP_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	cmpq	%r13, %r12
	jne	LBB0_4
## %bb.2:
	movq	_WL1271_PSM_ELP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_wl1271_acx_sleep_auth
	testl	%eax, %eax
	js	LBB0_29
## %bb.3:
	movl	48(%r14), %eax
	orl	%eax, 52(%r14)
	movq	%r14, %rdi
	callq	_wl1271_event_unmask
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_29
LBB0_4:
	cmpq	$0, 8(%r14)
	jne	LBB0_11
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	cmpq	%r13, %r12
	je	LBB0_11
## %bb.7:
	movq	40(%r14), %rsi
	movq	_WL1271_PSM_ILLEGAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_9
## %bb.8:
	movq	_WL1271_PSM_ELP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_9:
	movq	%r14, %rdi
	callq	_wl1271_acx_sleep_auth
	testl	%eax, %eax
	js	LBB0_29
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	cmpq	%r13, %r12
	jne	LBB0_14
## %bb.12:
	callq	_wl1271_ap_hw_init
	testl	%eax, %eax
	js	LBB0_29
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_init_ap_role
	testl	%eax, %eax
	jns	LBB0_17
	jmp	LBB0_29
LBB0_14:
	callq	_wl1271_sta_hw_init
	testl	%eax, %eax
	js	LBB0_29
## %bb.15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_init_sta_role
	testl	%eax, %eax
	js	LBB0_29
LBB0_17:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_wl12xx_init_phy_vif_config
	movl	16(%r14), %eax
	xorl	%edi, %edi
	cmpl	20(%r14), %eax
	setne	%dil
	callq	_BUG_ON
	cmpl	$0, 16(%r14)
	jle	LBB0_22
## %bb.18:
	movl	$16, %r15d
	movl	$24, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movl	(%rax,%r15), %edx
	movl	-4(%rax,%r15), %ecx
	movl	-8(%rax,%r15), %r8d
	movl	-16(%rax,%r15), %r10d
	movl	-12(%rax,%r15), %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r14, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	pushq	%r10
	callq	_wl1271_acx_ac_cfg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	24(%rbx), %rax
	movl	(%rax,%r12), %edx
	movl	-4(%rax,%r12), %ecx
	movl	-8(%rax,%r12), %r8d
	movl	-12(%rax,%r12), %r9d
	movl	-16(%rax,%r12), %r10d
	movq	-24(%rax,%r12), %rax
	movl	(%rax), %r11d
	movl	4(%rax), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_wl1271_acx_tid_cfg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_29
## %bb.19:                              ##   in Loop: Header=BB0_20 Depth=1
	incq	%r13
	movslq	16(%rbx), %rax
	addq	$20, %r15
	addq	$32, %r12
	cmpq	%rax, %r13
	movq	%rbx, %r14
	jl	LBB0_20
LBB0_22:
	movq	%r14, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_wl1271_acx_feature_cfg
	testl	%eax, %eax
	js	LBB0_29
## %bb.23:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wl1271_ap_hw_init_post_mem
	jmp	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_wl1271_sta_hw_init_post_mem
LBB0_26:
	testl	%eax, %eax
	js	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl1271_set_ba_policies
	testl	%eax, %eax
	js	LBB0_29
## %bb.28:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wlcore_hw_init_vif
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ## @BSS_TYPE_AP_BSS
	.comm	_WL1271_PSM_ELP,8,3             ## @WL1271_PSM_ELP
	.comm	_WL1271_PSM_ILLEGAL,8,3         ## @WL1271_PSM_ILLEGAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1271_init_vif_specific       ; -- Begin function wl1271_init_vif_specific
	.p2align	2
_wl1271_init_vif_specific:              ; @wl1271_init_vif_specific
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _BSS_TYPE_AP_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_TYPE_AP_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	x8, [x19]
	cmp	x8, #0
	ccmp	x22, x23, #0, eq
	b.eq	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cmp	x9, #0
	ccmp	x8, #0, #0, eq
	ccmp	x22, x23, #4, eq
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x19, #40]
Lloh3:
	adrp	x9, _WL1271_PSM_ILLEGAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WL1271_PSM_ILLEGAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _WL1271_PSM_ELP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WL1271_PSM_ELP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x1, x10, x8, eq
	mov	x0, x19
	bl	_wl1271_acx_sleep_auth
	tbz	w0, #31, LBB0_5
	b	LBB0_22
LBB0_3:
Lloh9:
	adrp	x8, _WL1271_PSM_ELP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WL1271_PSM_ELP@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wl1271_acx_sleep_auth
	tbnz	w0, #31, LBB0_22
; %bb.4:
	ldp	w8, w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #52]
	mov	x0, x19
	bl	_wl1271_event_unmask
	tbnz	w0, #31, LBB0_22
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	cmp	x22, x23
	b.ne	LBB0_8
; %bb.6:
	bl	_wl1271_ap_hw_init
	tbnz	w0, #31, LBB0_22
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	bl	_wl12xx_init_ap_role
	tbz	w0, #31, LBB0_10
	b	LBB0_22
LBB0_8:
	bl	_wl1271_sta_hw_init
	tbnz	w0, #31, LBB0_22
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_wl12xx_init_sta_role
	tbnz	w0, #31, LBB0_22
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_wl12xx_init_phy_vif_config
	ldp	w8, w9, [x19, #16]
	cmp	w8, w9
	cset	w0, ne
	bl	_BUG_ON
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x24, #0
	mov	x25, #0
	mov	w26, #24
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x24
	ldp	w3, w2, [x8, #12]
	ldp	w5, w4, [x8, #4]
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_acx_ac_cfg
	tbnz	w0, #31, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19, #24]
	add	x8, x8, x26
	ldp	w3, w2, [x8, #-4]
	ldp	w5, w4, [x8, #-12]
	ldur	w6, [x8, #-16]
	ldur	x8, [x8, #-24]
	ldp	w7, w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_acx_tid_cfg
	tbnz	w0, #31, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #16]
	add	x24, x24, #20
	add	x26, x26, #32
	cmp	x25, x8
	b.lt	LBB0_12
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_acx_feature_cfg
	tbnz	w0, #31, LBB0_22
; %bb.16:
	mov	x0, x19
	mov	x1, x21
	cmp	x22, x23
	b.ne	LBB0_18
; %bb.17:
	bl	_wl1271_ap_hw_init_post_mem
	b	LBB0_19
LBB0_18:
	bl	_wl1271_sta_hw_init_post_mem
LBB0_19:
	tbnz	w0, #31, LBB0_22
; %bb.20:
	mov	x0, x19
	mov	x1, x20
	bl	_wl1271_set_ba_policies
	tbnz	w0, #31, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x20
	bl	_wlcore_hw_init_vif
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_AP_BSS,8,3            ; @BSS_TYPE_AP_BSS
	.comm	_WL1271_PSM_ELP,8,3             ; @WL1271_PSM_ELP
	.comm	_WL1271_PSM_ILLEGAL,8,3         ; @WL1271_PSM_ILLEGAL
.subsections_via_symbols
