	.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_peer_assoc
_ath10k_wmi_tlv_op_gen_peer_assoc:      ## @ath10k_wmi_tlv_op_gen_peer_assoc
	.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
	cmpl	$17, (%rsi)
	jge	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	72(%rsi), %edi
	movq	_MAX_SUPPORTED_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	jg	LBB0_1
## %bb.4:
	cmpl	%eax, 64(%rbx)
	jle	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	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
LBB0_5:
	movl	$4, %esi
	callq	_roundup
	movq	%rax, %r13
	movl	64(%rbx), %edi
	movl	$4, %esi
	callq	_roundup
	movq	%rax, %r15
	leaq	(%rax,%r13), %rsi
	addq	$256, %rsi                      ## imm = 0x100
	movq	%r14, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%r15)
	movl	$128, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r15)
	movq	(%r15), %r12
	movl	4(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 120(%r12)
	xorl	%edi, %edi
	cmpq	$0, 88(%rbx)
	sete	%dil
	callq	___cpu_to_le32
	movq	%rax, 112(%r12)
	movl	8(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 104(%r12)
	movl	12(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 96(%r12)
	movl	16(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 88(%r12)
	movl	20(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 80(%r12)
	movl	24(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 72(%r12)
	movl	28(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%r12)
	movl	(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%r12)
	movl	32(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%r12)
	movl	36(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%r12)
	movl	40(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 32(%r12)
	movl	44(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r12)
	movl	72(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r12)
	movl	64(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r12)
	movl	(%r12), %edi
	movl	80(%rbx), %esi
	callq	_ether_addr_copy
	movq	_WMI_TLV_TAG_ARRAY_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 168(%r15)
	movl	%r13d, %edi
	callq	___cpu_to_le16
	movq	%rax, 160(%r15)
	movq	152(%r15), %rdi
	movl	72(%rbx), %edx
	movl	76(%rbx), %esi
	callq	_memcpy
	movq	%r13, %r12
	addq	%r15, %r12
	movq	_WMI_TLV_TAG_ARRAY_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 192(%r15,%r13)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edi
	callq	___cpu_to_le16
	movq	%rax, 184(%r15,%r13)
	movq	176(%r15,%r13), %rdi
	movl	64(%rbx), %edx
	movl	68(%rbx), %esi
	callq	_memcpy
	movq	_WMI_TLV_TAG_STRUCT_VHT_RATE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 216(%r14,%r12)
	movl	$32, %edi
	callq	___cpu_to_le16
	movq	%rax, 208(%r14,%r12)
	movq	200(%r14,%r12), %r15
	movl	48(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 24(%r15)
	movl	52(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%r15)
	movl	56(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%r15)
	movl	60(%rbx), %edi
	callq	___cpu_to_le32
	movq	%rax, (%r15)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_SUPPORTED_RATES,4,2        ## @MAX_SUPPORTED_RATES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,4,2     ## @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_WMI_TLV_TAG_STRUCT_VHT_RATE_SET,4,2 ## @WMI_TLV_TAG_STRUCT_VHT_RATE_SET
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv peer assoc\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_peer_assoc
.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_peer_assoc
_ath10k_wmi_tlv_op_gen_peer_assoc:      ; @ath10k_wmi_tlv_op_gen_peer_assoc
	.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
	ldr	w8, [x1]
	cmp	w8, #17
	b.ge	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #72]
Lloh0:
	adrp	x8, _MAX_SUPPORTED_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_SUPPORTED_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.2:
	ldr	w9, [x20, #64]
	cmp	w9, w8
	b.le	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	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
LBB0_5:
	mov	w1, #4
	bl	_roundup
	mov	x23, x0
	ldr	w0, [x20, #64]
	mov	w1, #4
	bl	_roundup
	mov	x22, x0
	add	x8, x23, x0
	add	x1, x8, #256
	mov	x0, x19
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x24, [x0]
Lloh5:
	adrp	x8, _WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x24, #16]
	mov	w0, #128
	bl	___cpu_to_le16
	str	x0, [x24, #8]
	ldr	x25, [x24]
	ldr	w0, [x20, #4]
	bl	___cpu_to_le32
	str	x0, [x25, #120]
	ldr	x8, [x20, #88]
	cmp	x8, #0
	cset	w0, eq
	bl	___cpu_to_le32
	str	x0, [x25, #112]
	ldr	w0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x25, #104]
	ldr	w0, [x20, #12]
	bl	___cpu_to_le32
	str	x0, [x25, #96]
	ldr	w0, [x20, #16]
	bl	___cpu_to_le32
	str	x0, [x25, #88]
	ldr	w0, [x20, #20]
	bl	___cpu_to_le32
	str	x0, [x25, #80]
	ldr	w0, [x20, #24]
	bl	___cpu_to_le32
	str	x0, [x25, #72]
	ldr	w0, [x20, #28]
	bl	___cpu_to_le32
	str	x0, [x25, #64]
	ldr	w0, [x20]
	bl	___cpu_to_le32
	str	x0, [x25, #56]
	ldr	w0, [x20, #32]
	bl	___cpu_to_le32
	str	x0, [x25, #48]
	ldr	w0, [x20, #36]
	bl	___cpu_to_le32
	str	x0, [x25, #40]
	ldr	w0, [x20, #40]
	bl	___cpu_to_le32
	str	x0, [x25, #32]
	ldr	w0, [x20, #44]
	bl	___cpu_to_le32
	str	x0, [x25, #24]
	ldr	w0, [x20, #72]
	bl	___cpu_to_le32
	str	x0, [x25, #16]
	ldr	w0, [x20, #64]
	bl	___cpu_to_le32
	str	x0, [x25, #8]
	ldr	w0, [x25]
	ldr	w1, [x20, #80]
	bl	_ether_addr_copy
Lloh8:
	adrp	x25, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	___cpu_to_le16
	str	x0, [x24, #168]
	mov	x0, x23
	bl	___cpu_to_le16
	str	x0, [x24, #160]
	ldr	x0, [x24, #152]
	ldp	w2, w1, [x20, #72]
	bl	_memcpy
	add	x23, x24, x23
	ldr	w0, [x25]
	bl	___cpu_to_le16
	str	x0, [x23, #192]
	mov	x0, x22
	bl	___cpu_to_le16
	ldr	x8, [x23, #176]!
	str	x0, [x23, #8]
	ldp	w2, w1, [x20, #64]
	mov	x0, x8
	bl	_memcpy
	add	x22, x23, x22
Lloh10:
	adrp	x8, _WMI_TLV_TAG_STRUCT_VHT_RATE_SET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_VHT_RATE_SET@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x22, #40]
	mov	w0, #32
	bl	___cpu_to_le16
	str	x0, [x22, #32]
	ldr	x22, [x22, #24]
	ldr	w0, [x20, #48]
	bl	___cpu_to_le32
	str	x0, [x22, #24]
	ldr	w0, [x20, #52]
	bl	___cpu_to_le32
	str	x0, [x22, #16]
	ldr	w0, [x20, #56]
	bl	___cpu_to_le32
	str	x0, [x22, #8]
	ldr	w0, [x20, #60]
	bl	___cpu_to_le32
	str	x0, [x22]
Lloh13:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x21
	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_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_SUPPORTED_RATES,4,2        ; @MAX_SUPPORTED_RATES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_PEER_ASSOC_COMPLETE_CMD
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,4,2     ; @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_WMI_TLV_TAG_STRUCT_VHT_RATE_SET,4,2 ; @WMI_TLV_TAG_STRUCT_VHT_RATE_SET
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv peer assoc\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_peer_assoc
.subsections_via_symbols
