	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filegen_setup                  ## -- Begin function filegen_setup
	.p2align	4, 0x90
_filegen_setup:                         ## @filegen_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FGEN_FLAG_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_7
## %bb.4:
	movl	$51, %ecx
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.11:
	cmpq	%r14, 24(%rbx)
	jg	LBB0_16
## %bb.12:
	xorl	%ecx, %ecx
	cmpq	%r14, 16(%rbx)
	jmp	LBB0_13
LBB0_1:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.2:
	callq	_fclose
	movq	$0, 8(%rbx)
	jmp	LBB0_17
LBB0_5:
	cmpl	$2, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$6, %eax
	jne	LBB0_7
## %bb.9:
	movq	_current_time@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 24(%rbx)
	jg	LBB0_16
## %bb.10:
	xorl	%ecx, %ecx
	cmpq	%rax, 16(%rbx)
LBB0_13:
	setg	%cl
	cmpq	$0, 8(%rbx)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpq	$0, 8(%rbx)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_8:
	movl	24(%rbx), %r15d
	xorl	%eax, %eax
	callq	_getpid
	xorl	%ecx, %ecx
	cmpl	%r15d, %eax
	sete	%cl
	cmpq	$0, 8(%rbx)
	je	LBB0_16
LBB0_15:
	testl	%ecx, %ecx
	jne	LBB0_17
LBB0_16:
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_DPRINTF
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_filegen_open
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FGEN_FLAG_ENABLED,4,2          ## @FGEN_FLAG_ENABLED
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_current_time,8,3               ## @current_time
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filegen_setup                  ; -- Begin function filegen_setup
	.p2align	2
_filegen_setup:                         ; @filegen_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FGEN_FLAG_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FGEN_FLAG_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_12
; %bb.2:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #51
	tst	w9, w10
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x19, #24]
	cmp	x8, x20
	b.gt	LBB0_15
; %bb.4:
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b	LBB0_11
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.6:
	bl	_fclose
	str	xzr, [x19, #8]
	b	LBB0_16
LBB0_7:
	cmp	w8, #2
	b.eq	LBB0_13
; %bb.8:
	cmp	w8, #6
	b.ne	LBB0_12
; %bb.9:
	ldr	x9, [x19, #24]
Lloh3:
	adrp	x8, _current_time@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current_time@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_15
; %bb.10:
	ldr	x9, [x19, #16]
	cmp	x9, x8
LBB0_11:
	cset	w8, gt
	b	LBB0_14
LBB0_12:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_13:
	ldr	w21, [x19, #24]
	bl	_getpid
	cmp	w0, w21
	cset	w8, eq
LBB0_14:
	ldr	x9, [x19, #8]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_16
LBB0_15:
	mov	w0, #1
	mov	x1, x20
	bl	_DPRINTF
	mov	x0, #0
	bl	_time
	str	w0, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_filegen_open
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FGEN_FLAG_ENABLED,4,2          ; @FGEN_FLAG_ENABLED
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_current_time,8,3               ; @current_time
.subsections_via_symbols
