	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fs_dev_seek_r
_fs_dev_seek_r:                         ## @fs_dev_seek_r
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	(%rax), %edi
	callq	_OSLockMutex
	cmpl	$130, %r13d
	je	LBB0_10
## %bb.7:
	cmpl	$129, %r13d
	je	LBB0_14
## %bb.8:
	cmpl	$128, %r13d
	je	LBB0_11
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$-1, %r12d
	jmp	LBB0_13
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_13
LBB0_10:
	addl	(%r15), %r14d
	jmp	LBB0_11
LBB0_14:
	addl	4(%r15), %r14d
LBB0_11:
	movl	%r14d, (%r15)
	movq	8(%r15), %rax
	movl	4(%rax), %edi
	movl	16(%r15), %esi
	movl	%r14d, %edx
	callq	_IOSUHAX_FSA_SetFilePos
	movl	%eax, %r12d
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_OSUnlockMutex
	testl	%r12d, %r12d
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENODEV,8,3                     ## @ENODEV
	.no_dead_strip	_fs_dev_seek_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fs_dev_seek_r
_fs_dev_seek_r:                         ; @fs_dev_seek_r
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	cbz	x1, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	x22, x3
	mov	x20, x2
	ldr	w0, [x8]
	bl	_OSLockMutex
	cmp	w22, #130
	b.eq	LBB0_11
; %bb.4:
	cmp	w22, #129
	b.eq	LBB0_12
; %bb.5:
	cmp	w22, #128
	b.eq	LBB0_14
; %bb.6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21]
	mov	w20, #-1
	b	LBB0_16
LBB0_7:
	mov	w20, #0
	b	LBB0_16
LBB0_8:
	mov	w20, #0
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w20, #0
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_16
LBB0_11:
	ldr	w8, [x19]
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #4]
LBB0_13:
	add	w20, w8, w20
LBB0_14:
	str	w20, [x19]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #16]
	mov	x2, x20
	bl	_IOSUHAX_FSA_SetFilePos
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_OSUnlockMutex
	cbnz	w20, LBB0_16
; %bb.15:
	ldr	w20, [x19]
LBB0_16:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENODEV,8,3                     ; @ENODEV
	.no_dead_strip	_fs_dev_seek_r
.subsections_via_symbols
