	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_op_gen_vdev_install_key
_ath10k_wmi_op_gen_vdev_install_key:    ## @ath10k_wmi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_WMI_CIPHER_NONE@GOTPCREL(%rip), %rcx
	movq	(%rsi), %rdx
	movq	56(%rsi), %rax
	cmpq	(%rcx), %rdx
	jne	LBB0_4
## %bb.1:
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	8(%rbx), %rsi
	addq	$64, %rsi
	movq	%r14, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	(%rax), %r12
	movq	16(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 56(%r12)
	movq	24(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 48(%r12)
	movq	32(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 40(%r12)
	movq	(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 32(%r12)
	movq	8(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 24(%r12)
	movq	40(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 16(%r12)
	movq	48(%rbx), %rdi
	callq	___cpu_to_le32
	movq	%rax, 8(%r12)
	movl	64(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	movl	4(%r12), %edi
	callq	_ether_addr_copy
LBB0_9:
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:
	movl	(%r12), %edi
	movq	8(%rbx), %rdx
	callq	_memcpy
LBB0_11:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rcx
	movq	(%rbx), %r8
	movq	8(%rbx), %r9
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	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	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi vdev install key idx %d cipher %d len %d\n"

	.no_dead_strip	_ath10k_wmi_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_op_gen_vdev_install_key
_ath10k_wmi_op_gen_vdev_install_key:    ; @ath10k_wmi_op_gen_vdev_install_key
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x8, _WMI_CIPHER_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_CIPHER_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	x8, [x1, #56]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	cbz	x8, LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
	cbz	x8, LBB0_2
LBB0_4:
	ldr	x8, [x20, #8]
	add	x1, x8, #64
	mov	x0, x19
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_10
; %bb.5:
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x0, [x20, #16]
	bl	___cpu_to_le32
	str	x0, [x22, #56]
	ldr	x0, [x20, #24]
	bl	___cpu_to_le32
	str	x0, [x22, #48]
	ldr	x0, [x20, #32]
	bl	___cpu_to_le32
	str	x0, [x22, #40]
	ldr	x0, [x20]
	bl	___cpu_to_le32
	str	x0, [x22, #32]
	ldr	x0, [x20, #8]
	bl	___cpu_to_le32
	str	x0, [x22, #24]
	ldr	x0, [x20, #40]
	bl	___cpu_to_le32
	str	x0, [x22, #16]
	ldr	x0, [x20, #48]
	bl	___cpu_to_le32
	str	x0, [x22, #8]
	ldr	w1, [x20, #64]
	cbz	w1, LBB0_7
; %bb.6:
	ldr	w0, [x22, #4]
	bl	_ether_addr_copy
LBB0_7:
	ldr	x1, [x20, #56]
	cbz	x1, LBB0_9
; %bb.8:
	ldr	w0, [x22]
	ldr	x2, [x20, #8]
	bl	_memcpy
LBB0_9:
Lloh5:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x3, [x20, #24]
	ldp	x4, x5, [x20]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	x0, x21
	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:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_CIPHER_NONE,8,3            ; @WMI_CIPHER_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi vdev install key idx %d cipher %d len %d\n"

	.no_dead_strip	_ath10k_wmi_op_gen_vdev_install_key
.subsections_via_symbols
