	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realfs_lseek                   ## -- Begin function realfs_lseek
	.p2align	4, 0x90
_realfs_lseek:                          ## @realfs_lseek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	cmpq	$0, 8(%rdi)
	movq	_LSEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_3
## %bb.1:
	cmpl	%edx, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rsi
	callq	_realfs_seekdir
	jmp	LBB0_12
LBB0_3:
	cmpl	%edx, %eax
	jne	LBB0_5
## %bb.4:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_LSEEK_CUR@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_LSEEK_END@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_11
## %bb.8:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edx
	movl	(%rdi), %edi
	movq	%rbx, %rsi
	callq	_lseek
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_10
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_errno_map                      ## TAILCALL
LBB0_11:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_LSEEK_SET,4,2                  ## @LSEEK_SET
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_LSEEK_CUR,4,2                  ## @LSEEK_CUR
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_LSEEK_END,4,2                  ## @LSEEK_END
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	__EINVAL,8,3                    ## @_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_realfs_lseek                   ; -- Begin function realfs_lseek
	.p2align	2
_realfs_lseek:                          ; @realfs_lseek
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x8, _LSEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LSEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x9, #0
	ccmp	w8, w2, #0, ne
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	x1, x19
	bl	_realfs_seekdir
	b	LBB0_11
LBB0_4:
Lloh5:
	adrp	x8, _LSEEK_CUR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LSEEK_CUR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _LSEEK_END@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LSEEK_END@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_10
; %bb.7:
Lloh13:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
LBB0_8:
	ldr	w2, [x8]
	ldr	w0, [x0]
	mov	x1, x19
	bl	_lseek
	mov	x19, x0
	tbz	x0, #63, LBB0_11
; %bb.9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_errno_map
LBB0_10:
Lloh15:
	adrp	x8, __EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_LSEEK_SET,4,2                  ; @LSEEK_SET
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_LSEEK_CUR,4,2                  ; @LSEEK_CUR
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_LSEEK_END,4,2                  ; @LSEEK_END
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	__EINVAL,8,3                    ; @_EINVAL
.subsections_via_symbols
