	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstream_seek                 ## -- Begin function memstream_seek
	.p2align	4, 0x90
_memstream_seek:                        ## @memstream_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_8
## %bb.3:
	movq	%rdi, %rcx
	jmp	LBB0_5
LBB0_4:
	xorl	%ecx, %ecx
	cmpl	$0, 12(%rdi)
	sete	%cl
	leaq	(%rdi,%rcx,4), %rcx
	addq	$4, %rcx
LBB0_5:
	addl	(%rcx), %esi
LBB0_6:
	cmpl	8(%rdi), %esi
	jg	LBB0_8
## %bb.7:
	movl	%esi, (%rdi)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstream_seek                 ; -- Begin function memstream_seek
	.p2align	2
_memstream_seek:                        ; @memstream_seek
	.cfi_startproc
; %bb.0:
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x8, x0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x0, #12]
	add	x9, x0, #4
	add	x10, x0, #8
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_5:
	ldr	w8, [x8]
	add	w1, w8, w1
LBB0_6:
	ldr	w8, [x0, #8]
	cmp	w1, w8
	b.le	LBB0_8
LBB0_7:
	mov	w0, #-1
	ret
LBB0_8:
	str	w1, [x0]
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
