	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ieee80211_set_default_key
___ieee80211_set_default_key:           ## @__ieee80211_set_default_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_assert_key_lock
	xorl	%r12d, %r12d
	testl	%r15d, %r15d
	js	LBB0_3
## %bb.1:
	movq	_NUM_DEFAULT_KEYS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jle	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	movq	16(%rbx), %rax
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %esi
	callq	_key_mtx_dereference
	movq	%rax, %r12
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_drv_set_default_unicast_key
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
LBB0_7:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_debugfs_key_update_default ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ## @NUM_DEFAULT_KEYS
	.no_dead_strip	___ieee80211_set_default_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ieee80211_set_default_key
___ieee80211_set_default_key:           ; @__ieee80211_set_default_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_assert_key_lock
	mov	x22, #0
	tbnz	w21, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _NUM_DEFAULT_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_DEFAULT_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, w21, uxtw #2]
	bl	_key_mtx_dereference
	mov	x22, x0
LBB0_3:
	cbz	w23, LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	mov	x1, x22
	bl	_rcu_assign_pointer
	ldr	w0, [x19, #4]
	mov	x1, x19
	mov	x2, x21
	bl	_drv_set_default_unicast_key
LBB0_5:
	cbz	w20, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_rcu_assign_pointer
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_debugfs_key_update_default
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ; @NUM_DEFAULT_KEYS
	.no_dead_strip	___ieee80211_set_default_key
.subsections_via_symbols
