	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_pblpool_create            ## -- Begin function c4iw_pblpool_create
	.p2align	4, 0x90
_c4iw_pblpool_create:                   ## @c4iw_pblpool_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_PBL_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_gen_pool_create
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	8(%r15), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %ebx
	leal	(%rbx,%r12), %r13d
	cmpl	%r12d, %r13d
	ja	LBB0_5
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 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_8
LBB0_5:                                 ## =>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.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_pr_debug
	movq	_MIN_PBL_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movl	$1024, %eax                     ## imm = 0x400
	shll	%cl, %eax
	cmpl	%eax, %ebx
	jbe	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	shrl	%ebx
	cmpl	%r12d, %r13d
	ja	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_pr_warn
LBB0_8:
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_PBL_SHIFT,4,2              ## @MIN_PBL_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to add PBL chunk (%x/%x)\n"

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

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_pblpool_create            ; -- Begin function c4iw_pblpool_create
	.p2align	2
_c4iw_pblpool_create:                   ; @c4iw_pblpool_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_PBL_SHIFT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MIN_PBL_SHIFT@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w1, #-1
	bl	_gen_pool_create
	str	w0, [x19]
	cbz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #8]
	ldp	w20, w21, [x8]
	add	w26, w21, w20
	cmp	w26, w20
	b.ls	LBB0_9
; %bb.2:
Lloh2:
	adrp	x22, l_.str.2@PAGE
Lloh3:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	w27, #1024
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_pr_debug
	add	w20, w21, 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, x21
	bl	_min
	mov	x21, x0
	ldr	w0, [x19]
	mov	x1, x20
	mov	x2, x21
	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, x21
	bl	_pr_debug
	ldr	w8, [x25]
	lsl	w8, w27, w8
	cmp	w21, w8
	b.ls	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w21, w21, #1
	cmp	w26, w20
	b.hi	LBB0_4
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_PBL_SHIFT,4,2              ; @MIN_PBL_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to add PBL chunk (%x/%x)\n"

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

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

.subsections_via_symbols
