	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_rew                         ## -- Begin function ex_rew
	.p2align	4, 0x90
_ex_rew:                                ## @ex_rew
	.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	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movl	(%rsi), %edi
	movq	_E_C_FORCE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_FL_ISSET
	movq	_FS_ALL@GOTPCREL(%rip), %rcx
	movq	_FS_POSSIBLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_file_m1
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	8(%rbx), %rax
	movq	%rax, (%rbx)
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_file_add
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %r12
	movq	_FS_SETALT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_FL_ISSET
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_FS_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_file_init
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_SC_FSWITCH@GOTPCREL(%rip), %rax
	movq	_SC_STATUS_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_1:
	movq	_M_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_msgq
	movl	$1, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_ERR,4,2                      ## @M_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"113|No previous files to rewind"

	.comm	_E_C_FORCE,4,2                  ## @E_C_FORCE
	.comm	_FS_ALL,4,2                     ## @FS_ALL
	.comm	_FS_POSSIBLE,4,2                ## @FS_POSSIBLE
	.comm	_FS_SETALT,4,2                  ## @FS_SETALT
	.comm	_FS_FORCE,4,2                   ## @FS_FORCE
	.comm	_SC_FSWITCH,4,2                 ## @SC_FSWITCH
	.comm	_SC_STATUS_CNT,4,2              ## @SC_STATUS_CNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_rew                         ; -- Begin function ex_rew
	.p2align	2
_ex_rew:                                ; @ex_rew
	.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	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, x1
	ldr	w0, [x1]
Lloh0:
	adrp	x22, _E_C_FORCE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _E_C_FORCE@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_FL_ISSET
	mov	x1, x0
Lloh2:
	adrp	x8, _FS_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FS_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FS_POSSIBLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FS_POSSIBLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_file_m1
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _M_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msgq
	mov	w0, #1
LBB0_4:
	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
LBB0_5:
	ldr	x8, [x19, #8]
	str	x8, [x19]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_file_add
	cbz	x0, LBB0_2
; %bb.6:
	mov	x21, x0
Lloh13:
	adrp	x8, _FS_SETALT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FS_SETALT@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	ldr	w0, [x20]
	ldr	w1, [x22]
	bl	_FL_ISSET
Lloh16:
	adrp	x8, _FS_FORCE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FS_FORCE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w3, w8, w23
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	bl	_file_init
	cbnz	x0, LBB0_2
; %bb.7:
Lloh19:
	adrp	x8, _SC_FSWITCH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SC_FSWITCH@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _SC_STATUS_CNT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SC_STATUS_CNT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_M_ERR,4,2                      ; @M_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"113|No previous files to rewind"

	.comm	_E_C_FORCE,4,2                  ; @E_C_FORCE
	.comm	_FS_ALL,4,2                     ; @FS_ALL
	.comm	_FS_POSSIBLE,4,2                ; @FS_POSSIBLE
	.comm	_FS_SETALT,4,2                  ; @FS_SETALT
	.comm	_FS_FORCE,4,2                   ; @FS_FORCE
	.comm	_SC_FSWITCH,4,2                 ; @SC_FSWITCH
	.comm	_SC_STATUS_CNT,4,2              ; @SC_STATUS_CNT
.subsections_via_symbols
