	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function antic_load
_antic_load:                            ## @antic_load
	.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	_screenaddr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_chars_read@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_md@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	leal	(%rdx,%rdi), %r12d
	movl	%r12d, %eax
	xorl	%edi, %eax
	testl	$61440, %eax                    ## imm = 0xF000
	je	LBB0_12
## %bb.1:
	movl	%edi, %ebx
	negl	%ebx
	movl	%ebx, %r14d
	andl	$4095, %r14d                    ## imm = 0xFFF
	movq	_ANTIC_xe_ptr@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	jg	LBB0_6
## %bb.3:
	cmpl	$16384, %edi                    ## imm = 0x4000
	jl	LBB0_6
## %bb.4:
	movq	_antic_memory@GOTPCREL(%rip), %rdx
	movq	_ANTIC_margin@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	shlq	$2, %rax
	addq	(%rdx), %rax
	addl	$-16384, %edi                   ## imm = 0xC000
	leaq	(%rcx,%rdi,4), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r12d, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	je	LBB0_11
## %bb.5:
	movslq	(%rbx), %rax
	shlq	$2, %rax
	movq	_antic_memory@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r14d, %ecx
	leaq	(%rax,%rcx,4), %rdi
	movl	(%r15), %eax
	addl	%r14d, %eax
	addl	$-20480, %eax                   ## imm = 0xB000
	movslq	%eax, %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	callq	_memcpy
	addl	$-4096, %r12d                   ## imm = 0xF000
	jmp	LBB0_19
LBB0_12:
	movq	_ANTIC_xe_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.13:
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	jg	LBB0_16
## %bb.14:
	cmpl	$16384, %edi                    ## imm = 0x4000
	jl	LBB0_16
## %bb.15:
	movq	_antic_memory@GOTPCREL(%rip), %rsi
	movq	_ANTIC_margin@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rsi), %rax
	addl	$-16384, %edi                   ## imm = 0xC000
	leaq	(%rcx,%rdi,4), %rsi
	movq	%rax, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	jmp	LBB0_19
LBB0_6:
	movl	%edi, %eax
	andl	$61440, %eax                    ## imm = 0xF000
	movq	_antic_memory@GOTPCREL(%rip), %rcx
	movq	_ANTIC_margin@GOTPCREL(%rip), %r13
	movslq	(%r13), %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r14d, %edx
	cmpl	$53248, %eax                    ## imm = 0xD000
	jne	LBB0_9
## %bb.7:
	callq	_MEMORY_CopyFromMem
	movl	%r12d, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	je	LBB0_11
## %bb.8:
	orl	$-4096, %ebx                    ## imm = 0xF000
	addl	(%r15), %ebx
	movslq	(%r13), %rax
	shlq	$2, %rax
	movq	_antic_memory@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r14d, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movl	%ebx, %edi
	callq	_MEMORY_CopyFromMem
	addl	$-4096, %r12d                   ## imm = 0xF000
	jmp	LBB0_19
LBB0_16:
	movl	%edi, %eax
	andl	$61440, %eax                    ## imm = 0xF000
	movq	_antic_memory@GOTPCREL(%rip), %rcx
	movq	_ANTIC_margin@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $edx killed $edx killed $rdx
	cmpl	$53248, %eax                    ## imm = 0xD000
	jne	LBB0_18
## %bb.17:
	callq	_MEMORY_CopyFromMem
	jmp	LBB0_19
LBB0_9:
	callq	_MEMORY_dCopyFromMem
	movl	%r12d, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	je	LBB0_11
## %bb.10:
	orl	$-4096, %ebx                    ## imm = 0xF000
	addl	(%r15), %ebx
	movslq	(%r13), %rax
	shlq	$2, %rax
	movq	_antic_memory@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movl	%r14d, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movl	%ebx, %edi
	callq	_MEMORY_dCopyFromMem
LBB0_11:
	addl	$-4096, %r12d                   ## imm = 0xF000
	jmp	LBB0_19
LBB0_18:
	callq	_MEMORY_dCopyFromMem
LBB0_19:
	movl	%r12d, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screenaddr,4,2                 ## @screenaddr
	.comm	_chars_read,8,3                 ## @chars_read
	.comm	_md,8,3                         ## @md
	.comm	_ANTIC_xe_ptr,8,3               ## @ANTIC_xe_ptr
	.comm	_antic_memory,8,3               ## @antic_memory
	.comm	_ANTIC_margin,4,2               ## @ANTIC_margin
	.no_dead_strip	_antic_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function antic_load
_antic_load:                            ; @antic_load
	.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
Lloh0:
	adrp	x20, _screenaddr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _screenaddr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _chars_read@GOTPAGE
Lloh3:
	ldr	x8, [x8, _chars_read@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _md@GOTPAGE
Lloh6:
	ldr	x9, [x9, _md@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	add	w21, w2, w0
	eor	w8, w21, w0
	tst	w8, #0xf000
	b.eq	LBB0_6
; %bb.1:
	neg	w22, w0
	and	w19, w22, #0xfff
Lloh8:
	adrp	x23, _ANTIC_xe_ptr@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ANTIC_xe_ptr@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.2:
	cmp	w0, #8, lsl #12                 ; =32768
	b.ge	LBB0_10
; %bb.3:
	subs	w9, w0, #4, lsl #12             ; =16384
	b.lt	LBB0_10
; %bb.4:
Lloh10:
	adrp	x22, _antic_memory@GOTPAGE
Lloh11:
	ldr	x22, [x22, _antic_memory@GOTPAGEOFF]
	ldr	x10, [x22]
Lloh12:
	adrp	x24, _ANTIC_margin@GOTPAGE
Lloh13:
	ldr	x24, [x24, _ANTIC_margin@GOTPAGEOFF]
	ldrsw	x11, [x24]
	add	x0, x10, x11, lsl #2
	add	x1, x8, w9, uxtw #2
	mov	x2, x19
	bl	_memcpy
	ands	w2, w21, #0xfff
	b.eq	LBB0_17
; %bb.5:
	ldr	x8, [x22]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x0, x8, w19, uxtw #2
	ldr	x8, [x23]
	ldr	w9, [x20]
	add	w9, w9, w19
	sub	w9, w9, #5, lsl #12             ; =20480
	add	x1, x8, w9, sxtw #2
	bl	_memcpy
	sub	w21, w21, #1, lsl #12           ; =4096
	b	LBB0_19
LBB0_6:
Lloh14:
	adrp	x8, _ANTIC_xe_ptr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ANTIC_xe_ptr@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.7:
	cmp	w0, #8, lsl #12                 ; =32768
	b.ge	LBB0_13
; %bb.8:
	subs	w9, w0, #4, lsl #12             ; =16384
	b.lt	LBB0_13
; %bb.9:
Lloh17:
	adrp	x10, _antic_memory@GOTPAGE
Lloh18:
	ldr	x10, [x10, _antic_memory@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	adrp	x11, _ANTIC_margin@GOTPAGE
Lloh21:
	ldr	x11, [x11, _ANTIC_margin@GOTPAGEOFF]
Lloh22:
	ldrsw	x11, [x11]
	add	x0, x10, x11, lsl #2
	add	x1, x8, w9, uxtw #2
	bl	_memcpy
	b	LBB0_19
LBB0_10:
	and	w8, w0, #0xf000
Lloh23:
	adrp	x23, _antic_memory@GOTPAGE
Lloh24:
	ldr	x23, [x23, _antic_memory@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh25:
	adrp	x24, _ANTIC_margin@GOTPAGE
Lloh26:
	ldr	x24, [x24, _ANTIC_margin@GOTPAGEOFF]
	ldrsw	x10, [x24]
	add	x1, x9, x10, lsl #2
	mov	x2, x19
	cmp	w8, #13, lsl #12                ; =53248
	b.ne	LBB0_15
; %bb.11:
	bl	_MEMORY_CopyFromMem
	ands	w2, w21, #0xfff
	b.eq	LBB0_17
; %bb.12:
	ldr	w8, [x20]
	orr	w9, w22, #0xfffff000
	add	w0, w9, w8
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x1, x8, w19, uxtw #2
	bl	_MEMORY_CopyFromMem
	sub	w21, w21, #1, lsl #12           ; =4096
	b	LBB0_19
LBB0_13:
	and	w8, w0, #0xf000
Lloh27:
	adrp	x9, _antic_memory@GOTPAGE
Lloh28:
	ldr	x9, [x9, _antic_memory@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x10, _ANTIC_margin@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ANTIC_margin@GOTPAGEOFF]
Lloh32:
	ldrsw	x10, [x10]
	add	x1, x9, x10, lsl #2
	cmp	w8, #13, lsl #12                ; =53248
	b.ne	LBB0_18
; %bb.14:
	bl	_MEMORY_CopyFromMem
	b	LBB0_19
LBB0_15:
	bl	_MEMORY_dCopyFromMem
	ands	w2, w21, #0xfff
	b.eq	LBB0_17
; %bb.16:
	ldr	w8, [x20]
	orr	w9, w22, #0xfffff000
	add	w0, w9, w8
	ldr	x8, [x23]
	ldrsw	x9, [x24]
	add	x8, x8, x9, lsl #2
	add	x1, x8, w19, uxtw #2
	bl	_MEMORY_dCopyFromMem
LBB0_17:
	sub	w21, w21, #1, lsl #12           ; =4096
	b	LBB0_19
LBB0_18:
	bl	_MEMORY_dCopyFromMem
LBB0_19:
	str	w21, [x20]
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_screenaddr,4,2                 ; @screenaddr
	.comm	_chars_read,8,3                 ; @chars_read
	.comm	_md,8,3                         ; @md
	.comm	_ANTIC_xe_ptr,8,3               ; @ANTIC_xe_ptr
	.comm	_antic_memory,8,3               ; @antic_memory
	.comm	_ANTIC_margin,4,2               ; @ANTIC_margin
	.no_dead_strip	_antic_load
.subsections_via_symbols
