	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _citrus_memory_stream_seek
__citrus_memory_stream_seek:            ## @_citrus_memory_stream_seek
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	addq	$8, %rdi
	callq	__citrus_region_size
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_9
## %bb.3:
	movl	$-1, %eax
	cmpq	%r15, %rcx
	ja	LBB0_4
	jmp	LBB0_9
LBB0_5:
	addq	(%r14), %r15
	movl	$-1, %eax
	cmpq	%rcx, %r15
	jae	LBB0_9
LBB0_4:
	movq	%r15, (%r14)
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %eax
	subq	%r15, %rcx
	jb	LBB0_9
## %bb.7:
	movq	%rcx, (%r14)
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__citrus_memory_stream_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _citrus_memory_stream_seek
__citrus_memory_stream_seek:            ; @_citrus_memory_stream_seek
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #8
	bl	__citrus_region_size
	cmp	w21, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.3:
	cmp	x0, x20
	b.ls	LBB0_6
; %bb.4:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19]
	add	x8, x8, x20
	cmp	x8, x0
	b.lo	LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
	subs	x8, x0, x20
	b.lo	LBB0_6
LBB0_8:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__citrus_memory_stream_seek
.subsections_via_symbols
