	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copyfont
_copyfont:                              ## @copyfont
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	movq	%rax, %r12
	leaq	_copyfont.buffer(%rip), %rdi
	movl	$1, %esi
	movl	$8096, %edx                     ## imm = 0x1FA0
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	_copyfont.buffer(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_fwrite
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$8096, %edx                     ## imm = 0x1FA0
	movq	%r13, %rcx
	callq	_fread
	testq	%rax, %rax
	jne	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_getErrorCnt
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movl	%eax, %ebx
	movq	_SEEK_SET@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movl	$255, %esi
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_getRandom
	movl	%eax, %edi
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rsi
	callq	_putc
	decl	%ebx
	je	LBB0_15
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	decl	%esi
	xorl	%edi, %edi
	callq	_getRandom
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_fseek
	cmpq	$0, 24(%r15)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 16(%r15)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$32, %edi
	movl	$126, %esi
	jmp	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%edi, %edi
	movl	$15, %esi
	callq	_getRandom
                                        ## kill: def $eax killed $eax def $rax
	leal	55(%rax), %ecx
	leal	48(%rax), %edi
	cmpl	$10, %eax
	cmovgel	%ecx, %edi
	jmp	LBB0_14
LBB0_15:
	movq	%r12, %rdi
	callq	_ferror
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_fclose
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.17:
	movq	%r14, %rdi
	callq	_unlink
	jmp	LBB0_18
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_16:
	movl	$1, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_copyfont.buffer,8096,4 ## @copyfont.buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Can't open `%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"w+"

L_.str.3:                               ## @.str.3
	.asciz	"Can't create temporary output file `%s'\n"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_copyfont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copyfont
_copyfont:                              ; @copyfont
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_20
; %bb.2:
	mov	x21, x0
Lloh4:
	adrp	x0, _copyfont.buffer@PAGE
Lloh5:
	add	x0, x0, _copyfont.buffer@PAGEOFF
	mov	w1, #1
	mov	w2, #8096
	mov	x3, x22
	bl	_fread
	cbz	x0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh6:
	adrp	x23, _copyfont.buffer@PAGE
Lloh7:
	add	x23, x23, _copyfont.buffer@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #1
	mov	x3, x21
	bl	_fwrite
	mov	x0, x23
	mov	w1, #1
	mov	w2, #8096
	mov	x3, x22
	bl	_fread
	mov	x2, x0
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x22
	bl	_fclose
	mov	x0, x20
	bl	_getErrorCnt
	cbz	w0, LBB0_14
; %bb.6:
	mov	x22, x0
Lloh8:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	mov	w24, #55
	mov	w25, #48
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	mov	w1, #255
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	bl	_getRandom
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, x21
	bl	_putc
	subs	w22, w22, #1
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #8]
	sub	w1, w8, #1
	mov	w0, #0
	bl	_getRandom
	mov	x1, x0
	ldr	w2, [x23]
	mov	x0, x21
	bl	_fseek
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #32
	mov	w1, #126
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	mov	w1, #15
	bl	_getRandom
	cmp	w0, #10
	csel	w8, w25, w24, lt
	add	w0, w8, w0
	b	LBB0_9
LBB0_14:
	mov	x0, x21
	bl	_ferror
	mov	x20, x0
	mov	x0, x21
	bl	_fclose
	cbz	x20, LBB0_18
; %bb.15:
	mov	x0, x19
	bl	_unlink
	b	LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x2, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
	mov	w0, #1
LBB0_19:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_copyfont.buffer,8096,0 ; @copyfont.buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Can't open `%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"w+"

l_.str.3:                               ; @.str.3
	.asciz	"Can't create temporary output file `%s'\n"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_copyfont
.subsections_via_symbols
