	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1271_ap_init_null_template
_wl1271_ap_init_null_template:          ## @wl1271_ap_init_null_template
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_wl12xx_vif_to_data
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_IEEE80211_FTYPE_DATA@GOTPCREL(%rip), %rax
	movq	_IEEE80211_STYPE_NULLFUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, 8(%r13)
	movl	4(%r13), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%r13), %edi
	movl	(%r12), %esi
	movl	(%rbx), %edx
	callq	_memcpy
	movl	4(%r15), %esi
	movq	%r14, %rdi
	callq	_wl1271_tx_min_rate_get
	movl	(%r15), %esi
	movq	_CMD_TEMPL_NULL_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	$12, %r8d
	xorl	%r9d, %r9d
	callq	_wl1271_cmd_template_set
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_FTYPE_DATA,4,2       ## @IEEE80211_FTYPE_DATA
	.comm	_IEEE80211_STYPE_NULLFUNC,4,2   ## @IEEE80211_STYPE_NULLFUNC
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ## @IEEE80211_FCTL_FROMDS
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_CMD_TEMPL_NULL_DATA,4,2        ## @CMD_TEMPL_NULL_DATA
	.no_dead_strip	_wl1271_ap_init_null_template
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1271_ap_init_null_template
_wl1271_ap_init_null_template:          ; @wl1271_ap_init_null_template
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_wl12xx_vif_to_data
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IEEE80211_FTYPE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FTYPE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IEEE80211_STYPE_NULLFUNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_STYPE_NULLFUNC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IEEE80211_FCTL_FROMDS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_FCTL_FROMDS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	w0, [x19, #8]
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
Lloh12:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_memcpy
	ldr	w0, [x19]
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_memcpy
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_wl1271_tx_min_rate_get
	mov	x6, x0
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _CMD_TEMPL_NULL_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMD_TEMPL_NULL_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	mov	w4, #12
	mov	w5, #0
	bl	_wl1271_cmd_template_set
	mov	x20, x0
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_FTYPE_DATA,4,2       ; @IEEE80211_FTYPE_DATA
	.comm	_IEEE80211_STYPE_NULLFUNC,4,2   ; @IEEE80211_STYPE_NULLFUNC
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ; @IEEE80211_FCTL_FROMDS
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_CMD_TEMPL_NULL_DATA,4,2        ; @CMD_TEMPL_NULL_DATA
	.no_dead_strip	_wl1271_ap_init_null_template
.subsections_via_symbols
