	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_hw_init_templates_config ## -- Begin function wl1251_hw_init_templates_config
	.p2align	4, 0x90
_wl1251_hw_init_templates_config:       ## @wl1251_hw_init_templates_config
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_PARTIAL_VBM_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_CMD_PROBE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_CMD_NULL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_CMD_PS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	_CMD_QOS_NULL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movq	_CMD_PROBE_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movq	_CMD_BEACON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	callq	_wl1251_cmd_template_set
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	(%r15), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_TIM_ELE_ID@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_wl1251_cmd_vbm
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_wl1251_cmd_vbm
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PARTIAL_VBM_MAX,4,2            ## @PARTIAL_VBM_MAX
	.comm	_CMD_PROBE_REQ,4,2              ## @CMD_PROBE_REQ
	.comm	_CMD_NULL_DATA,4,2              ## @CMD_NULL_DATA
	.comm	_CMD_PS_POLL,4,2                ## @CMD_PS_POLL
	.comm	_CMD_QOS_NULL_DATA,4,2          ## @CMD_QOS_NULL_DATA
	.comm	_CMD_PROBE_RESP,4,2             ## @CMD_PROBE_RESP
	.comm	_CMD_BEACON,4,2                 ## @CMD_BEACON
	.comm	_TIM_ELE_ID,4,2                 ## @TIM_ELE_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_hw_init_templates_config ; -- Begin function wl1251_hw_init_templates_config
	.p2align	2
_wl1251_hw_init_templates_config:       ; @wl1251_hw_init_templates_config
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _PARTIAL_VBM_MAX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PARTIAL_VBM_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _CMD_PROBE_REQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_PROBE_REQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh10:
	adrp	x8, _CMD_NULL_DATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_NULL_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh13:
	adrp	x8, _CMD_PS_POLL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_PS_POLL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh16:
	adrp	x8, _CMD_QOS_NULL_DATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_QOS_NULL_DATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh19:
	adrp	x8, _CMD_PROBE_RESP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_PROBE_RESP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh22:
	adrp	x8, _CMD_BEACON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMD_BEACON@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #4
	bl	_wl1251_cmd_template_set
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh25:
	adrp	x22, _TIM_ELE_ID@GOTPAGE
Lloh26:
	ldr	x22, [x22, _TIM_ELE_ID@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w3, [x21]
	mov	x0, x19
	mov	x2, x20
	mov	w4, #0
	bl	_wl1251_cmd_vbm
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	mov	w4, #0
	bl	_wl1251_cmd_vbm
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	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
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PARTIAL_VBM_MAX,4,2            ; @PARTIAL_VBM_MAX
	.comm	_CMD_PROBE_REQ,4,2              ; @CMD_PROBE_REQ
	.comm	_CMD_NULL_DATA,4,2              ; @CMD_NULL_DATA
	.comm	_CMD_PS_POLL,4,2                ; @CMD_PS_POLL
	.comm	_CMD_QOS_NULL_DATA,4,2          ; @CMD_QOS_NULL_DATA
	.comm	_CMD_PROBE_RESP,4,2             ; @CMD_PROBE_RESP
	.comm	_CMD_BEACON,4,2                 ; @CMD_BEACON
	.comm	_TIM_ELE_ID,4,2                 ; @TIM_ELE_ID
.subsections_via_symbols
