	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_seek
_mem_seek:                              ## @mem_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	cmpl	$130, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.3:
	movslq	%esi, %rax
	movq	(%rcx), %rdx
	cmpq	%rax, %rdx
	cmovael	%esi, %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	cmovgl	%edx, %eax
	movl	12(%rcx), %edx
	addl	%eax, %edx
	movl	%edx, 8(%rcx)
	popq	%rbp
	retq
LBB0_4:
	addl	8(%rcx), %esi
	movq	(%rdi), %rax
	subl	12(%rcx), %esi
	jmp	LBB0_6
LBB0_5:
	movq	(%rdi), %rax
	addl	(%rcx), %esi
LBB0_6:
	movl	$128, %edx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_mem_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_seek
_mem_seek:                              ; @mem_seek
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cmp	w2, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x8]
	cmp	x9, w1, sxtw
	csel	w9, w9, w1, lo
	cmp	w9, #0
	csel	w0, w9, wzr, gt
	ldr	w9, [x8, #12]
	add	w9, w0, w9
	str	w9, [x8, #8]
	ret
LBB0_4:
	ldr	x3, [x0]
	ldp	w9, w8, [x8, #8]
	add	w9, w9, w1
	sub	w1, w9, w8
	mov	w2, #128
	br	x3
LBB0_5:
	ldr	x3, [x0]
	ldr	w8, [x8]
	add	w1, w8, w1
	mov	w2, #128
	br	x3
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	mov	w0, #-1
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_mem_seek
.subsections_via_symbols
