	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_set_default_unicast_key
_ath10k_set_default_unicast_key:        ## @ath10k_set_default_unicast_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	(%rdi), %r14
	movq	(%rsi), %rbx
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_ATH10K_STATE_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	callq	_ath10k_dbg
	movq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	movq	16(%rdi), %rax
	movl	(%rax), %edx
	movl	%r15d, %ecx
	callq	_ath10k_wmi_vdev_set_param
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_ath10k_warn
	jmp	LBB0_4
LBB0_3:
	movl	%r15d, (%rbx)
LBB0_4:
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_STATE_ON,8,3            ## @ATH10K_STATE_ON
	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac vdev %d set keyidx %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to update wep key index for vdev %d: %d\n"

	.no_dead_strip	_ath10k_set_default_unicast_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_default_unicast_key
_ath10k_set_default_unicast_key:        ; @ath10k_set_default_unicast_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, x2
	ldr	x19, [x0]
	ldr	x21, [x1]
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ATH10K_STATE_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH10K_STATE_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [x21, #16]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_ath10k_dbg
	ldr	x0, [x21, #8]
	ldr	w1, [x21, #16]
	ldr	x8, [x0, #16]
	ldr	w2, [x8]
	mov	x3, x20
	bl	_ath10k_wmi_vdev_set_param
	cbz	w0, LBB0_3
; %bb.2:
	mov	x3, x0
	ldr	w2, [x21, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_4
LBB0_3:
	str	w20, [x21]
LBB0_4:
	ldr	x8, [x21, #8]
	add	x0, x8, #8
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_STATE_ON,8,3            ; @ATH10K_STATE_ON
	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac vdev %d set keyidx %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to update wep key index for vdev %d: %d\n"

	.no_dead_strip	_ath10k_set_default_unicast_key
.subsections_via_symbols
