	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function null_key_alloc
_null_key_alloc:                        ## @null_key_alloc
	.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
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	ja	LBB0_2
## %bb.1:
	movq	_IEEE80211_WEP_NKID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_2
## %bb.3:
	callq	_ieee80211_crypto_get_key_wepidx
	jmp	LBB0_4
LBB0_2:
	movq	_IEEE80211_KEY_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rsi)
	jne	LBB0_5
LBB0_4:
	movq	%rax, (%rbx)
	movq	_IEEE80211_KEYIX_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	$1, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_WEP_NKID,8,3         ## @IEEE80211_WEP_NKID
	.comm	_IEEE80211_KEY_GROUP,4,2        ## @IEEE80211_KEY_GROUP
	.comm	_IEEE80211_KEYIX_NONE,8,3       ## @IEEE80211_KEYIX_NONE
	.no_dead_strip	_null_key_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function null_key_alloc
_null_key_alloc:                        ; @null_key_alloc
	.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	x19, x3
	mov	x20, x2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_WEP_NKID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_WEP_NKID@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #2
	cmp	x8, x1
	ccmp	x9, x1, #0, ls
	b.hi	LBB0_3
; %bb.1:
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _IEEE80211_KEY_GROUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_KEY_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	bl	_ieee80211_crypto_get_key_wepidx
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	str	x0, [x20]
Lloh6:
	adrp	x8, _IEEE80211_KEYIX_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_KEYIX_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_WEP_NKID,8,3         ; @IEEE80211_WEP_NKID
	.comm	_IEEE80211_KEY_GROUP,4,2        ; @IEEE80211_KEY_GROUP
	.comm	_IEEE80211_KEYIX_NONE,8,3       ; @IEEE80211_KEYIX_NONE
	.no_dead_strip	_null_key_alloc
.subsections_via_symbols
