	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_alloc_key               ## -- Begin function cw1200_alloc_key
	.p2align	4, 0x90
_cw1200_alloc_key:                      ## @cw1200_alloc_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	8(%rdi), %ecx
	movl	%ecx, %eax
	notl	%eax
	bsfl	%eax, %ebx
	movl	$-1, %eax
	cmpl	$-1, %ecx
	cmovel	%ecx, %ebx
	je	LBB0_3
## %bb.1:
	movq	_WSM_KEY_MAX_INDEX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jg	LBB0_3
## %bb.2:
	movq	%rdi, %r14
	movl	%ebx, %edi
	callq	_BIT
	orl	%eax, 8(%r14)
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	%ecx, (%rax,%rcx,4)
	movl	%ebx, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_KEY_MAX_INDEX,4,2          ## @WSM_KEY_MAX_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_alloc_key               ; -- Begin function cw1200_alloc_key
	.p2align	2
_cw1200_alloc_key:                      ; @cw1200_alloc_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
	ldr	w8, [x0, #8]
	mvn	w9, w8
	rbit	w9, w9
	clz	w9, w9
	cmn	w8, #1
	csinv	w19, w9, wzr, ne
Lloh0:
	adrp	x8, _WSM_KEY_MAX_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSM_KEY_MAX_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w19, w8, #0, ne
	b.le	LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	mov	x0, x19
	bl	_BIT
	ldr	w8, [x20, #8]
	orr	w8, w8, w0
	str	w8, [x20, #8]
	ldr	x8, [x20]
	str	w19, [x8, w19, sxtw #2]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_KEY_MAX_INDEX,4,2          ; @WSM_KEY_MAX_INDEX
.subsections_via_symbols
