	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doskip                         ## -- Begin function doskip
	.p2align	4, 0x90
_doskip:                                ## @doskip
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r14
	movq	_stdin@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_fileno
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_3:
	movl	-40(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_skip@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rdx
	subq	%rdx, %rcx
	jle	LBB0_6
## %bb.5:
	movq	_address@GOTPCREL(%rip), %rsi
	addl	%edx, (%rsi)
	movq	%rcx, (%rax)
	jmp	LBB0_16
LBB0_6:
	movl	%ebx, %edi
	callq	_S_ISFIFO
	testq	%rax, %rax
	jne	LBB0_17
## %bb.7:
	movl	%ebx, %edi
	callq	_S_ISSOCK
	testq	%rax, %rax
	je	LBB0_8
LBB0_17:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_noseek                         ## TAILCALL
LBB0_8:
	movl	%ebx, %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	je	LBB0_14
LBB0_10:
	movl	(%r15), %edi
	callq	_fileno
	movq	_FIODTYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-28(%rbp), %rdx
	movl	%eax, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_12:
	movq	_D_TAPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	jne	LBB0_13
LBB0_14:
	movl	(%r15), %edi
	movq	_skip@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fseeko
	testq	%rax, %rax
	je	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	callq	_noseek
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%rbx), %eax
	movq	_address@GOTPCREL(%rip), %rcx
	addl	%eax, (%rcx)
	movq	$0, (%rbx)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_skip,8,3                       ## @skip
	.comm	_address,4,2                    ## @address
	.comm	_FIODTYPE,4,2                   ## @FIODTYPE
	.comm	_D_TAPE,4,2                     ## @D_TAPE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_doskip                         ; -- Begin function doskip
	.p2align	2
_doskip:                                ; @doskip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	cbz	w1, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _stdin@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_fileno
	add	x1, sp, #8
	bl	_fstat
	cbz	x0, LBB0_3
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_3:
	ldr	w20, [sp, #16]
	mov	x0, x20
	bl	_S_ISREG
	cbz	x0, LBB0_6
; %bb.4:
Lloh4:
	adrp	x8, _skip@GOTPAGE
Lloh5:
	ldr	x8, [x8, _skip@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [sp, #8]
	subs	x9, x9, x10
	b.le	LBB0_6
; %bb.5:
Lloh6:
	adrp	x11, _address@GOTPAGE
Lloh7:
	ldr	x11, [x11, _address@GOTPAGEOFF]
	ldr	w12, [x11]
	add	w10, w12, w10
	str	w10, [x11]
	str	x9, [x8]
	b	LBB0_16
LBB0_6:
	mov	x0, x20
	bl	_S_ISFIFO
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_S_ISSOCK
	cbz	x0, LBB0_9
LBB0_8:
	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
	add	sp, sp, #80
	b	_noseek
LBB0_9:
	mov	x0, x20
	bl	_S_ISCHR
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_S_ISBLK
	cbz	x0, LBB0_14
LBB0_11:
	ldr	w0, [x21]
	bl	_fileno
Lloh8:
	adrp	x8, _FIODTYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIODTYPE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #28
	bl	_ioctl
	cbz	x0, LBB0_13
; %bb.12:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_13:
	ldr	w8, [sp, #28]
Lloh13:
	adrp	x9, _D_TAPE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _D_TAPE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
LBB0_14:
	ldr	w0, [x21]
Lloh16:
	adrp	x19, _skip@GOTPAGE
Lloh17:
	ldr	x19, [x19, _skip@GOTPAGEOFF]
	ldr	x1, [x19]
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_fseeko
	cbz	x0, LBB0_17
LBB0_15:
	bl	_noseek
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _address@GOTPAGE
Lloh22:
	ldr	x9, [x9, _address@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w10, w8
	str	w8, [x9]
	str	xzr, [x19]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_skip,8,3                       ; @skip
	.comm	_address,4,2                    ; @address
	.comm	_FIODTYPE,4,2                   ; @FIODTYPE
	.comm	_D_TAPE,4,2                     ; @D_TAPE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
