	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resource_clip
_resource_clip:                         ## @resource_clip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	cmpq	%rsi, %rax
	jl	LBB0_5
## %bb.1:
	movq	8(%rdi), %r9
	cmpq	%rdx, %r9
	jg	LBB0_5
## %bb.2:
	xorl	%r8d, %r8d
	movq	%rsi, %rcx
	subq	%r9, %rcx
	cmovleq	%r8, %rcx
	subq	%rdx, %rax
	cmovleq	%r8, %rax
	cmpq	%rax, %rcx
	jle	LBB0_4
## %bb.3:
	decq	%rsi
	movq	%rsi, (%rdi)
	popq	%rbp
	retq
LBB0_4:
	incq	%rdx
	movq	%rdx, 8(%rdi)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resource_clip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resource_clip
_resource_clip:                         ; @resource_clip
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x1
	b.lt	LBB0_5
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	x9, x2
	b.gt	LBB0_5
; %bb.2:
	subs	x9, x1, x9
	csel	x9, x9, xzr, gt
	subs	x8, x8, x2
	csel	x8, x8, xzr, gt
	cmp	x9, x8
	b.le	LBB0_4
; %bb.3:
	sub	x8, x1, #1
	str	x8, [x0]
	ret
LBB0_4:
	add	x8, x2, #1
	str	x8, [x0, #8]
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resource_clip
.subsections_via_symbols
