	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_reference_file         ## -- Begin function extract_reference_file
	.p2align	4, 0x90
_extract_reference_file:                ## @extract_reference_file
	.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
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_refdir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	leaq	-1072(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	callq	_failure
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	testq	%r15, %r15
	je	LBB0_14
## %bb.1:
	leaq	-1072(%rbp), %r14
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, %r13
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	leaq	-1072(%rbp), %rbx
	movq	%r15, -1080(%rbp)               ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	-1080(%rbp), %r15               ## 8-byte Reload
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movsbl	-1072(%rbp), %edi
	callq	_UUDECODE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %r15d
	leaq	-1071(%rbp), %r14
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%r14), %edi
	callq	_VALID_UUDECODE
	movl	%eax, %edi
	callq	_assert
	movsbl	1(%r14), %edi
	callq	_VALID_UUDECODE
	movl	%eax, %edi
	callq	_assert
	movsbl	(%r14), %edi
	callq	_UUDECODE
	movl	%eax, %r12d
	shll	$18, %r12d
	movsbl	1(%r14), %edi
	callq	_UUDECODE
	movl	%eax, %ebx
	shll	$12, %ebx
	orl	%ebx, %r12d
	sarl	$16, %r12d
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_fputc
	cmpl	$1, %r15d
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movsbl	2(%r14), %edi
	callq	_VALID_UUDECODE
	movl	%eax, %edi
	callq	_assert
	movsbl	2(%r14), %edi
	callq	_UUDECODE
	movl	%eax, %r12d
	shll	$6, %r12d
	orl	%r12d, %ebx
	movzbl	%bh, %edi
	movq	%r13, %rsi
	callq	_fputc
	cmpl	$2, %r15d
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movsbl	3(%r14), %edi
	callq	_VALID_UUDECODE
	movl	%eax, %edi
	callq	_assert
	movsbl	3(%r14), %edi
	callq	_UUDECODE
	orl	%r12d, %eax
	movzbl	%al, %edi
	movq	%r13, %rsi
	callq	_fputc
	addq	$4, %r14
	addl	$-3, %r15d
	jne	LBB0_10
	jmp	LBB0_6
LBB0_13:
	movq	%r13, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_fclose
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s.uu"

	.comm	_refdir,8,3                     ## @refdir
L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"Couldn't open reference file %s"

L_.str.3:                               ## @.str.3
	.asciz	"begin "

L_.str.4:                               ## @.str.4
	.asciz	"wb"

L_.str.5:                               ## @.str.5
	.asciz	"end"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extract_reference_file         ; -- Begin function extract_reference_file
	.p2align	2
_extract_reference_file:                ; @extract_reference_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1040
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _refdir@GOTPAGE
Lloh4:
	ldr	x8, [x8, _refdir@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x3, x20
	bl	_sprintf
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_fopen
	mov	x19, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #8
	bl	_failure
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	cbz	x19, LBB0_14
; %bb.1:
Lloh12:
	adrp	x21, l_.str.3@PAGE
Lloh13:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.4:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_fopen
	mov	x20, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_13
; %bb.5:
	add	x24, x21, #1
Lloh16:
	adrp	x21, l_.str.5@PAGE
Lloh17:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsb	w0, [sp, #8]
	bl	_UUDECODE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	mov	x25, x24
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25]
	bl	_VALID_UUDECODE
	bl	_assert
	ldrsb	w0, [x25, #1]
	bl	_VALID_UUDECODE
	bl	_assert
	ldrsb	w0, [x25]
	bl	_UUDECODE
	mov	x23, x0
	ldrsb	w0, [x25, #1]
	bl	_UUDECODE
	lsl	w26, w0, #12
	orr	w8, w26, w23, lsl #18
	asr	w0, w8, #16
	mov	x1, x20
	bl	_fputc
	cmp	w22, #1
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrsb	w0, [x25, #2]
	bl	_VALID_UUDECODE
	bl	_assert
	ldrsb	w0, [x25, #2]
	bl	_UUDECODE
	lsl	w23, w0, #6
	orr	w8, w23, w26
	ubfx	w0, w8, #8, #8
	mov	x1, x20
	bl	_fputc
	cmp	w22, #2
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrsb	w0, [x25, #3]
	bl	_VALID_UUDECODE
	bl	_assert
	ldrsb	w0, [x25, #3]
	bl	_UUDECODE
	orr	w8, w0, w23
	and	w0, w8, #0xff
	mov	x1, x20
	bl	_fputc
	add	x25, x25, #4
	subs	w22, w22, #3
	b.ne	LBB0_10
	b	LBB0_6
LBB0_13:
	mov	x0, x20
	bl	_fclose
	mov	x0, x19
	bl	_fclose
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s.uu"

	.comm	_refdir,8,3                     ; @refdir
l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"Couldn't open reference file %s"

l_.str.3:                               ; @.str.3
	.asciz	"begin "

l_.str.4:                               ; @.str.4
	.asciz	"wb"

l_.str.5:                               ; @.str.5
	.asciz	"end"

.subsections_via_symbols
