	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function allocset
_allocset:                              ## @allocset
	.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	8(%rdi), %rax
	movslq	20(%rax), %r15
	leal	1(%r15), %ecx
	movl	%ecx, 20(%rax)
	movslq	16(%rax), %r14
	movl	(%rdi), %ebx
	cmpl	%ebx, %r15d
	jl	LBB0_32
## %bb.1:
	movq	%rdi, %r13
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addl	%ecx, %ebx
	movl	%ebx, (%rdi)
	movslq	%ebx, %r12
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_assert
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_MEMSIZE
	movq	_MEMLIMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_37
## %bb.8:
	movq	8(%r13), %rax
	movq	8(%rax), %rdi
	shlq	$3, %r12
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	leaq	(%r12,%r12,4), %rsi
	callq	_realloc
	jmp	LBB0_11
LBB0_9:
	leaq	(%r12,%r12,4), %rdi
	callq	_malloc
LBB0_11:
	imulq	%r14, %rbx
	movq	8(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.13:
	movq	%rbx, %rsi
	callq	_realloc
	movq	%rax, %rdi
	movq	8(%r13), %r9
	movq	%rax, (%r9)
	testl	%r15d, %r15d
	jle	LBB0_29
## %bb.14:
	movq	%rbx, %r12
	movl	%r15d, %r10d
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	8(%r9), %r8
	cmpl	$1, %r10d
	jne	LBB0_16
## %bb.15:
	xorl	%ecx, %ecx
LBB0_24:
	testb	$1, %r10b
	movq	%r12, %rbx
	je	LBB0_29
## %bb.25:
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_26
## %bb.27:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_28
LBB0_12:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %rdi
	movq	8(%r13), %r9
	movq	%rax, (%r9)
LBB0_29:
	cmpq	$0, 8(%r9)
	je	LBB0_37
LBB0_30:
	testq	%rdi, %rdi
	je	LBB0_37
## %bb.31:
	subq	%r14, %rbx
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	movq	8(%r13), %rax
LBB0_32:
	movq	(%rax), %r8
	movq	8(%rax), %rdi
	leaq	(%r15,%r15,4), %rbx
	leaq	(%rdi,%rbx,8), %rsi
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_33
## %bb.34:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_35
LBB0_33:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_35:
	imulq	%r14, %rax
	leaq	(%r8,%rax,4), %rax
	movq	%rax, 32(%rdi,%rbx,8)
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movl	%eax, (%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rdi,%rbx,8)
	movq	$0, 24(%rdi,%rbx,8)
	jmp	LBB0_36
LBB0_16:
	movl	%r10d, %r11d
	andl	$-2, %r11d
	leaq	72(%r8), %rbx
	xorl	%ecx, %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%edx, %edx
	divq	%rsi
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	imulq	%r14, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, (%rbx)
	addq	$2, %rcx
	addq	$80, %rbx
	cmpq	%rcx, %r11
	je	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	imulq	%r14, %rax
	leaq	(%rdi,%rax,4), %rax
	movq	%rax, -40(%rbx)
	leaq	1(%rcx), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_23
LBB0_26:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_28:
	imulq	%r14, %rax
	leaq	(%rdi,%rax,4), %rax
	leaq	(%rcx,%rcx,4), %rcx
	movq	%rax, 32(%r8,%rcx,8)
	cmpq	$0, 8(%r9)
	jne	LBB0_30
LBB0_37:
	movq	_REG_ESPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SETERROR
	xorl	%esi, %esi
LBB0_36:
	movq	%rsi, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,8,3                   ## @CHAR_BIT
	.comm	_MEMLIMIT,8,3                   ## @MEMLIMIT
	.comm	_REG_ESPACE,4,2                 ## @REG_ESPACE
	.no_dead_strip	_allocset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function allocset
_allocset:                              ; @allocset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldp	w19, w24, [x8, #16]
                                        ; kill: def $w19 killed $w19 def $x19
	sxtw	x19, w19
	sxtw	x22, w24
	add	w9, w24, #1
	str	w9, [x8, #20]
	ldr	w9, [x0]
Lloh0:
	adrp	x23, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHAR_BIT@GOTPAGEOFF]
	cmp	w24, w9
	b.ge	LBB0_2
LBB0_1:
	mov	w9, #40
	ldp	x8, x10, [x8]
	madd	x0, x22, x9, x10
	ldr	x9, [x23]
	udiv	x10, x22, x9
	mul	x11, x10, x19
	msub	w9, w10, w9, w22
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x0]
	add	x8, x8, x11, lsl #2
	stp	xzr, x8, [x0, #24]
	stp	xzr, xzr, [x0, #8]
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	ldr	x8, [x23]
	add	w9, w9, w8
	str	w9, [x0]
	sxtw	x25, w9
	udiv	x9, x25, x8
	msub	x8, x9, x8, x25
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x21, [x23]
	mov	x0, x20
	bl	_MEMSIZE
Lloh2:
	adrp	x8, _MEMLIMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMLIMIT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _REG_ESPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_ESPACE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_SETERROR
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	udiv	x8, x25, x21
	mul	x21, x8, x19
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.6:
	add	x8, x25, x25, lsl #2
	lsl	x1, x8, #3
	bl	_realloc
	b	LBB0_8
LBB0_7:
	add	x8, x25, x25, lsl #2
	lsl	x0, x8, #3
	bl	_malloc
LBB0_8:
	ldr	x8, [x20, #8]
	str	x0, [x8, #8]
	ldr	x0, [x8]
	cbz	x0, LBB0_12
; %bb.9:
	mov	x1, x21
	bl	_realloc
	ldr	x8, [x20, #8]
	str	x0, [x8]
	cmp	w22, #1
	b.lt	LBB0_18
; %bb.10:
	ldr	x9, [x23]
	ldr	x11, [x8, #8]
	cmp	w24, #4
	b.hs	LBB0_13
; %bb.11:
	mov	x10, #0
	b	LBB0_16
LBB0_12:
	mov	x0, x21
	bl	_malloc
	ldr	x8, [x20, #8]
	str	x0, [x8]
	b	LBB0_18
LBB0_13:
	mov	x12, #0
	and	x10, x24, #0xfffffffc
	add	x13, x11, #112
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x14, x12, #1
	add	x15, x12, #2
	add	x16, x12, #3
	udiv	x17, x12, x9
	udiv	x14, x14, x9
	udiv	x15, x15, x9
	mul	x17, x17, x19
	mul	x14, x14, x19
	mul	x15, x15, x19
	add	x17, x0, x17, lsl #2
	udiv	x16, x16, x9
	mul	x16, x16, x19
	add	x14, x0, x14, lsl #2
	add	x15, x0, x15, lsl #2
	add	x16, x0, x16, lsl #2
	stur	x17, [x13, #-80]
	stur	x14, [x13, #-40]
	str	x15, [x13]
	str	x16, [x13, #40]
	add	x12, x12, #4
	add	x13, x13, #160
	cmp	x10, x12
	b.ne	LBB0_14
; %bb.15:
	cmp	x10, x24
	b.eq	LBB0_18
LBB0_16:
	mov	w12, #40
	madd	x11, x10, x12, x11
	add	x11, x11, #32
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	udiv	x12, x10, x9
	mul	x12, x12, x19
	add	x12, x0, x12, lsl #2
	str	x12, [x11], #40
	add	x10, x10, #1
	cmp	x24, x10
	b.ne	LBB0_17
LBB0_18:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.19:
	cbz	x0, LBB0_3
; %bb.20:
	sub	x8, x21, x19
	add	x0, x0, x8
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x8, [x20, #8]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,8,3                   ; @CHAR_BIT
	.comm	_MEMLIMIT,8,3                   ; @MEMLIMIT
	.comm	_REG_ESPACE,4,2                 ; @REG_ESPACE
	.no_dead_strip	_allocset
.subsections_via_symbols
