	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_file_seek                   ## -- Begin function dl_file_seek
	.p2align	4, 0x90
_dl_file_seek:                          ## @dl_file_seek
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	testl	%edi, %edi
	setns	%al
	movq	_MAX_FN@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	movl	%edx, %r14d
	movq	%rsi, %r15
	setg	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	_fd@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%ebx, %rbx
	xorl	%edi, %edi
	cmpl	$-1, (%rax,%rbx,4)
	setne	%dil
	callq	_assert
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_lseek
	cmpq	$-1, %rax
	je	LBB0_2
## %bb.1:
	movq	_fpos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rbx,8)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FN,4,2                     ## @MAX_FN
	.comm	_fd,8,3                         ## @fd
	.comm	_fpos,8,3                       ## @fpos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dl_file_seek                   ; -- Begin function dl_file_seek
	.p2align	2
_dl_file_seek:                          ; @dl_file_seek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _MAX_FN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, gt
	bl	_assert
Lloh3:
	adrp	x22, _fd@GOTPAGE
Lloh4:
	ldr	x22, [x22, _fd@GOTPAGEOFF]
	ldr	x8, [x22]
	sbfiz	x23, x19, #2, #32
	ldr	w8, [x8, x23]
	cmn	w8, #1
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22]
	ldr	w0, [x8, x23]
	mov	x1, x21
	mov	x2, x20
	bl	_lseek
	cmn	x0, #1
	b.eq	LBB0_2
; %bb.1:
	sxtw	x8, w19
Lloh5:
	adrp	x9, _fpos@GOTPAGE
Lloh6:
	ldr	x9, [x9, _fpos@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	str	x0, [x9, x8, lsl #3]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FN,4,2                     ; @MAX_FN
	.comm	_fd,8,3                         ; @fd
	.comm	_fpos,8,3                       ; @fpos
.subsections_via_symbols
