	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_alloc_agg_txq
_iwlagn_alloc_agg_txq:                  ## @iwlagn_alloc_agg_txq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_IWLAGN_FIRST_AMPDU_QUEUE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	incq	%rbx
	cmpl	(%rax), %ebx
	jl	LBB0_2
LBB0_5:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rax
	movl	%r14d, (%rax,%rbx,4)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWLAGN_FIRST_AMPDU_QUEUE,4,2   ## @IWLAGN_FIRST_AMPDU_QUEUE
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_iwlagn_alloc_agg_txq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_alloc_agg_txq
_iwlagn_alloc_agg_txq:                  ; @iwlagn_alloc_agg_txq
	.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
Lloh0:
	adrp	x8, _IWLAGN_FIRST_AMPDU_QUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWLAGN_FIRST_AMPDU_QUEUE@GOTPAGEOFF]
Lloh2:
	ldrsw	x19, [x8]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w19, w8
	b.ge	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_test_and_set_bit
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	add	x19, x19, #1
	cmp	w19, w8
	b.lt	LBB0_2
LBB0_4:
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x21]
	str	w20, [x8, x19, lsl #2]
LBB0_6:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IWLAGN_FIRST_AMPDU_QUEUE,4,2   ; @IWLAGN_FIRST_AMPDU_QUEUE
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_iwlagn_alloc_agg_txq
.subsections_via_symbols
