	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_set_key
_ath10k_set_key:                        ## @ath10k_set_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r13d
	movq	(%r8), %rcx
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	sete	%bl
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	sete	%al
	movq	_WLAN_CIPHER_SUITE_AES_CMAC@GOTPCREL(%rip), %rsi
	movl	$1, %r15d
	cmpq	(%rsi), %rcx
	je	LBB0_33
## %bb.1:
	movq	_WLAN_CIPHER_SUITE_BIP_GMAC_128@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_33
## %bb.2:
	movq	_WLAN_CIPHER_SUITE_BIP_GMAC_256@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_33
## %bb.3:
	movq	_WLAN_CIPHER_SUITE_BIP_CMAC_256@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	je	LBB0_33
## %bb.4:
	movq	24(%rdx), %rsi
	cmpq	$0, 24(%rsi)
	jne	LBB0_33
## %bb.5:
	movq	%r8, %r12
	movq	8(%r8), %r8
	movq	_WMI_MAX_KEY_INDEX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r8
	jbe	LBB0_7
## %bb.6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_33
LBB0_7:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	orb	%al, %bl
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	%r14, %rax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_9:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rax
	movq	_WMI_VDEV_TYPE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_11
## %bb.10:
	addq	$16, %rax
	jmp	LBB0_12
LBB0_11:
	addq	$8, %rax
LBB0_12:
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, 16(%r12)
	testb	%cl, %cl
	je	LBB0_14
## %bb.13:
	movq	_SET_KEY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	%r13d, (%rcx)
	movq	16(%rsi), %rcx
	cmoveq	%r12, %rdx
	movq	%rdx, (%rcx,%rax,8)
LBB0_14:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	movq	%rsi, %r13
	callq	_spin_lock_bh
	movl	12(%r13), %esi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_ath10k_peer_find
	movq	%rax, %r15
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testq	%r15, %r15
	je	LBB0_17
## %bb.15:
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r12)
	jne	LBB0_19
## %bb.16:
	movq	_WMI_KEY_GROUP@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	_SET_KEY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_32
## %bb.18:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_32
LBB0_19:
	movq	_WMI_KEY_PAIRWISE@GOTPCREL(%rip), %rax
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rax), %ebx
	testb	%cl, %cl
	je	LBB0_29
## %bb.21:
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	%r12, %rsi
	callq	_ath10k_clear_vdev_key
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	movq	(%rdx), %rcx
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rdx
	movq	_SET_KEY@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_26
## %bb.24:
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_26
## %bb.25:
	movq	%r12, %rsi
	callq	_ath10k_mac_vif_update_wep_key
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%r15), %eax
LBB0_26:
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_29
## %bb.27:
	cmpl	$-1, 8(%rdi)
	jne	LBB0_29
## %bb.28:
	movq	_WMI_KEY_TX_USAGE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_29:
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_ath10k_install_key
	testl	%eax, %eax
	je	LBB0_34
## %bb.30:
	movl	%eax, %r15d
	setg	%al
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	12(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	%r15d, %r8d
LBB0_31:
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_32
LBB0_34:
	testq	%r14, %r14
	jne	LBB0_40
## %bb.35:
	xorb	$1, -41(%rbp)                   ## 1-byte Folded Spill
	jne	LBB0_40
## %bb.36:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.37:
	movq	_WMI_KEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	notl	%r8d
	andl	%ebx, %r8d
	movq	_WMI_KEY_PAIRWISE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	_ath10k_install_key
	testl	%eax, %eax
	je	LBB0_40
## %bb.38:
	movl	%eax, %r15d
	setg	%al
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	12(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_ath10k_install_key
	testl	%eax, %eax
	je	LBB0_32
## %bb.39:
	movl	%eax, %r12d
	setg	%al
	movzbl	%al, %edi
	callq	_WARN_ON
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	12(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rcx
	movl	%r12d, %r8d
	jmp	LBB0_31
LBB0_40:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_ath10k_set_key_h_def_keyidx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_bh
	movl	12(%r15), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_ath10k_peer_find
	testq	%rax, %rax
	setne	%cl
	je	LBB0_43
## %bb.41:
	movq	_SET_KEY@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jne	LBB0_43
## %bb.42:
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	%r12, (%rax,%rcx,8)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_43:
	movq	_DISABLE_KEY@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	sete	%dl
	andb	%dl, %cl
	cmpb	$1, %cl
	jne	LBB0_45
## %bb.44:
	movq	(%rax), %rax
	movq	8(%r12), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_47
LBB0_45:
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_47
## %bb.46:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_47:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_51
## %bb.48:
	cmpq	$0, 8(%rbx)
	je	LBB0_51
## %bb.49:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	movq	(%rbx), %rdx
	movq	_WMI_PEER_AUTHORIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_ath10k_wmi_peer_set_param
	jmp	LBB0_32
LBB0_51:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_32:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_33:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ## @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_WLAN_CIPHER_SUITE_BIP_GMAC_128,8,3 ## @WLAN_CIPHER_SUITE_BIP_GMAC_128
	.comm	_WLAN_CIPHER_SUITE_BIP_GMAC_256,8,3 ## @WLAN_CIPHER_SUITE_BIP_GMAC_256
	.comm	_WLAN_CIPHER_SUITE_BIP_CMAC_256,8,3 ## @WLAN_CIPHER_SUITE_BIP_CMAC_256
	.comm	_WMI_MAX_KEY_INDEX,8,3          ## @WMI_MAX_KEY_INDEX
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_WMI_VDEV_TYPE_STA,8,3          ## @WMI_VDEV_TYPE_STA
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to install key for non-existent peer %pM\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_WMI_KEY_PAIRWISE,4,2           ## @WMI_KEY_PAIRWISE
	.comm	_WMI_KEY_GROUP,4,2              ## @WMI_KEY_GROUP
	.comm	_DISABLE_KEY,4,2                ## @DISABLE_KEY
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_WMI_KEY_TX_USAGE,4,2           ## @WMI_KEY_TX_USAGE
L_.str.1:                               ## @.str.1
	.asciz	"failed to install key for vdev %i peer %pM: %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
L_.str.2:                               ## @.str.2
	.asciz	"failed to install (ucast) key for vdev %i peer %pM: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to disable (mcast) key for vdev %i peer %pM: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Peer %pM disappeared!\n"

	.comm	_WMI_PEER_AUTHORIZE,4,2         ## @WMI_PEER_AUTHORIZE
	.no_dead_strip	_ath10k_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_set_key
_ath10k_set_key:                        ; @ath10k_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x4]
Lloh0:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w23, eq
Lloh6:
	adrp	x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_AES_CMAC@GOTPAGEOFF]
Lloh8:
	adrp	x10, _WLAN_CIPHER_SUITE_BIP_GMAC_128@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_BIP_GMAC_128@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _WLAN_CIPHER_SUITE_BIP_GMAC_256@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WLAN_CIPHER_SUITE_BIP_GMAC_256@GOTPAGEOFF]
Lloh14:
	adrp	x12, _WLAN_CIPHER_SUITE_BIP_CMAC_256@GOTPAGE
Lloh15:
	ldr	x12, [x12, _WLAN_CIPHER_SUITE_BIP_CMAC_256@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
Lloh17:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x26, x2
	ldr	x20, [x2, #24]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w26, #1
LBB0_3:
	mov	x0, x26
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	mov	x22, x4
	ldr	x8, [x4, #8]
Lloh18:
	adrp	x9, _WMI_MAX_KEY_INDEX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WMI_MAX_KEY_INDEX@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ls	LBB0_6
; %bb.5:
Lloh21:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_3
LBB0_6:
	mov	x21, x3
	mov	x24, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
	cbz	x21, LBB0_8
; %bb.7:
	mov	x8, x21
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x8, _WMI_VDEV_TYPE_STA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WMI_VDEV_TYPE_STA@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh26:
	ldr	x8, [x8]
	add	x10, x26, #8
	add	x11, x26, #16
	cmp	x9, x8
	csel	x8, x10, x11, ne
LBB0_9:
	ldr	x28, [x8]
	ldr	x8, [x22, #8]
	str	x8, [x22, #16]
	cbz	w23, LBB0_11
; %bb.10:
Lloh27:
	adrp	x9, _SET_KEY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SET_KEY@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	ldr	x10, [x20, #16]
	cmp	w9, w24
	csel	x9, x22, xzr, eq
	str	x9, [x10, x8, lsl #3]
LBB0_11:
	add	x25, x19, #4
	mov	x0, x25
	bl	_spin_lock_bh
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	x2, x28
	bl	_ath10k_peer_find
	mov	x27, x0
	mov	x0, x25
	bl	_spin_unlock_bh
	cbz	x27, LBB0_21
; %bb.12:
	ldr	w8, [x22, #24]
Lloh30:
	adrp	x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh32:
	adrp	x11, _WMI_KEY_GROUP@GOTPAGE
Lloh33:
	ldr	x11, [x11, _WMI_KEY_GROUP@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _WMI_KEY_PAIRWISE@GOTPAGE
Lloh36:
	ldr	x10, [x10, _WMI_KEY_PAIRWISE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w27, [x8]
	cbz	w23, LBB0_24
; %bb.13:
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
Lloh37:
	adrp	x8, _DISABLE_KEY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DISABLE_KEY@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_clear_vdev_key
LBB0_15:
Lloh40:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh42:
	ldr	x10, [x8]
Lloh43:
	adrp	x28, _SET_KEY@GOTPAGE
Lloh44:
	ldr	x28, [x28, _SET_KEY@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.16:
	cmp	w8, w24
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x22
	bl	_ath10k_mac_vif_update_wep_key
	ldr	w8, [x28]
LBB0_18:
	cmp	w8, w24
	b.ne	LBB0_23
; %bb.19:
	ldr	w8, [x20, #8]
	cmn	w8, #1
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
	b.ne	LBB0_24
; %bb.20:
Lloh45:
	adrp	x8, _WMI_KEY_TX_USAGE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WMI_KEY_TX_USAGE@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	orr	w27, w8, w27
	b	LBB0_24
LBB0_21:
Lloh48:
	adrp	x8, _SET_KEY@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SET_KEY@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_42
; %bb.22:
Lloh51:
	adrp	x1, l_.str@PAGE
Lloh52:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x28
	bl	_ath10k_warn
Lloh53:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_43
LBB0_23:
	ldr	x28, [sp, #24]                  ; 8-byte Folded Reload
LBB0_24:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	mov	x3, x28
	mov	x4, x27
	bl	_ath10k_install_key
	mov	x8, x27
	mov	x27, x28
	cbz	w0, LBB0_26
; %bb.25:
	mov	x28, x0
	cmp	w0, #0
	cset	w0, gt
	bl	_WARN_ON
	ldrsw	x2, [x20, #12]
	stp	x27, x28, [sp]
Lloh56:
	adrp	x1, l_.str.1@PAGE
Lloh57:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	mov	x26, x28
	b	LBB0_43
LBB0_26:
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	cbnz	x21, LBB0_32
; %bb.27:
	eor	w8, w23, #0x1
	tbnz	w8, #0, LBB0_32
; %bb.28:
	ldr	x8, [x26]
Lloh58:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh59:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.29:
Lloh61:
	adrp	x8, _WMI_KEY_GROUP@GOTPAGE
Lloh62:
	ldr	x8, [x8, _WMI_KEY_GROUP@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	bic	w8, w9, w8
Lloh64:
	adrp	x9, _WMI_KEY_PAIRWISE@GOTPAGE
Lloh65:
	ldr	x9, [x9, _WMI_KEY_PAIRWISE@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w4, w8, w9
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	mov	x3, x27
	bl	_ath10k_install_key
	cbz	w0, LBB0_32
; %bb.30:
	mov	x26, x0
	cmp	w0, #0
	cset	w0, gt
	bl	_WARN_ON
	ldrsw	x2, [x20, #12]
	stp	x27, x26, [sp]
Lloh67:
	adrp	x1, l_.str.2@PAGE
Lloh68:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh69:
	adrp	x8, _DISABLE_KEY@GOTPAGE
Lloh70:
	ldr	x8, [x8, _DISABLE_KEY@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x27
	ldr	w4, [sp, #24]                   ; 4-byte Folded Reload
	bl	_ath10k_install_key
	cbz	w0, LBB0_43
; %bb.31:
	mov	x21, x0
	cmp	w0, #0
	cset	w0, gt
	bl	_WARN_ON
	ldrsw	x2, [x20, #12]
	stp	x27, x21, [sp]
Lloh72:
	adrp	x1, l_.str.3@PAGE
Lloh73:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_43
LBB0_32:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x22
	bl	_ath10k_set_key_h_def_keyidx
	mov	x0, x25
	bl	_spin_lock_bh
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	x2, x27
	bl	_ath10k_peer_find
	cmp	x0, #0
	cset	w8, ne
	cbz	x0, LBB0_35
; %bb.33:
Lloh74:
	adrp	x9, _SET_KEY@GOTPAGE
Lloh75:
	ldr	x9, [x9, _SET_KEY@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	cmp	w9, w24
	b.ne	LBB0_35
; %bb.34:
	ldr	x8, [x0]
	ldr	x9, [x22, #8]
	str	x22, [x8, x9, lsl #3]
	b	LBB0_39
LBB0_35:
Lloh77:
	adrp	x9, _DISABLE_KEY@GOTPAGE
Lloh78:
	ldr	x9, [x9, _DISABLE_KEY@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	cmp	w9, w24
	cset	w9, eq
	and	w8, w8, w9
	cmp	w8, #1
	b.ne	LBB0_37
; %bb.36:
	ldr	x8, [x0]
	ldr	x9, [x22, #8]
	str	xzr, [x8, x9, lsl #3]
	b	LBB0_39
LBB0_37:
	cbnz	x0, LBB0_39
; %bb.38:
Lloh80:
	adrp	x1, l_.str.4@PAGE
Lloh81:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x27
	bl	_ath10k_warn
LBB0_39:
	mov	x0, x25
	bl	_spin_unlock_bh
	cbz	x21, LBB0_42
; %bb.40:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_42
; %bb.41:
	ldr	w1, [x20, #12]
	ldr	x2, [x21]
Lloh82:
	adrp	x8, _WMI_PEER_AUTHORIZE@GOTPAGE
Lloh83:
	ldr	x8, [x8, _WMI_PEER_AUTHORIZE@GOTPAGEOFF]
Lloh84:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #1
	bl	_ath10k_wmi_peer_set_param
LBB0_42:
	mov	w26, #0
LBB0_43:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_WLAN_CIPHER_SUITE_AES_CMAC,8,3 ; @WLAN_CIPHER_SUITE_AES_CMAC
	.comm	_WLAN_CIPHER_SUITE_BIP_GMAC_128,8,3 ; @WLAN_CIPHER_SUITE_BIP_GMAC_128
	.comm	_WLAN_CIPHER_SUITE_BIP_GMAC_256,8,3 ; @WLAN_CIPHER_SUITE_BIP_GMAC_256
	.comm	_WLAN_CIPHER_SUITE_BIP_CMAC_256,8,3 ; @WLAN_CIPHER_SUITE_BIP_CMAC_256
	.comm	_WMI_MAX_KEY_INDEX,8,3          ; @WMI_MAX_KEY_INDEX
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_WMI_VDEV_TYPE_STA,8,3          ; @WMI_VDEV_TYPE_STA
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to install key for non-existent peer %pM\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_WMI_KEY_PAIRWISE,4,2           ; @WMI_KEY_PAIRWISE
	.comm	_WMI_KEY_GROUP,4,2              ; @WMI_KEY_GROUP
	.comm	_DISABLE_KEY,4,2                ; @DISABLE_KEY
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_WMI_KEY_TX_USAGE,4,2           ; @WMI_KEY_TX_USAGE
l_.str.1:                               ; @.str.1
	.asciz	"failed to install key for vdev %i peer %pM: %d\n"

	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
l_.str.2:                               ; @.str.2
	.asciz	"failed to install (ucast) key for vdev %i peer %pM: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to disable (mcast) key for vdev %i peer %pM: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Peer %pM disappeared!\n"

	.comm	_WMI_PEER_AUTHORIZE,4,2         ; @WMI_PEER_AUTHORIZE
	.no_dead_strip	_ath10k_set_key
.subsections_via_symbols
