	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ylist_positions_alloc
_ylist_positions_alloc:                 ## @ylist_positions_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_ylist_positions_free
LBB0_2:
	movl	%ebx, (%r14)
	movq	_list_int_free_blocks@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	%ebx, (%r15)
	setge	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	8(%r15), %rax
	movq	%rax, 16(%r14)
	cmpl	$2, %ebx
	jl	LBB0_9
## %bb.4:
	leal	-1(%rbx), %edx
	leal	-2(%rbx), %esi
	movl	%edx, %ecx
	andl	$7, %ecx
	cmpl	$7, %esi
	jb	LBB0_7
## %bb.5:
	andl	$-8, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addl	$-8, %edx
	jne	LBB0_6
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	decl	%ecx
	jne	LBB0_8
LBB0_9:
	movq	%rax, 8(%r14)
	subl	%ebx, (%r15)
	movq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	movq	$0, (%rax)
	jmp	LBB0_13
LBB0_10:
	movl	$8, %edi
	callq	_zmalloc
	movq	%rax, 8(%r14)
	movq	%rax, 16(%r14)
	movq	$0, (%rax)
	cmpl	$2, %ebx
	jl	LBB0_13
## %bb.11:
	decl	%ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	$8, %edi
	callq	_ztmalloc
	movq	$0, (%rax)
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	%rax, 8(%r14)
	decl	%ebx
	jne	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_list_int_free_blocks,16,3      ## @list_int_free_blocks
	.no_dead_strip	_ylist_positions_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ylist_positions_alloc
_ylist_positions_alloc:                 ; @ylist_positions_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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ylist_positions_free
LBB0_2:
	str	w20, [x19]
Lloh0:
	adrp	x21, _list_int_free_blocks@GOTPAGE
Lloh1:
	ldr	x21, [x21, _list_int_free_blocks@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w0, ge
	bl	_likely
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x21, #8]
	str	x8, [x19, #16]
	cmp	w20, #2
	b.lt	LBB0_6
; %bb.4:
	sub	w9, w20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	subs	w9, w9, #1
	b.ne	LBB0_5
LBB0_6:
	str	x8, [x19, #8]
	ldr	w9, [x21]
	sub	w9, w9, w20
	str	w9, [x21]
	ldr	x9, [x8]
	str	x9, [x21, #8]
	str	xzr, [x8]
	b	LBB0_10
LBB0_7:
	mov	w0, #8
	bl	_zmalloc
	stp	x0, x0, [x19, #8]
	str	xzr, [x0]
	cmp	w20, #2
	b.lt	LBB0_10
; %bb.8:
	sub	w20, w20, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #8
	bl	_ztmalloc
	str	xzr, [x0]
	ldr	x8, [x19, #8]
	str	x0, [x8]
	str	x0, [x19, #8]
	subs	w20, w20, #1
	b.ne	LBB0_9
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_list_int_free_blocks,16,3      ; @list_int_free_blocks
	.no_dead_strip	_ylist_positions_alloc
.subsections_via_symbols
