	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_bg_m0                   ## -- Begin function render_bg_m0
	.p2align	4, 0x90
_render_bg_m0:                          ## @render_bg_m0
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	movq	_linebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r11
	movq	_vram@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_reg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %esi
	movl	12(%rcx), %r9d
	andl	$15, %esi
	shlq	$10, %rsi
	movl	%edi, %eax
	andl	$248, %eax
	leaq	(%rsi,%rax,4), %rax
	leaq	(%r10,%rax,4), %r8
	movzbl	%r9b, %eax
	shlq	$6, %rax
	leaq	(%r10,%rax,4), %r9
	movl	16(%rcx), %eax
	andl	$7, %eax
	shlq	$11, %rax
	andl	$7, %edi
	orq	%rax, %rdi
	leaq	(%r10,%rdi,4), %r10
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rsi), %eax
	movl	%eax, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	movl	(%r9,%rcx,4), %edx
	shll	$3, %eax
	cltq
	movl	(%r10,%rax,4), %eax
	movl	%eax, %ecx
	shrb	$5, %cl
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 128(%r11,%rsi,8)
	movl	%eax, %ecx
	shrb	$4, %cl
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 132(%r11,%rsi,8)
	movl	%eax, %ecx
	shrb	$3, %cl
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 136(%r11,%rsi,8)
	movl	%eax, %ecx
	shrb	$2, %cl
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 140(%r11,%rsi,8)
	movl	%eax, %ecx
	shrb	%cl
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 144(%r11,%rsi,8)
	movl	%eax, %ecx
	andb	$4, %cl
	movl	%edx, %edi
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 148(%r11,%rsi,8)
	leal	(%rax,%rax), %ecx
	andb	$4, %cl
	movl	%edx, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %edi
	andl	$15, %edi
	orl	$16, %edi
	movl	%edi, 152(%r11,%rsi,8)
	shll	$2, %eax
	andb	$4, %al
	movl	%eax, %ecx
	sarl	%cl, %edx
	andl	$15, %edx
	orl	$16, %edx
	movl	%edx, 156(%r11,%rsi,8)
	addq	$4, %rsi
	cmpl	$128, %esi
	jne	LBB0_1
## %bb.2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_linebuf,8,3                    ## @linebuf
	.comm	_vram,8,3                       ## @vram
	.comm	_reg,8,3                        ## @reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function render_bg_m0
lCPI0_0:
	.long	4294967291                      ; 0xfffffffb
	.long	4294967292                      ; 0xfffffffc
	.long	4294967293                      ; 0xfffffffd
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_render_bg_m0
	.p2align	2
_render_bg_m0:                          ; @render_bg_m0
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, #0
Lloh0:
	adrp	x9, _reg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _reg@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	ldp	w9, w11, [x10, #8]
	lsl	w9, w9, #10
	and	x9, x9, #0x3c00
	lsl	w12, w0, #2
	and	x12, x12, #0x3e0
	orr	x12, x9, x12
Lloh3:
	adrp	x9, _linebuf@GOTPAGE
Lloh4:
	ldr	x9, [x9, _linebuf@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x9, #128
	ldr	w10, [x10, #16]
	lsl	w10, w10, #11
	and	x13, x10, #0x3800
	bfxil	x13, x0, #0, #3
Lloh6:
	adrp	x10, _vram@GOTPAGE
Lloh7:
	ldr	x10, [x10, _vram@GOTPAGEOFF]
Lloh8:
	ldr	x14, [x10]
	add	x10, x14, x12, lsl #2
	lsl	w11, w11, #6
	and	x11, x11, #0x3fc0
	add	x11, x14, x11, lsl #2
	add	x12, x14, x13, lsl #2
Lloh9:
	adrp	x13, lCPI0_0@PAGE
Lloh10:
	ldr	q0, [x13, lCPI0_0@PAGEOFF]
	movi.4s	v1, #4
	movi.4s	v2, #15
Lloh11:
	adrp	x13, lCPI0_1@PAGE
Lloh12:
	ldr	d3, [x13, lCPI0_1@PAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x8]
	lsl	w14, w13, #3
	ldr	w14, [x12, w14, sxtw #2]
	lsr	w15, w14, #1
	fmov	s4, w15
	asr	w13, w13, #3
	add	x13, x11, w13, sxtw #2
	dup.4s	v5, w14
	ushl.4s	v5, v5, v0
	dup.2s	v6, w14
	ushl.2s	v6, v6, v3
	mov.s	v4[1], w14
	and.16b	v5, v5, v1
	mov.d	v4[1], v6[0]
	ld1r.4s	{ v6 }, [x13]
	neg.4s	v5, v5
	sshl.4s	v5, v6, v5
	and.16b	v5, v5, v2
	and.16b	v4, v4, v1
	neg.4s	v4, v4
	sshl.4s	v4, v6, v4
	and.16b	v4, v4, v2
	orr.4s	v5, #16
	orr.4s	v4, #16
	stp	q5, q4, [x9], #32
	add	x8, x8, #4
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.2:
	ret
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_linebuf,8,3                    ; @linebuf
	.comm	_vram,8,3                       ; @vram
	.comm	_reg,8,3                        ; @reg
.subsections_via_symbols
