	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_id_table_alloc            ## -- Begin function c4iw_id_table_alloc
	.p2align	4, 0x90
_c4iw_id_table_alloc:                   ## @c4iw_id_table_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %r12
	movl	%esi, (%rdi)
	movl	%r8d, 4(%rdi)
	movq	_C4IW_ID_TABLE_F_RANDOM@GOTPCREL(%rip), %rax
	testl	%r8d, (%rax)
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_prandom_u32
	movq	_RANDOM_SKIP@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movl	%edx, 8(%r12)
	movl	%r15d, 12(%r12)
	leaq	20(%r12), %rdi
	callq	_spin_lock_init
	movl	%r15d, %edi
	callq	_BITS_TO_LONGS
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movl	%eax, 16(%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_bitmap_zero
	movq	_C4IW_ID_TABLE_F_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, 4(%r12)
	jne	LBB0_9
## %bb.6:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %esi
	movl	%ebx, %edi
	callq	_set_bit
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_8
	jmp	LBB0_9
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C4IW_ID_TABLE_F_RANDOM,4,2     ## @C4IW_ID_TABLE_F_RANDOM
	.comm	_RANDOM_SKIP,4,2                ## @RANDOM_SKIP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_C4IW_ID_TABLE_F_EMPTY,4,2      ## @C4IW_ID_TABLE_F_EMPTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_id_table_alloc            ; -- Begin function c4iw_id_table_alloc
	.p2align	2
_c4iw_id_table_alloc:                   ; @c4iw_id_table_alloc
	.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	x19, x3
	mov	x21, x2
	mov	x20, x0
	stp	w1, w4, [x0]
Lloh0:
	adrp	x8, _C4IW_ID_TABLE_F_RANDOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C4IW_ID_TABLE_F_RANDOM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w4
	b.eq	LBB0_2
; %bb.1:
	bl	_prandom_u32
Lloh3:
	adrp	x8, _RANDOM_SKIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RANDOM_SKIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	stp	w8, w21, [x20, #8]
	add	x0, x20, #20
	bl	_spin_lock_init
	mov	x0, x21
	bl	_BITS_TO_LONGS
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_kmalloc_array
	str	w0, [x20, #16]
	cbz	w0, LBB0_8
; %bb.4:
	mov	x1, x21
	bl	_bitmap_zero
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _C4IW_ID_TABLE_F_EMPTY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _C4IW_ID_TABLE_F_EMPTY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w19, #1, #8, eq
	b.lt	LBB0_7
; %bb.5:
	mov	w21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_set_bit
	add	w21, w21, #1
	cmp	w19, w21
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_C4IW_ID_TABLE_F_RANDOM,4,2     ; @C4IW_ID_TABLE_F_RANDOM
	.comm	_RANDOM_SKIP,4,2                ; @RANDOM_SKIP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_C4IW_ID_TABLE_F_EMPTY,4,2      ; @C4IW_ID_TABLE_F_EMPTY
.subsections_via_symbols
