	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sljit_free_unused_memory_exec  ## -- Begin function sljit_free_unused_memory_exec
	.p2align	4, 0x90
_sljit_free_unused_memory_exec:         ## @sljit_free_unused_memory_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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_allocator_grab_lock
	movq	_free_blocks@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	movq	_total_size@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movq	16(%r15), %r15
	cmpl	$0, 8(%rbx)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_AS_BLOCK_HEADER
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	subq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_sljit_remove_free_block
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_free_chunk
	jmp	LBB0_5
LBB0_6:
	cmpq	$0, (%r14)
	setne	%bl
LBB0_7:
	movq	_total_size@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	movl	%eax, %ecx
	andb	%bl, %cl
	orb	%bl, %al
	xorb	$1, %al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_SLJIT_ASSERT
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_allocator_release_lock         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_free_blocks,8,3                ## @free_blocks
	.comm	_total_size,8,3                 ## @total_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sljit_free_unused_memory_exec  ; -- Begin function sljit_free_unused_memory_exec
	.p2align	2
_sljit_free_unused_memory_exec:         ; @sljit_free_unused_memory_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
	bl	_allocator_grab_lock
Lloh0:
	adrp	x21, _free_blocks@GOTPAGE
Lloh1:
	ldr	x21, [x21, _free_blocks@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh2:
	adrp	x20, _total_size@GOTPAGE
Lloh3:
	ldr	x20, [x20, _total_size@GOTPAGEOFF]
	cbnz	x22, LBB0_3
; %bb.1:
	mov	w8, #0
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x22
	ldr	x22, [x22, #16]
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x19]
	mov	x0, x19
	bl	_AS_BLOCK_HEADER
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	sub	x8, x9, x8
	str	x8, [x20]
	mov	x0, x19
	bl	_sljit_remove_free_block
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_free_chunk
	b	LBB0_2
LBB0_6:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w8, ne
LBB0_7:
	ldr	x9, [x20]
	cmp	x9, #0
	cset	w9, ne
	and	w10, w9, w8
	orr	w8, w9, w8
	eor	w8, w8, #0x1
	orr	w0, w10, w8
	bl	_SLJIT_ASSERT
	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	_allocator_release_lock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_free_blocks,8,3                ; @free_blocks
	.comm	_total_size,8,3                 ; @total_size
.subsections_via_symbols
