	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_op_gen_bcn_tmpl
_ath10k_wmi_tlv_op_gen_bcn_tmpl:        ## @ath10k_wmi_tlv_op_gen_bcn_tmpl
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	24(%rbp), %rax
	movq	16(%rbp), %r12
	movq	%rax, %r15
	testq	%rax, %rax
	setne	%al
	testq	%r12, %r12
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	$4, %esi
	callq	_roundup
	cltq
	movq	%r15, %r14
	leaq	(%r15,%rax), %rsi
	addq	$120, %rsi
	movq	%rbx, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%r15)
	movl	$24, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r15)
	movq	(%r15), %r13
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	___cpu_to_le32
	movq	%rax, 16(%r13)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	___cpu_to_le32
	movq	%rax, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	___cpu_to_le32
	movq	%rax, (%r13)
	movq	_WMI_TLV_TAG_STRUCT_BCN_PRB_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 64(%r15)
	leal	24(%r14), %edi
	callq	___cpu_to_le16
	movq	%rax, 56(%r15)
	movq	48(%r15), %rbx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	___cpu_to_le32
	movq	%rax, 16(%rbx)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	___cpu_to_le32
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movq	_WMI_TLV_TAG_ARRAY_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 112(%r15,%r14)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	movl	$4, %esi
	callq	_roundup
	movl	%eax, %edi
	callq	___cpu_to_le16
	movq	%rax, 104(%r15,%r14)
	movq	96(%r15,%r14), %rdi
	movq	(%rbx), %rdx
	movq	8(%rbx), %rsi
	callq	_memcpy
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_ath10k_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD
	.comm	_WMI_TLV_TAG_STRUCT_BCN_PRB_INFO,4,2 ## @WMI_TLV_TAG_STRUCT_BCN_PRB_INFO
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,4,2     ## @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv bcn tmpl vdev_id %i\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_bcn_tmpl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_tlv_op_gen_bcn_tmpl
_ath10k_wmi_tlv_op_gen_bcn_tmpl:        ; @ath10k_wmi_tlv_op_gen_bcn_tmpl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x21, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x6, #0
	ccmp	x7, #0, #4, eq
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_3:
	ldr	x0, [x21]
	mov	w1, #4
	bl	_roundup
	add	x8, x23, w0, sxtw
	add	x1, x8, #120
	mov	x0, x20
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x28, [x0, #8]
Lloh2:
	adrp	x8, _WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD@GOTPAGEOFF]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh4:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x28, #16]
	mov	w0, #24
	bl	___cpu_to_le16
	str	x0, [x28, #8]
	ldr	x22, [x28]
	mov	x0, x19
	bl	___cpu_to_le32
	str	x0, [x22, #16]
	mov	x0, x27
	bl	___cpu_to_le32
	str	x0, [x22, #8]
	ldr	x0, [x21]
	bl	___cpu_to_le32
	str	x0, [x22]
Lloh5:
	adrp	x8, _WMI_TLV_TAG_STRUCT_BCN_PRB_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_BCN_PRB_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x28, #64]
	add	w0, w23, #24
	bl	___cpu_to_le16
	str	x0, [x28, #56]
	ldr	x22, [x28, #48]
	mov	x0, x26
	bl	___cpu_to_le32
	str	x0, [x22, #16]
	mov	x0, x25
	bl	___cpu_to_le32
	str	x0, [x22, #8]
	ldr	x0, [x22]
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	add	x22, x28, x23
Lloh8:
	adrp	x8, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x22, #112]
	ldr	x0, [x21]
	mov	w1, #4
	bl	_roundup
	bl	___cpu_to_le16
	str	x0, [x22, #104]
	ldr	x0, [x22, #96]
	ldp	x2, x1, [x21]
	bl	_memcpy
Lloh11:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_ath10k_dbg
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_BCN_TMPL_CMD
	.comm	_WMI_TLV_TAG_STRUCT_BCN_PRB_INFO,4,2 ; @WMI_TLV_TAG_STRUCT_BCN_PRB_INFO
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,4,2     ; @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv bcn tmpl vdev_id %i\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_bcn_tmpl
.subsections_via_symbols
