	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_rqtpool_create            ## -- Begin function c4iw_rqtpool_create
	.p2align	4, 0x90
_c4iw_rqtpool_create:                   ## @c4iw_rqtpool_create
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_MIN_RQT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_gen_pool_create
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	cmpq	$0, 8(%rcx)
	movl	$0, %eax
	je	LBB0_4
## %bb.3:
	movq	_T4_RQT_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	(%rcx), %r12d
	movl	4(%rcx), %ebx
	leal	(%rbx,%r12), %r13d
	addl	%eax, %r12d
	cmpl	%r12d, %r13d
	jbe	LBB0_12
## %bb.5:
	subl	%eax, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pr_debug
	addl	%ebx, %r12d
	cmpl	%r12d, %r13d
	jbe	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r14d
	subl	%r12d, %r14d
	leal	1(%r14), %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	movl	$-1, %ecx
	callq	_gen_pool_add
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pr_debug
	movq	_MIN_RQT_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	$1024, %eax                     ## imm = 0x400
	shll	%cl, %eax
	cmpl	%eax, %ebx
	jbe	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	shrl	%ebx
	cmpl	%r12d, %r13d
	ja	LBB0_6
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_pr_warn
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_RQT_SHIFT,4,2              ## @MIN_RQT_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_T4_RQT_ENTRY_SIZE,4,2          ## @T4_RQT_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add RQT chunk (%x/%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to add all RQT chunks (%x/%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"added RQT chunk (%x/%x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_rqtpool_create            ; -- Begin function c4iw_rqtpool_create
	.p2align	2
_c4iw_rqtpool_create:                   ; @c4iw_rqtpool_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x25, _MIN_RQT_SHIFT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MIN_RQT_SHIFT@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w1, #-1
	bl	_gen_pool_create
	str	w0, [x19]
	cbz	w0, LBB0_7
; %bb.1:
	mov	w0, #0
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #8]
Lloh2:
	adrp	x10, _T4_RQT_ENTRY_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _T4_RQT_ENTRY_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	ldp	w10, w9, [x9]
	add	w20, w10, w8
	add	w26, w9, w10
	cmp	w26, w20
	b.ls	LBB0_10
; %bb.2:
	sub	w22, w9, w8
Lloh5:
	adrp	x21, l_.str.2@PAGE
Lloh6:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	w27, #1024
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_pr_debug
	add	w20, w22, w20
	cmp	w26, w20
	b.ls	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w24, w26, w20
	add	w0, w24, #1
	mov	x1, x22
	bl	_min
	mov	x22, x0
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x22
	mov	w3, #-1
	bl	_gen_pool_add
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	bl	_pr_debug
	ldr	w8, [x25]
	lsl	w8, w27, w8
	cmp	w22, w8
	b.ls	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w22, w22, #1
	cmp	w26, w20
	b.hi	LBB0_4
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x24
	bl	_pr_warn
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_RQT_SHIFT,4,2              ; @MIN_RQT_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_T4_RQT_ENTRY_SIZE,4,2          ; @T4_RQT_ENTRY_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add RQT chunk (%x/%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to add all RQT chunks (%x/%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"added RQT chunk (%x/%x)\n"

.subsections_via_symbols
