	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2x00queue_alloc_entries
_rt2x00queue_alloc_entries:             ## @rt2x00queue_alloc_entries
	.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	%rdi, %r14
	callq	_rt2x00queue_reset
	movl	(%r14), %esi
	movl	4(%r14), %edi
	addl	$32, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	4(%r14), %r8d
	testq	%r8, %r8
	je	LBB0_4
## %bb.2:
	movq	%r8, %rcx
	shlq	$5, %rcx
	movq	%rax, %rdx
	addq	%rcx, %rdx
	movl	(%r14), %r9d
	xorl	%edi, %edi
	movq	%rax, %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	$0, 8(%rbx)
	movl	%ecx, (%rbx)
	leal	(%rdx,%rdi), %esi
	movl	%esi, 4(%rbx)
	incq	%rcx
	addl	%r9d, %edi
	addq	$32, %rbx
	cmpq	%rcx, %r8
	jne	LBB0_3
LBB0_4:
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rt2x00queue_alloc_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2x00queue_alloc_entries
_rt2x00queue_alloc_entries:             ; @rt2x00queue_alloc_entries
	.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, x0
	bl	_rt2x00queue_reset
	ldp	w8, w0, [x19]
	add	w1, w8, #32
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_kcalloc
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_10
; %bb.2:
	add	x9, x0, x8, lsl #5
	ldr	w10, [x19]
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_11
LBB0_5:
	mov	w12, #0
	mov	w13, #0
	mov	x14, #0
	and	x11, x8, #0xfffffffc
	lsl	w15, w10, #2
	lsl	w16, w10, #1
	add	w17, w16, w10
	lsl	x1, x8, #5
	and	x1, x1, #0x1fffffff80
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, x0, x14
	stp	x19, xzr, [x2, #16]
	add	w3, w12, #1
	add	w4, w12, #2
	stp	x19, xzr, [x2, #48]
	add	w5, w12, #3
	stp	x19, xzr, [x2, #80]
	stp	x19, xzr, [x2, #112]
	str	xzr, [x2, #8]
	str	xzr, [x2, #40]
	str	xzr, [x2, #72]
	str	xzr, [x2, #104]
	add	w6, w9, w13
	add	w7, w10, w13
	add	w7, w9, w7
	stp	w12, w6, [x2]
	add	w6, w16, w13
	add	w6, w9, w6
	stp	w3, w7, [x2, #32]
	add	w3, w17, w13
	add	w3, w9, w3
	stp	w4, w6, [x2, #64]
	add	x14, x14, #128
	add	w13, w13, w15
	add	w12, w12, #4
	stp	w5, w3, [x2, #96]
	cmp	x1, x14
	b.ne	LBB0_6
; %bb.7:
	cmp	x11, x8
	b.eq	LBB0_10
LBB0_8:
	mul	w12, w10, w11
	add	x13, x0, x11, lsl #5
	add	x13, x13, #24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stp	x19, xzr, [x13, #-8]
	add	w14, w9, w12
	stur	xzr, [x13, #-16]
	stp	w11, w14, [x13, #-24]
	add	x11, x11, #1
	add	w12, w12, w10
	add	x13, x13, #32
	cmp	x8, x11
	b.ne	LBB0_9
LBB0_10:
	mov	w8, #0
	str	x0, [x19, #8]
LBB0_11:
	mov	x0, x8
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rt2x00queue_alloc_entries
.subsections_via_symbols
