	.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_tdls_peer_update
_ath10k_wmi_tlv_op_gen_tdls_peer_update: ## @ath10k_wmi_tlv_op_gen_tdls_peer_update
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdx), %eax
	leal	184(,%rax,4), %esi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%r14)
	movl	$24, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r14)
	movq	(%r14), %rbx
	movl	(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edi
	movl	8(%r15), %esi
	callq	_ether_addr_copy
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	callq	___cpu_to_le32
	movq	%rax, (%rbx)
	movq	_WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 64(%r14)
	movl	$88, %edi
	callq	___cpu_to_le16
	movq	%rax, 56(%r14)
	movq	48(%r14), %r15
	movl	48(%r13), %esi
	movl	52(%r13), %edi
	callq	_ath10k_wmi_tlv_prepare_peer_qos
	movl	%eax, %edi
	callq	___cpu_to_le32
	movq	%rax, 80(%r15)
	movl	4(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 72(%r15)
	movl	8(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%r15)
	movl	12(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%r15)
	movl	16(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%r15)
	movl	(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r15)
	movl	20(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 32(%r15)
	movq	_WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	movq	40(%r13), %rcx
	movq	24(%r15), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movslq	(%rax), %rdi
	cmpq	%rdi, %rsi
	jl	LBB0_3
LBB0_4:
	movl	24(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	movl	28(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r15)
	movl	32(%r13), %edi
	callq	___cpu_to_le32
	movq	%rax, (%r15)
	movq	_WMI_TLV_TAG_ARRAY_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 176(%r14)
	movl	(%r13), %edi
	shll	$2, %edi
	callq	___cpu_to_le16
	movq	%rax, 168(%r14)
	movl	(%r13), %r9d
	testl	%r9d, %r9d
	jle	LBB0_7
## %bb.5:
	addq	$200, %r14
	xorl	%ebx, %ebx
	movq	_WMI_TLV_TAG_STRUCT_CHANNEL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	___cpu_to_le16
	movq	%rax, (%r14)
	movl	$4, %edi
	callq	___cpu_to_le16
	movq	%rax, -8(%r14)
	movq	-16(%r14), %rdi
	movq	%r12, %rsi
	callq	_ath10k_wmi_put_wmi_channel
	incq	%rbx
	movslq	(%r13), %r9
	addq	$4, %r12
	addq	$28, %r14
	cmpq	%r9, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_ath10k_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES,4,2 ## @WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES
	.comm	_WMI_TDLS_MAX_SUPP_OPER_CLASSES,4,2 ## @WMI_TDLS_MAX_SUPP_OPER_CLASSES
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ## @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ## @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv tdls peer update vdev %i state %d n_chans %u\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_tdls_peer_update
.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_tdls_peer_update
_ath10k_wmi_tlv_op_gen_tdls_peer_update: ; @ath10k_wmi_tlv_op_gen_tdls_peer_update
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x2]
	lsl	w8, w8, #2
	add	w1, w8, #184
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x24, #16]
	mov	w0, #24
	bl	___cpu_to_le16
	str	x0, [x24, #8]
	ldr	x25, [x24]
	ldr	w0, [x21]
	bl	___cpu_to_le32
	str	x0, [x25, #16]
	ldr	w0, [x25, #8]
	ldr	w1, [x21, #8]
	bl	_ether_addr_copy
	ldr	w0, [x21, #4]
	bl	___cpu_to_le32
	str	x0, [x25]
Lloh3:
	adrp	x8, _WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x24, #64]
	mov	w0, #88
	bl	___cpu_to_le16
	str	x0, [x24, #56]
	ldr	x25, [x24, #48]
	ldp	w1, w0, [x23, #48]
	bl	_ath10k_wmi_tlv_prepare_peer_qos
	bl	___cpu_to_le32
	str	x0, [x25, #80]
	ldr	w0, [x23, #4]
	bl	___cpu_to_le32
	str	x0, [x25, #72]
	ldr	w0, [x23, #8]
	bl	___cpu_to_le32
	str	x0, [x25, #64]
	ldr	w0, [x23, #12]
	bl	___cpu_to_le32
	str	x0, [x25, #56]
	ldr	w0, [x23, #16]
	bl	___cpu_to_le32
	str	x0, [x25, #48]
	ldr	w0, [x23]
	bl	___cpu_to_le32
	str	x0, [x25, #40]
	ldr	w0, [x23, #20]
	bl	___cpu_to_le32
	str	x0, [x25, #32]
Lloh6:
	adrp	x8, _WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_TDLS_MAX_SUPP_OPER_CLASSES@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x9, #0
	ldr	x10, [x23, #40]
	ldr	x11, [x25, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x23, #24]
	bl	___cpu_to_le32
	str	x0, [x25, #16]
	ldr	w0, [x23, #28]
	bl	___cpu_to_le32
	str	x0, [x25, #8]
	ldr	w0, [x23, #32]
	bl	___cpu_to_le32
	str	x0, [x25]
Lloh8:
	adrp	x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_TLV_TAG_ARRAY_STRUCT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x24, #176]
	ldr	w8, [x23]
	lsl	w0, w8, #2
	bl	___cpu_to_le16
	str	x0, [x24, #168]
	ldr	w5, [x23]
	cmp	w5, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	add	x24, x24, #200
Lloh11:
	adrp	x26, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGE
Lloh12:
	ldr	x26, [x26, _WMI_TLV_TAG_STRUCT_CHANNEL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	___cpu_to_le16
	str	x0, [x24]
	mov	w0, #4
	bl	___cpu_to_le16
	stur	x0, [x24, #-8]
	ldur	x0, [x24, #-16]
	mov	x1, x22
	bl	_ath10k_wmi_put_wmi_channel
	add	x25, x25, #1
	ldrsw	x5, [x23]
	add	x22, x22, #4
	add	x24, x24, #28
	cmp	x25, x5
	b.lt	LBB0_6
LBB0_7:
Lloh13:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldp	w3, w4, [x21]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_ath10k_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_TDLS_PEER_UPDATE_CMD
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES,4,2 ; @WMI_TLV_TAG_STRUCT_TDLS_PEER_CAPABILITIES
	.comm	_WMI_TDLS_MAX_SUPP_OPER_CLASSES,4,2 ; @WMI_TDLS_MAX_SUPP_OPER_CLASSES
	.comm	_WMI_TLV_TAG_ARRAY_STRUCT,4,2   ; @WMI_TLV_TAG_ARRAY_STRUCT
	.comm	_WMI_TLV_TAG_STRUCT_CHANNEL,4,2 ; @WMI_TLV_TAG_STRUCT_CHANNEL
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv tdls peer update vdev %i state %d n_chans %u\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_tdls_peer_update
.subsections_via_symbols
