	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_send_key
_ath10k_send_key:                       ## @ath10k_send_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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	$0, -80(%rbp)
	movq	8(%rsi), %rax
	movq	%rax, -72(%rbp)
	movq	%rcx, -56(%rbp)
	movl	%r8d, -48(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -44(%rbp)
	movl	20(%rsi), %eax
	movl	%eax, -40(%rbp)
	movl	8(%rdi), %eax
	movl	%eax, -36(%rbp)
	leaq	12(%r12), %rdi
	callq	_lockdep_assert_held
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$10, %eax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_3:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_WEP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_6:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_AES_GCM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ath10k_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_2:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_TKIP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, -80(%rbp)
	jmp	LBB0_11
LBB0_5:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_AES_CCM@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
LBB0_11:
	movq	_ATH10K_FLAG_RAW_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_13:
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_15
## %bb.14:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
LBB0_15:
	movq	(%r14), %rdi
	leaq	-80(%rbp), %rsi
	callq	_ath10k_wmi_vdev_install_key
LBB0_16:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	(%r12), %rax
	movq	_WMI_CIPHER_AES_CCM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movq	_IEEE80211_KEY_FLAG_GENERATE_IV_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_WMI_CIPHER_AES_CCM,8,3         ## @WMI_CIPHER_AES_CCM
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV_MGMT,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV_MGMT
	.comm	_WMI_CIPHER_TKIP,8,3            ## @WMI_CIPHER_TKIP
	.comm	_WMI_CIPHER_WEP,8,3             ## @WMI_CIPHER_WEP
	.comm	_WMI_CIPHER_AES_GCM,8,3         ## @WMI_CIPHER_AES_GCM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cipher %d is not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ATH10K_FLAG_RAW_MODE,4,2       ## @ATH10K_FLAG_RAW_MODE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ## @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_DISABLE_KEY,4,2                ## @DISABLE_KEY
	.comm	_WMI_CIPHER_NONE,8,3            ## @WMI_CIPHER_NONE
	.no_dead_strip	_ath10k_send_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_send_key
_ath10k_send_key:                       ; @ath10k_send_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x8, [x1, #8]
	stp	xzr, x8, [sp]
	str	x3, [sp, #24]
	str	w4, [sp, #32]
	ldr	d0, [x1, #16]
	stur	d0, [sp, #36]
	ldr	w8, [x0, #8]
	str	w8, [sp, #44]
	add	x0, x20, #12
	bl	_lockdep_assert_held
	ldr	w2, [x22]
	sub	w8, w2, #128
	cmp	w8, #10
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20]
Lloh4:
	adrp	x9, _WMI_CIPHER_WEP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WMI_CIPHER_WEP@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _WMI_CIPHER_AES_GCM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WMI_CIPHER_AES_GCM@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath10k_warn
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_7:
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _WMI_CIPHER_TKIP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WMI_CIPHER_TKIP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #16]
	movi.2s	v0, #8
	str	d0, [sp]
	b	LBB0_10
LBB0_8:
	ldr	x8, [x20]
Lloh15:
	adrp	x9, _WMI_CIPHER_AES_CCM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WMI_CIPHER_AES_CCM@GOTPAGEOFF]
LBB0_9:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #16]
LBB0_10:
Lloh17:
	adrp	x8, _ATH10K_FLAG_RAW_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ATH10K_FLAG_RAW_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x20, #8
	bl	_test_bit
	cbz	x0, LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_GENERATE_IV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
LBB0_12:
Lloh23:
	adrp	x8, _DISABLE_KEY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DISABLE_KEY@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_14
; %bb.13:
Lloh26:
	adrp	x8, _WMI_CIPHER_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WMI_CIPHER_NONE@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh28:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [sp, #16]
	str	xzr, [sp, #8]
LBB0_14:
	ldr	x0, [x19]
	mov	x1, sp
	bl	_ath10k_wmi_vdev_install_key
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
	ldr	x8, [x20]
Lloh29:
	adrp	x9, _WMI_CIPHER_AES_CCM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _WMI_CIPHER_AES_CCM@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #16]
Lloh32:
	adrp	x8, _IEEE80211_KEY_FLAG_GENERATE_IV_MGMT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_KEY_FLAG_GENERATE_IV_MGMT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #4]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_WMI_CIPHER_AES_CCM,8,3         ; @WMI_CIPHER_AES_CCM
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV_MGMT,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV_MGMT
	.comm	_WMI_CIPHER_TKIP,8,3            ; @WMI_CIPHER_TKIP
	.comm	_WMI_CIPHER_WEP,8,3             ; @WMI_CIPHER_WEP
	.comm	_WMI_CIPHER_AES_GCM,8,3         ; @WMI_CIPHER_AES_GCM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cipher %d is not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ATH10K_FLAG_RAW_MODE,4,2       ; @ATH10K_FLAG_RAW_MODE
	.comm	_IEEE80211_KEY_FLAG_GENERATE_IV,4,2 ; @IEEE80211_KEY_FLAG_GENERATE_IV
	.comm	_DISABLE_KEY,4,2                ; @DISABLE_KEY
	.comm	_WMI_CIPHER_NONE,8,3            ; @WMI_CIPHER_NONE
	.no_dead_strip	_ath10k_send_key
.subsections_via_symbols
