	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_seek
_io_seek:                               ## @io_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	(%rdi), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_INT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	8(%rdi), %rcx
LBB0_4:
	subq	%rcx, %rdx
	movq	$-1, %rax
	cmpq	%rsi, %rdx
	jl	LBB0_9
## %bb.5:
	addq	%rcx, %rsi
LBB0_6:
	movq	$-1, %rax
	testq	%rsi, %rsi
	js	LBB0_9
## %bb.7:
	cmpq	8(%rdi), %rsi
	jg	LBB0_9
## %bb.8:
	movq	%rsi, (%rdi)
	xorl	%eax, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.no_dead_strip	_io_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_seek
_io_seek:                               ; @io_seek
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
	ldr	x8, [x0]
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _INT64_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT64_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	ldr	x8, [x0, #8]
LBB0_4:
	sub	x9, x9, x8
	cmp	x9, x1
	b.lt	LBB0_8
; %bb.5:
	add	x1, x8, x1
LBB0_6:
	tbnz	x1, #63, LBB0_8
; %bb.7:
	ldr	x8, [x0, #8]
	cmp	x1, x8
	b.le	LBB0_9
LBB0_8:
	mov	x0, #-1
	ret
LBB0_9:
	str	x1, [x0]
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.no_dead_strip	_io_seek
.subsections_via_symbols
