	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scratch_free
_scratch_free:                          ## @scratch_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %ecx
	subl	4(%rdi), %ecx
	xorl	%eax, %eax
	movl	$0, %ebx
	testl	%ecx, %ecx
	jg	LBB0_2
## %bb.1:
	movq	_scratch_buf_size@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	addl	%ecx, %ebx
	subl	$1, %ebx
	cmovbl	%eax, %ebx
	movq	_DBG_SCRATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_PDEBUG
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scratch_buf_size,8,3           ## @scratch_buf_size
	.comm	_DBG_SCRATCH,4,2                ## @DBG_SCRATCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return %d\n"

	.no_dead_strip	_scratch_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scratch_free
_scratch_free:                          ; @scratch_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w9, [x0]
	sub	w8, w8, w9
Lloh0:
	adrp	x9, _scratch_buf_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _scratch_buf_size@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w9, wzr, w9, gt
	adds	w8, w9, w8
	sub	w8, w8, #1
	csel	w19, wzr, w8, eq
Lloh3:
	adrp	x8, _DBG_SCRATCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_SCRATCH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_PDEBUG
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_scratch_buf_size,8,3           ; @scratch_buf_size
	.comm	_DBG_SCRATCH,4,2                ; @DBG_SCRATCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return %d\n"

	.no_dead_strip	_scratch_free
.subsections_via_symbols
