	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_install_peer_wep_keys
_ath10k_install_peer_wep_keys:          ## @ath10k_install_peer_wep_keys
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	12(%r14), %rdi
	callq	_lockdep_assert_held
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	setne	%cl
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	8(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_ath10k_peer_find
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_23
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_19
## %bb.6:
	xorl	%r13d, %r13d
	movq	_SET_KEY@GOTPCREL(%rip), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r13
	jge	LBB0_19
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rdi
	movq	(%rdi,%r13,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$128, %eax
	jne	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rbx), %eax
	xorl	%r8d, %r8d
	cmpq	%rax, %r13
	jne	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_WMI_KEY_TX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_7:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	_WMI_KEY_PAIRWISE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	(%r14), %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %edx
	movq	_WMI_KEY_PAIRWISE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_ath10k_install_key
	testl	%eax, %eax
	js	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rsi
	movl	(%r14), %edx
	movq	_WMI_KEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_8:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rcx
	callq	_ath10k_install_key
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	24(%rbx), %rax
	movq	(%rax,%r13,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	24(%rbx), %rdi
	movq	_SET_KEY@GOTPCREL(%rip), %r14
	jmp	LBB0_10
LBB0_19:
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	cmpl	$129, (%rax)
	jne	LBB0_3
## %bb.20:
	movl	(%rbx), %ecx
	cmpl	$-1, %ecx
	je	LBB0_3
## %bb.21:
	movq	8(%rbx), %rdi
	movl	4(%rbx), %esi
	movq	(%rdi), %rax
	movl	(%rax), %edx
	callq	_ath10k_wmi_vdev_set_param
	testl	%eax, %eax
	je	LBB0_3
## %bb.22:
	movl	%eax, %r15d
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_ath10k_warn
	movl	%r15d, %r14d
	jmp	LBB0_3
LBB0_23:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_24:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_WMI_KEY_PAIRWISE,4,2           ## @WMI_KEY_PAIRWISE
	.comm	_WMI_KEY_TX_USAGE,4,2           ## @WMI_KEY_TX_USAGE
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.comm	_WMI_KEY_GROUP,4,2              ## @WMI_KEY_GROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to re-set def wpa key idxon vdev %i: %d\n"

	.no_dead_strip	_ath10k_install_peer_wep_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_install_peer_wep_keys
_ath10k_install_peer_wep_keys:          ; @ath10k_install_peer_wep_keys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	add	x0, x19, #12
	bl	_lockdep_assert_held
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	and	w9, w8, #0xfffffffe
	cmp	w9, #128
Lloh0:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_3:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	add	x22, x19, #8
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_peer_find
	mov	x23, x0
	mov	x0, x22
	bl	_spin_unlock_bh
	cbz	x23, LBB0_20
; %bb.5:
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x25, #0
Lloh5:
	adrp	x26, _SET_KEY@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SET_KEY@GOTPAGEOFF]
Lloh7:
	adrp	x27, _WMI_KEY_PAIRWISE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _WMI_KEY_PAIRWISE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _WMI_KEY_TX_USAGE@GOTPAGE
Lloh10:
	ldr	x28, [x28, _WMI_KEY_TX_USAGE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.ge	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #24]
	ldr	x1, [x0, x25, lsl #3]
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w8, #128
	b.ne	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x27]
	ldr	w9, [x20]
	ldr	w10, [x28]
	cmp	x25, x9
	csel	w9, w10, wzr, eq
	orr	w4, w9, w8
	ldr	w2, [x26]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x26]
	ldr	w4, [x27]
	mov	x0, x20
	mov	x3, x21
	bl	_ath10k_install_key
	tbnz	w0, #31, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #24]
	ldr	x1, [x8, x25, lsl #3]
	ldr	w2, [x26]
Lloh11:
	adrp	x8, _WMI_KEY_GROUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WMI_KEY_GROUP@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x3, x21
	bl	_ath10k_install_key
	tbnz	w0, #31, LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x20, #24]
	lsl	x9, x25, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x23]
	str	x8, [x10, x9]
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x0, [x20, #24]
	b	LBB0_7
LBB0_16:
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	cmp	w8, #129
	b.ne	LBB0_21
; %bb.17:
	ldr	w3, [x20]
	cmn	w3, #1
	b.eq	LBB0_21
; %bb.18:
	ldr	x0, [x20, #8]
	ldr	w1, [x20, #4]
	ldr	x8, [x0]
	ldr	w2, [x8]
	bl	_ath10k_wmi_vdev_set_param
	mov	x24, x0
	cbz	w0, LBB0_3
; %bb.19:
	ldr	w2, [x20, #4]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	bl	_ath10k_warn
	b	LBB0_3
LBB0_20:
Lloh16:
	adrp	x8, _ENOENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_2
LBB0_21:
	mov	w24, #0
	b	LBB0_3
LBB0_22:
	mov	x24, x0
	b	LBB0_3
LBB0_23:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_WMI_KEY_PAIRWISE,4,2           ; @WMI_KEY_PAIRWISE
	.comm	_WMI_KEY_TX_USAGE,4,2           ; @WMI_KEY_TX_USAGE
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.comm	_WMI_KEY_GROUP,4,2              ; @WMI_KEY_GROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to re-set def wpa key idxon vdev %i: %d\n"

	.no_dead_strip	_ath10k_install_peer_wep_keys
.subsections_via_symbols
