	.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_vdev_install_key
_ath10k_wmi_tlv_op_gen_vdev_install_key: ## @ath10k_wmi_tlv_op_gen_vdev_install_key
	.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, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rcx
	movq	(%rdi), %rdx
	movq	_WMI_CIPHER_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	56(%rbx), %eax
	cmpq	(%rdx,%rsi,8), %rcx
	jne	LBB0_4
## %bb.1:
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_roundup
	movslq	%eax, %rsi
	addq	$112, %rsi
	movq	%r14, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	_WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 16(%r12)
	movl	$64, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%r12)
	movq	(%r12), %r13
	movq	16(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 56(%r13)
	movq	24(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 48(%r13)
	movq	32(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 40(%r13)
	movq	(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 32(%r13)
	movq	8(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 24(%r13)
	movq	40(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 16(%r13)
	movq	48(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 8(%r13)
	movl	60(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	movl	(%r13), %edi
	callq	_ether_addr_copy
LBB0_9:
	movq	_WMI_TLV_TAG_ARRAY_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, 104(%r12)
	movq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_roundup
	movl	%eax, %edi
	callq	___cpu_to_le16
	movq	%rax, 96(%r12)
	movl	56(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_11
## %bb.10:
	movq	88(%r12), %rdi
	movq	8(%rbx), %rdx
	callq	_memcpy
LBB0_11:
	movq	8(%rbx), %rdi
	movl	$4, %esi
	callq	_roundup
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_CIPHER_NONE,8,3            ## @WMI_CIPHER_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD
	.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 vdev install key\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_vdev_install_key
.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_vdev_install_key
_ath10k_wmi_tlv_op_gen_vdev_install_key: ; @ath10k_wmi_tlv_op_gen_vdev_install_key
	.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	x20, x1
	mov	x19, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _WMI_CIPHER_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_CIPHER_NONE@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	ldr	x8, [x8]
	ldr	x10, [x10, x8, lsl #3]
	ldr	w8, [x1, #56]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	cbz	w8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	cbz	w8, LBB0_2
LBB0_4:
	ldr	x0, [x20, #8]
	mov	w1, #4
	bl	_roundup
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x1, x8, #112
	mov	x0, x19
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x22, [x0]
Lloh5:
	adrp	x8, _WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x22, #16]
	mov	w0, #64
	bl	___cpu_to_le16
	str	x0, [x22, #8]
	ldr	x23, [x22]
	ldr	x0, [x20, #16]
	bl	___cpu_to_le32
	str	x0, [x23, #56]
	ldr	x0, [x20, #24]
	bl	___cpu_to_le32
	str	x0, [x23, #48]
	ldr	x0, [x20, #32]
	bl	___cpu_to_le32
	str	x0, [x23, #40]
	ldr	x0, [x20]
	bl	___cpu_to_le32
	str	x0, [x23, #32]
	ldr	x0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x23, #24]
	ldr	x0, [x20, #40]
	bl	___cpu_to_le32
	str	x0, [x23, #16]
	ldr	x0, [x20, #48]
	bl	___cpu_to_le32
	str	x0, [x23, #8]
	ldr	w1, [x20, #60]
	cbz	w1, LBB0_7
; %bb.6:
	ldr	w0, [x23]
	bl	_ether_addr_copy
LBB0_7:
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, #104]
	ldr	x0, [x20, #8]
	mov	w1, #4
	bl	_roundup
	bl	___cpu_to_le16
	str	x0, [x22, #96]
	ldr	w1, [x20, #56]
	cbz	w1, LBB0_9
; %bb.8:
	ldr	x0, [x22, #88]
	ldr	x2, [x20, #8]
	bl	_memcpy
LBB0_9:
	ldr	x0, [x20, #8]
	mov	w1, #4
	bl	_roundup
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, x19
	bl	_ath10k_dbg
	mov	x0, x21
	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
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_CIPHER_NONE,8,3            ; @WMI_CIPHER_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_VDEV_INSTALL_KEY_CMD
	.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 vdev install key\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_vdev_install_key
.subsections_via_symbols
