	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lseek                          ## -- Begin function lseek
	.p2align	4, 0x90
_lseek:                                 ## @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	%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
	movq	_SOPEN_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jbe	LBB0_6
## %bb.1:
	movq	_files@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	%edi, %r13
	shlq	$5, %r13
	leaq	(%r12,%r13), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	_F_RAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.3:
	cmpl	$129, %r14d
	je	LBB0_20
## %bb.4:
	cmpl	$128, %r14d
	je	LBB0_21
## %bb.5:
	movq	_EOFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EBADF@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	(%r12,%r13), %rdx
	addq	$8, %rdx
	movq	8(%r12,%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.11:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_19
## %bb.12:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12,%r13), %rax
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$129, %edx
	callq	*(%rax)
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.13:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	movl	%eax, %esi
	subl	%ecx, %esi
	movl	%ebx, %r8d
	cmpl	$128, %r14d
	je	LBB0_16
## %bb.14:
	cmpl	$129, %r14d
	jne	LBB0_23
## %bb.15:
	leal	(%rsi,%rbx), %r8d
LBB0_16:
	movl	%r8d, %edi
	subl	%esi, %edi
	jl	LBB0_19
## %bb.17:
	cmpl	%eax, %r8d
	jge	LBB0_19
## %bb.18:
	addl	%edi, 24(%r12,%r13)
	movslq	%edi, %rax
	subq	%rax, %rcx
	movq	%rcx, (%rdx)
	movl	%r8d, %ebx
	jmp	LBB0_9
LBB0_19:
	xorl	%eax, %eax
	cmpl	$129, %r14d
	cmovnel	%eax, %ecx
	subl	%ecx, %ebx
	movq	$0, (%rdx)
	movq	16(%r12,%r13), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_20:
	addl	4(%r12,%r13), %ebx
LBB0_21:
	movl	%ebx, 4(%r12,%r13)
	jmp	LBB0_9
LBB0_23:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_files,8,3                      ## @files
	.comm	_SOPEN_MAX,4,2                  ## @SOPEN_MAX
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_errno,4,2                      ## @errno
	.comm	_F_RAW,4,2                      ## @F_RAW
	.comm	_EOFFSET,4,2                    ## @EOFFSET
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lseek                          ; -- Begin function lseek
	.p2align	2
_lseek:                                 ; @lseek
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _SOPEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOPEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _files@GOTPAGE
Lloh4:
	ldr	x8, [x8, _files@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	sxtw	x23, w0
	add	x21, x22, x23, lsl #5
	ldr	w8, [x21]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x20, x2
	mov	x19, x1
Lloh6:
	adrp	x9, _F_RAW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _F_RAW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	cmp	w20, #129
	b.eq	LBB0_12
; %bb.4:
	cmp	w20, #128
	b.ne	LBB0_14
; %bb.5:
	add	x8, x22, x23, lsl #5
	b	LBB0_13
LBB0_6:
Lloh9:
	adrp	x8, _EBADF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
LBB0_8:
	mov	w19, #-1
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x25, x22, x23, lsl #5
	mov	x24, x25
	ldr	x8, [x24, #8]!
Lloh14:
	adrp	x9, _SEEK_END@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SEEK_END@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_15
LBB0_11:
	cmp	w20, #129
	csel	w8, w8, wzr, eq
	sub	w1, w19, w8
	str	xzr, [x24]
	ldr	x8, [x25, #16]
	ldr	x3, [x8]
	mov	x0, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x3
LBB0_12:
	add	x8, x22, x23, lsl #5
	ldr	w9, [x8, #4]
	add	w19, w9, w19
LBB0_13:
	str	w19, [x8, #4]
	b	LBB0_9
LBB0_14:
Lloh17:
	adrp	x8, _EOFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOFFSET@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
	ldr	x8, [x25, #16]
	ldr	x8, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #129
	blr	x8
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.16:
	ldr	x8, [x24]
	sub	w10, w0, w8
	mov	x9, x19
	cmp	w20, #128
	b.eq	LBB0_19
; %bb.17:
	cmp	w20, #129
	b.ne	LBB0_21
; %bb.18:
	add	w9, w10, w19
LBB0_19:
	subs	w10, w9, w10
	ccmp	w9, w0, #0, ge
	b.ge	LBB0_11
; %bb.20:
	add	x11, x22, x23, lsl #5
	ldr	w12, [x11, #24]
	add	w12, w12, w10
	str	w12, [x11, #24]
	sub	x8, x8, w10, sxtw
	str	x8, [x24]
	mov	x19, x9
	b	LBB0_9
LBB0_21:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_files,8,3                      ; @files
	.comm	_SOPEN_MAX,4,2                  ; @SOPEN_MAX
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_errno,4,2                      ; @errno
	.comm	_F_RAW,4,2                      ; @F_RAW
	.comm	_EOFFSET,4,2                    ; @EOFFSET
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
