	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_bg_m3                   ## -- Begin function render_bg_m3
	.p2align	4, 0x90
_render_bg_m3:                          ## @render_bg_m3
	.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), %rax
	movq	_vram@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_reg@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %esi
	movl	16(%rcx), %edx
	andl	$15, %esi
	shlq	$10, %rsi
	movl	%edi, %ecx
	andl	$248, %ecx
	leaq	(%rsi,%rcx,4), %rcx
	leaq	(%r8,%rcx,4), %r9
	andl	$7, %edx
	shlq	$11, %rdx
	shrl	$2, %edi
	andl	$7, %edi
	orq	%rdx, %rdi
	leaq	(%r8,%rdi,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rsi), %edi
	shll	$3, %edi
	movslq	%edi, %rdi
	movl	(%rdx,%rdi,4), %ecx
	movl	%ecx, %edi
	shrl	$4, %edi
	andl	$15, %edi
	orl	$16, %edi
	movd	%edi, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 128(%rax,%rsi,8)
	andl	$15, %ecx
	orl	$16, %ecx
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 144(%rax,%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
	.globl	_render_bg_m3                   ; -- Begin function render_bg_m3
	.p2align	2
_render_bg_m3:                          ; @render_bg_m3
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, #0
Lloh0:
	adrp	x9, _linebuf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _linebuf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x9, #128
Lloh3:
	adrp	x10, _reg@GOTPAGE
Lloh4:
	ldr	x10, [x10, _reg@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x10]
	ldr	w10, [x11, #8]
	lsl	w10, w10, #10
	and	x10, x10, #0x3c00
	lsl	w12, w0, #2
	and	x12, x12, #0x3e0
	orr	x10, x10, x12
Lloh6:
	adrp	x12, _vram@GOTPAGE
Lloh7:
	ldr	x12, [x12, _vram@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	add	x10, x12, x10, lsl #2
	ldr	w11, [x11, #16]
	lsl	w11, w11, #11
	and	x11, x11, #0x3800
	bfxil	x11, x0, #2, #3
	add	x11, x12, x11, lsl #2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x8]
	lsl	w12, w12, #3
	ldr	w12, [x11, w12, sxtw #2]
	mov	w13, #16
	bfxil	w13, w12, #4, #4
	dup.4s	v0, w13
	mov	w13, #16
	bfxil	w13, w12, #0, #4
	dup.4s	v1, w13
	stp	q0, q1, [x9], #32
	add	x8, x8, #4
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.2:
	ret
	.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
