	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_res6
_alloc_res6:                            ## @alloc_res6
	.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	_V6_SIZEOF_RESTRICT_U@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_INC_RESLIST6@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_resfree6@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_link@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_UNLINK_HEAD_SLIST
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_eallocarray
	decq	%r15
	movq	%r15, %rbx
	imulq	%r14, %rbx
	addq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	negq	%r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_LINK_SLIST
	addq	%r14, %rbx
	decq	%r15
	jne	LBB0_2
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rbx
LBB0_4:
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_INSIST
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V6_SIZEOF_RESTRICT_U,8,3       ## @V6_SIZEOF_RESTRICT_U
	.comm	_INC_RESLIST6,8,3               ## @INC_RESLIST6
	.comm	_resfree6,4,2                   ## @resfree6
	.comm	_link,4,2                       ## @link
	.no_dead_strip	_alloc_res6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_res6
_alloc_res6:                            ; @alloc_res6
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _V6_SIZEOF_RESTRICT_U@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V6_SIZEOF_RESTRICT_U@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _INC_RESLIST6@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INC_RESLIST6@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
Lloh6:
	adrp	x22, _resfree6@GOTPAGE
Lloh7:
	ldr	x22, [x22, _resfree6@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x23, _link@GOTPAGE
Lloh9:
	ldr	x23, [x23, _link@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_UNLINK_HEAD_SLIST
	mov	x0, x19
	mov	x1, x21
	bl	_eallocarray
	mov	x20, x0
	subs	x24, x19, #1
	madd	x19, x24, x21, x0
	b.eq	LBB0_4
; %bb.1:
	neg	x21, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	x1, x19
	bl	_LINK_SLIST
	add	x19, x19, x21
	subs	x24, x24, #1
	b.ne	LBB0_2
; %bb.3:
	mov	x19, x20
LBB0_4:
	cmp	x20, x19
	cset	w0, eq
	bl	_INSIST
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V6_SIZEOF_RESTRICT_U,8,3       ; @V6_SIZEOF_RESTRICT_U
	.comm	_INC_RESLIST6,8,3               ; @INC_RESLIST6
	.comm	_resfree6,4,2                   ; @resfree6
	.comm	_link,4,2                       ; @link
	.no_dead_strip	_alloc_res6
.subsections_via_symbols
