	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sljit_malloc_exec              ## -- Begin function sljit_malloc_exec
	.p2align	4, 0x90
_sljit_malloc_exec:                     ## @sljit_malloc_exec
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_allocator_grab_lock
	cmpl	$41, %ebx
	movl	$40, %edi
	cmovael	%ebx, %edi
	callq	_ALIGN_SIZE
	movl	%eax, %r12d
	movq	_free_blocks@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	movl	%r15d, %ebx
	subl	%r12d, %ebx
	jge	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %r14
	testq	%r14, %r14
	jne	LBB0_2
LBB0_8:
	movq	_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%r12,%rax), %r14d
	addl	$23, %r14d
	movq	_CHUNK_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_alloc_chunk
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %r15
	addl	$-24, %r14d
	movq	_total_size@GOTPCREL(%rip), %rax
	addl	%r14d, (%rax)
	movl	$0, 4(%r15)
	leal	64(%r12), %edx
	movq	_allocated_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%edx, %r14d
	jle	LBB0_11
## %bb.10:
	addl	%r12d, %ecx
	movl	%ecx, (%rax)
	movl	%r12d, (%r15)
	subl	%r12d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_AS_FREE_BLOCK
	movq	%rax, %rbx
	movl	%r12d, 8(%rax)
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_sljit_insert_free_block
	movq	%rbx, %rdi
	jmp	LBB0_12
LBB0_3:
	movl	%r12d, %eax
	addl	$64, %eax
	cmpl	%eax, %r15d
	jle	LBB0_5
## %bb.4:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_AS_BLOCK_HEADER
	movq	%rax, %r14
	movl	%ebx, 4(%rax)
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_AS_BLOCK_HEADER
	movl	%r12d, 4(%rax)
	jmp	LBB0_6
LBB0_14:
	xorl	%eax, %eax
	callq	_allocator_release_lock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	addl	%r14d, %ecx
	movl	%ecx, (%rax)
	movl	%r14d, (%r15)
	movq	%r15, %rdi
LBB0_12:
	movl	%r14d, %esi
	callq	_AS_BLOCK_HEADER
	movl	$1, (%rax)
	movl	%r14d, 4(%rax)
	xorl	%eax, %eax
	callq	_allocator_release_lock
	movq	%r15, %rdi
	jmp	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	callq	_sljit_remove_free_block
	movl	%r15d, %r12d
LBB0_6:
	movq	_allocated_size@GOTPCREL(%rip), %rax
	addl	%r12d, (%rax)
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	callq	_allocator_release_lock
	movq	%r14, %rdi
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MEM_START                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_free_blocks,8,3                ## @free_blocks
	.comm	_allocated_size,4,2             ## @allocated_size
	.comm	_CHUNK_SIZE,4,2                 ## @CHUNK_SIZE
	.comm	_CHUNK_MASK,4,2                 ## @CHUNK_MASK
	.comm	_total_size,4,2                 ## @total_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sljit_malloc_exec              ; -- Begin function sljit_malloc_exec
	.p2align	2
_sljit_malloc_exec:                     ; @sljit_malloc_exec
	.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
	bl	_allocator_grab_lock
	mov	w8, #40
	cmp	w19, #40
	csel	w0, w19, w8, hi
	bl	_ALIGN_SIZE
	mov	x19, x0
Lloh0:
	adrp	x8, _free_blocks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _free_blocks@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cbz	x20, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x20]
	subs	w21, w22, w19
	b.ge	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x20, [x20, #16]
	cbnz	x20, LBB0_1
LBB0_3:
Lloh3:
	adrp	x8, _CHUNK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHUNK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w19, w8
	add	w8, w8, #23
Lloh6:
	adrp	x9, _CHUNK_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHUNK_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w21, w8, w9
	mov	x0, x21
	bl	_alloc_chunk
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
	sub	w21, w21, #24
Lloh9:
	adrp	x8, _total_size@GOTPAGE
Lloh10:
	ldr	x8, [x8, _total_size@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
	str	wzr, [x0, #4]
	add	w10, w19, #64
Lloh11:
	adrp	x8, _allocated_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _allocated_size@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w21, w10
	b.le	LBB0_9
; %bb.5:
	add	w9, w9, w19
	str	w9, [x8]
	str	w19, [x20]
	sub	w21, w21, w19
	mov	x0, x20
	mov	x1, x19
	bl	_AS_FREE_BLOCK
	mov	x22, x0
	str	w19, [x0, #8]
	mov	x1, x21
	bl	_sljit_insert_free_block
	mov	x0, x22
	b	LBB0_10
LBB0_6:
	add	w8, w19, #64
	cmp	w22, w8
	b.le	LBB0_11
; %bb.7:
	str	w21, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_AS_BLOCK_HEADER
	mov	x20, x0
	str	w21, [x0, #4]
	mov	x1, x19
	bl	_AS_BLOCK_HEADER
	str	w19, [x0, #4]
	b	LBB0_12
LBB0_8:
	bl	_allocator_release_lock
	mov	x0, #0
	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
LBB0_9:
	add	w9, w9, w21
	str	w9, [x8]
	str	w21, [x20]
	mov	x0, x20
LBB0_10:
	mov	x1, x21
	bl	_AS_BLOCK_HEADER
	mov	w8, #1
	stp	w8, w21, [x0]
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_sljit_remove_free_block
	mov	x19, x22
LBB0_12:
Lloh13:
	adrp	x8, _allocated_size@GOTPAGE
Lloh14:
	ldr	x8, [x8, _allocated_size@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	str	w19, [x20]
LBB0_13:
	bl	_allocator_release_lock
	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
	b	_MEM_START
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_free_blocks,8,3                ; @free_blocks
	.comm	_allocated_size,4,2             ; @allocated_size
	.comm	_CHUNK_SIZE,4,2                 ; @CHUNK_SIZE
	.comm	_CHUNK_MASK,4,2                 ; @CHUNK_MASK
	.comm	_total_size,4,2                 ; @total_size
.subsections_via_symbols
