	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmalloc                        ## -- Begin function gmalloc
	.p2align	4, 0x90
_gmalloc:                               ## @gmalloc
	.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
	movl	%edi, %r14d
	movq	_MAX_GROUPS@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	%r14d, (%r15)
	setae	%dil
	callq	_assert
	movq	_GS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_GT@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	jb	LBB0_2
## %bb.1:
	movl	(%r15), %edx
	addl	%edx, %ecx
	addl	$-8, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setbe	%dil
LBB0_2:
	callq	_assert
	movl	(%r12), %eax
	movl	%eax, %ebx
	negl	%ebx
	andl	$3, %ebx
	addl	%eax, %ebx
	movl	(%r13), %eax
	subl	%ebx, %eax
	addl	(%r15), %eax
	movl	%ebx, (%r12)
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setae	%dil
	callq	_assert
	addl	%r14d, (%r12)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_GROUPS,4,2                 ## @MAX_GROUPS
	.comm	_GS,4,2                         ## @GS
	.comm	_GT,4,2                         ## @GT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gmalloc                        ; -- Begin function gmalloc
	.p2align	2
_gmalloc:                               ; @gmalloc
	.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	x19, x0
Lloh0:
	adrp	x22, _MAX_GROUPS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_GROUPS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w0
	cset	w0, hs
	bl	_assert
Lloh2:
	adrp	x21, _GS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x20, _GT@GOTPAGE
Lloh5:
	ldr	x20, [x20, _GT@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w10, [x22]
	add	w9, w9, w10
	sub	w9, w9, #8
	cmp	w8, w9
	cset	w0, ls
LBB0_3:
	bl	_assert
	ldr	w8, [x21]
	neg	w9, w8
	and	w9, w9, #0x3
	ldr	w10, [x20]
	add	w20, w9, w8
	sub	w8, w10, w20
	str	w20, [x21]
	ldr	w9, [x22]
	add	w8, w8, w9
	cmp	w8, w19
	cset	w0, hs
	bl	_assert
	ldr	w8, [x21]
	add	w8, w8, w19
	str	w8, [x21]
	mov	x0, x20
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_GROUPS,4,2                 ; @MAX_GROUPS
	.comm	_GS,4,2                         ; @GS
	.comm	_GT,4,2                         ; @GT
.subsections_via_symbols
