	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgi_tioca_remove_memory
_sgi_tioca_remove_memory:               ## @sgi_tioca_remove_memory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	jne	LBB0_1
## %bb.3:
	cmpq	$0, (%rdi)
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rdi), %rcx
	addq	%rsi, %rcx
	cmpq	%rsi, %rcx
	jbe	LBB0_7
## %bb.5:
	movq	8(%r8), %rcx
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rcx,%rdx,8)
	incq	%rdx
	movq	8(%rdi), %rax
	addq	%rsi, %rax
	cmpq	%rax, %rdx
	jb	LBB0_6
LBB0_7:
	movq	(%r8), %rax
	callq	*(%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sgi_tioca_remove_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgi_tioca_remove_memory
_sgi_tioca_remove_memory:               ; @sgi_tioca_remove_memory
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
	cbnz	w2, LBB0_3
; %bb.2:
	ldr	x9, [x0]
	cbz	x9, LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x9, [x0, #8]
	add	x9, x9, x1
	cmp	x9, x1
	b.ls	LBB0_7
; %bb.5:
	ldr	x9, [x8, #8]
	mov	x10, x1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x9, x10, lsl #3]
	add	x10, x10, #1
	ldr	x11, [x0, #8]
	add	x11, x11, x1
	cmp	x10, x11
	b.lo	LBB0_6
LBB0_7:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sgi_tioca_remove_memory
.subsections_via_symbols
