	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Expand4                        ## -- Begin function Expand4
	.p2align	4, 0x90
_Expand4:                               ## @Expand4
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_exptable2@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_inited@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_InitExpand2
LBB0_2:
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,2), %edx
	movl	%edx, %r8d
	shrl	$31, %r8d
	addl	%edx, %r8d
	sarl	%r8d
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	shlq	$3, %r8
	negq	%r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r8, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%rsi), %ecx
	movzwl	%cx, %edx
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	leal	(%r15,%rcx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, (%rbx,%rsi,4)
	movsd	%xmm0, 1280(%rbx,%rsi,4)
	movsd	%xmm0, 2560(%rbx,%rsi,4)
	movsd	%xmm0, 3840(%rbx,%rsi,4)
	leal	(%r15,%rdx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%rbx,%rsi,4)
	movsd	%xmm0, 1288(%rbx,%rsi,4)
	movsd	%xmm0, 2568(%rbx,%rsi,4)
	movsd	%xmm0, 3848(%rbx,%rsi,4)
	movl	4(%r14,%rsi), %ecx
	movzwl	%cx, %edx
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	leal	(%r15,%rcx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 16(%rbx,%rsi,4)
	movsd	%xmm0, 1296(%rbx,%rsi,4)
	movsd	%xmm0, 2576(%rbx,%rsi,4)
	movsd	%xmm0, 3856(%rbx,%rsi,4)
	leal	(%r15,%rdx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 24(%rbx,%rsi,4)
	movsd	%xmm0, 1304(%rbx,%rsi,4)
	movsd	%xmm0, 2584(%rbx,%rsi,4)
	movsd	%xmm0, 3864(%rbx,%rsi,4)
	movl	8(%r14,%rsi), %ecx
	movzwl	%cx, %edx
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	leal	(%r15,%rcx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 32(%rbx,%rsi,4)
	movsd	%xmm0, 1312(%rbx,%rsi,4)
	movsd	%xmm0, 2592(%rbx,%rsi,4)
	movsd	%xmm0, 3872(%rbx,%rsi,4)
	leal	(%r15,%rdx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 40(%rbx,%rsi,4)
	movsd	%xmm0, 1320(%rbx,%rsi,4)
	movsd	%xmm0, 2600(%rbx,%rsi,4)
	movsd	%xmm0, 3880(%rbx,%rsi,4)
	movl	12(%r14,%rsi), %ecx
	movzwl	%cx, %edx
                                        ## kill: def $ecx killed $ecx def $rcx
	shrl	$16, %ecx
	leal	(%r15,%rcx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 48(%rbx,%rsi,4)
	movsd	%xmm0, 1328(%rbx,%rsi,4)
	movsd	%xmm0, 2608(%rbx,%rsi,4)
	movsd	%xmm0, 3888(%rbx,%rsi,4)
	leal	(%r15,%rdx,8), %ecx
	movsd	(%rcx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, 56(%rbx,%rsi,4)
	movsd	%xmm0, 1336(%rbx,%rsi,4)
	movsd	%xmm0, 2616(%rbx,%rsi,4)
	movsd	%xmm0, 3896(%rbx,%rsi,4)
	addq	$16, %rsi
	addq	$-64, %rdi
	cmpl	%esi, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%rdi, %rbx
	addq	%rsi, %r14
	decl	%r9d
	jne	LBB0_3
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exptable2,8,3                  ## @exptable2
	.comm	_inited,4,2                     ## @inited
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Expand4                        ; -- Begin function Expand4
	.p2align	2
_Expand4:                               ; @Expand4
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _exptable2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exptable2@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _inited@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inited@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
	bl	_InitExpand2
LBB0_2:
Lloh5:
	adrp	x8, _SCREENWIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCREENWIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	add	w9, w8, w8, lsl #1
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w10, w9, #1
Lloh8:
	adrp	x9, _SCREENHEIGHT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SCREENHEIGHT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	lsl	x10, x10, #3
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x11, x8
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w12, w13, [x20]
	lsr	w14, w12, #13
	and	w14, w14, #0x7fff8
	add	w14, w14, w21
	ldr	d0, [x14]
	str	d0, [x19]
	str	d0, [x19, #1280]
	str	d0, [x19, #2560]
	str	d0, [x19, #3840]
	ubfiz	w12, w12, #3, #16
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #8]
	str	d0, [x19, #1288]
	str	d0, [x19, #2568]
	str	d0, [x19, #3848]
	lsr	w12, w13, #13
	and	w12, w12, #0x7fff8
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #16]
	str	d0, [x19, #1296]
	str	d0, [x19, #2576]
	str	d0, [x19, #3856]
	ubfiz	w12, w13, #3, #16
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #24]
	str	d0, [x19, #1304]
	str	d0, [x19, #2584]
	str	d0, [x19, #3864]
	ldp	w12, w13, [x20, #8]
	lsr	w14, w12, #13
	and	w14, w14, #0x7fff8
	add	w14, w14, w21
	ldr	d0, [x14]
	str	d0, [x19, #32]
	str	d0, [x19, #1312]
	str	d0, [x19, #2592]
	str	d0, [x19, #3872]
	ubfiz	w12, w12, #3, #16
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #40]
	str	d0, [x19, #1320]
	str	d0, [x19, #2600]
	str	d0, [x19, #3880]
	lsr	w12, w13, #13
	and	w12, w12, #0x7fff8
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #48]
	str	d0, [x19, #1328]
	str	d0, [x19, #2608]
	str	d0, [x19, #3888]
	ubfiz	w12, w13, #3, #16
	add	w12, w12, w21
	ldr	d0, [x12]
	str	d0, [x19, #56]
	str	d0, [x19, #1336]
	str	d0, [x19, #2616]
	str	d0, [x19, #3896]
	add	x20, x20, #16
	add	x19, x19, #64
	subs	w11, w11, #16
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, x10
	subs	w9, w9, #1
	b.ne	LBB0_3
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_exptable2,8,3                  ; @exptable2
	.comm	_inited,4,2                     ; @inited
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
.subsections_via_symbols
