	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ieee80211_set_default_mgmt_key
___ieee80211_set_default_mgmt_key:      ## @__ieee80211_set_default_mgmt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_assert_key_lock
	movq	_NUM_DEFAULT_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jg	LBB0_4
## %bb.2:
	movq	_NUM_DEFAULT_MGMT_KEYS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	%r14d, %eax
	jle	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_key_mtx_dereference
	movq	%rax, %rsi
	jmp	LBB0_5
LBB0_4:
	xorl	%esi, %esi
LBB0_5:
	movl	(%rbx), %edi
	callq	_rcu_assign_pointer
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ieee80211_debugfs_key_update_default ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ## @NUM_DEFAULT_KEYS
	.comm	_NUM_DEFAULT_MGMT_KEYS,4,2      ## @NUM_DEFAULT_MGMT_KEYS
	.no_dead_strip	___ieee80211_set_default_mgmt_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_mgmt_key
___ieee80211_set_default_mgmt_key:      ; @__ieee80211_set_default_mgmt_key
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_assert_key_lock
Lloh0:
	adrp	x8, _NUM_DEFAULT_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_DEFAULT_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.gt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _NUM_DEFAULT_MGMT_KEYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_DEFAULT_MGMT_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w20
	b.le	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w1, [x8, w20, sxtw #2]
	bl	_key_mtx_dereference
	mov	x1, x0
	b	LBB0_4
LBB0_3:
	mov	x1, #0
LBB0_4:
	ldr	w0, [x19]
	bl	_rcu_assign_pointer
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ieee80211_debugfs_key_update_default
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ; @NUM_DEFAULT_KEYS
	.comm	_NUM_DEFAULT_MGMT_KEYS,4,2      ; @NUM_DEFAULT_MGMT_KEYS
	.no_dead_strip	___ieee80211_set_default_mgmt_key
.subsections_via_symbols
