	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fmemopen_seek
_fmemopen_seek:                         ## @fmemopen_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	%esi, %eax
	cmpl	$130, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.3:
	cmpl	%eax, (%rdi)
	jl	LBB0_9
	jmp	LBB0_4
LBB0_5:
	addl	4(%rdi), %eax
	cmpl	(%rdi), %eax
	jle	LBB0_4
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	jg	LBB0_9
## %bb.8:
	movl	%eax, %edx
	negl	%edx
	movl	8(%rdi), %ecx
	cmpl	%edx, %ecx
	jge	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_10:
	addl	%ecx, %eax
LBB0_4:
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_fmemopen_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fmemopen_seek
_fmemopen_seek:                         ; @fmemopen_seek
	.cfi_startproc
; %bb.0:
	cmp	w2, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #128
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x0]
	cmp	w8, w1
	b.lt	LBB0_7
	b	LBB0_9
LBB0_4:
	ldp	w9, w8, [x0]
	add	w1, w8, w1
	cmp	w1, w9
	b.le	LBB0_9
	b	LBB0_7
LBB0_5:
	cmp	w1, #0
	b.gt	LBB0_7
; %bb.6:
	ldr	w8, [x0, #8]
	neg	w9, w1
	cmp	w8, w9
	b.ge	LBB0_8
LBB0_7:
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
LBB0_8:
	add	w1, w8, w1
LBB0_9:
	str	w1, [x0, #4]
	mov	x0, x1
	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	_fmemopen_seek
.subsections_via_symbols
