	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtd_lseek
_mtd_lseek:                             ## @mtd_lseek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_9
## %bb.3:
	movq	%rdi, %rdx
	jmp	LBB0_5
LBB0_4:
	movq	%rcx, %rdx
LBB0_5:
	addq	(%rdx), %rax
LBB0_6:
	testq	%rax, %rax
	js	LBB0_9
## %bb.7:
	cmpq	(%rcx), %rax
	jle	LBB0_8
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_mtd_lseek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtd_lseek
_mtd_lseek:                             ; @mtd_lseek
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_8
; %bb.3:
	mov	x9, x0
	b	LBB0_5
LBB0_4:
	mov	x9, x8
LBB0_5:
	ldr	x9, [x9]
	add	x1, x9, x1
LBB0_6:
	tbnz	x1, #63, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.le	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x0, x8
	ret
LBB0_9:
	str	x1, [x0]
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_mtd_lseek
.subsections_via_symbols
