	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_set_key_h_def_keyidx
_ath10k_set_key_h_def_keyidx:           ## @ath10k_set_key_h_def_keyidx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %eax
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rsi
	movq	16(%rbx), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %edx
	movq	_WMI_VDEV_TYPE_AP@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_2
## %bb.1:
	movq	_WMI_VDEV_TYPE_IBSS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_2
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	(%rcx), %rsi
	movq	_WLAN_CIPHER_SUITE_WEP40@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_7
## %bb.3:
	movq	_WLAN_CIPHER_SUITE_WEP104@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_7
## %bb.4:
	movq	_IEEE80211_KEY_FLAG_PAIRWISE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 8(%rcx)
	jne	LBB0_7
## %bb.5:
	movq	_SET_KEY@GOTPCREL(%rip), %rsi
	cmpl	%eax, (%rsi)
	jne	LBB0_7
## %bb.6:
	movl	8(%rbx), %esi
	movl	12(%rcx), %ecx
	movq	%r14, %rdi
	callq	_ath10k_wmi_vdev_set_param
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_VDEV_TYPE_AP,8,3           ## @WMI_VDEV_TYPE_AP
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ## @WMI_VDEV_TYPE_IBSS
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ## @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ## @WLAN_CIPHER_SUITE_WEP104
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ## @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_SET_KEY,4,2                    ## @SET_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set vdev %i group key as default key: %d\n"

	.no_dead_strip	_ath10k_set_key_h_def_keyidx
.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_h_def_keyidx
_ath10k_set_key_h_def_keyidx:           ; @ath10k_set_key_h_def_keyidx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _WMI_VDEV_TYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WMI_VDEV_TYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _WMI_VDEV_TYPE_IBSS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WMI_VDEV_TYPE_IBSS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x3]
Lloh6:
	adrp	x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WLAN_CIPHER_SUITE_WEP40@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WLAN_CIPHER_SUITE_WEP104@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	w8, [x3, #8]
Lloh12:
	adrp	x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_KEY_FLAG_PAIRWISE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh15:
	adrp	x9, _SET_KEY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SET_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, w2, #0, eq
	b.ne	LBB0_5
; %bb.3:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	ldr	x8, [x8]
	ldr	w2, [x8]
	ldr	w1, [x1, #8]
	ldr	w3, [x3, #12]
	bl	_ath10k_wmi_vdev_set_param
	cbz	w0, LBB0_5
; %bb.4:
	mov	x3, x0
	ldr	w2, [x20, #8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath10k_warn
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_VDEV_TYPE_AP,8,3           ; @WMI_VDEV_TYPE_AP
	.comm	_WMI_VDEV_TYPE_IBSS,8,3         ; @WMI_VDEV_TYPE_IBSS
	.comm	_WLAN_CIPHER_SUITE_WEP40,8,3    ; @WLAN_CIPHER_SUITE_WEP40
	.comm	_WLAN_CIPHER_SUITE_WEP104,8,3   ; @WLAN_CIPHER_SUITE_WEP104
	.comm	_IEEE80211_KEY_FLAG_PAIRWISE,4,2 ; @IEEE80211_KEY_FLAG_PAIRWISE
	.comm	_SET_KEY,4,2                    ; @SET_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set vdev %i group key as default key: %d\n"

	.no_dead_strip	_ath10k_set_key_h_def_keyidx
.subsections_via_symbols
