	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_line                    ## -- Begin function render_line
	.p2align	4, 0x90
_render_line:                           ## @render_line
	.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
	movl	%edi, %r15d
	movq	_bitmap@GOTPCREL(%rip), %r12
	movslq	(%r12), %r14
	movq	_reg@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testb	$64, 4(%rax)
	jne	LBB0_1
## %bb.8:
	movq	_system_hw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_MD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.9:
	movq	_spr_ovr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_status@GOTPCREL(%rip), %rdx
	orl	%ecx, (%rdx)
	movl	$0, (%rax)
	movl	%r15d, %edi
	callq	_parse_satb
LBB0_10:
	movq	_linebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	subq	$-128, %rdi
	movl	$64, %esi
	movl	%r14d, %edx
	callq	_memset
	jmp	LBB0_11
LBB0_1:
	movq	_bg_list_index@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_update_bg_pattern_cache
	movq	$0, (%r13)
LBB0_3:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_render_bg
	movl	%r14d, %edi
	callq	_render_obj
	movq	(%rbx), %rax
	testb	$32, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_system_hw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_SG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.5:
	movq	_linebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	subq	$-128, %rdi
	movl	$64, %esi
	movl	$8, %edx
	callq	_memset
LBB0_6:
	movl	4(%r12), %eax
	decl	%eax
	cmpl	%r15d, %eax
	jle	LBB0_11
## %bb.7:
	movl	%r15d, %edi
	callq	_parse_satb
LBB0_11:
	movslq	8(%r12), %rbx
	testq	%rbx, %rbx
	jle	LBB0_13
## %bb.12:
	movq	_linebuf@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	$32, %edi
	subq	%rbx, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r14,4), %rdi
	addq	$128, %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_memset
LBB0_13:
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_remap_line                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmap,12,2                    ## @bitmap
	.comm	_reg,8,3                        ## @reg
	.comm	_bg_list_index,8,3              ## @bg_list_index
	.comm	_system_hw,8,3                  ## @system_hw
	.comm	_SYSTEM_SG,8,3                  ## @SYSTEM_SG
	.comm	_linebuf,8,3                    ## @linebuf
	.comm	_SYSTEM_MD,8,3                  ## @SYSTEM_MD
	.comm	_spr_ovr,4,2                    ## @spr_ovr
	.comm	_status,4,2                     ## @status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_render_line                    ; -- Begin function render_line
	.p2align	2
_render_line:                           ; @render_line
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _bitmap@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bitmap@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x22, _reg@GOTPAGE
Lloh3:
	ldr	x22, [x22, _reg@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrb	w8, [x8, #4]
	tbnz	w8, #6, LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _system_hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SYSTEM_MD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SYSTEM_MD@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _spr_ovr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _spr_ovr@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh12:
	adrp	x10, _status@GOTPAGE
Lloh13:
	ldr	x10, [x10, _status@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
	str	wzr, [x8]
	mov	x0, x19
	bl	_parse_satb
LBB0_3:
Lloh14:
	adrp	x8, _linebuf@GOTPAGE
Lloh15:
	ldr	x8, [x8, _linebuf@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, #128
	mov	w1, #64
	mov	x2, x20
	bl	_memset
	b	LBB0_11
LBB0_4:
Lloh17:
	adrp	x23, _bg_list_index@GOTPAGE
Lloh18:
	ldr	x23, [x23, _bg_list_index@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_update_bg_pattern_cache
	str	xzr, [x23]
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_render_bg
	mov	x0, x20
	bl	_render_obj
	ldr	x8, [x22]
	ldrb	w8, [x8]
	tbz	w8, #5, LBB0_9
; %bb.7:
Lloh19:
	adrp	x8, _system_hw@GOTPAGE
Lloh20:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _SYSTEM_SG@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SYSTEM_SG@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _linebuf@GOTPAGE
Lloh26:
	ldr	x8, [x8, _linebuf@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x0, x8, #128
	mov	w1, #64
	mov	w2, #8
	bl	_memset
LBB0_9:
	ldr	w8, [x21, #4]
	sub	w8, w8, #1
	cmp	w8, w19
	b.le	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_parse_satb
LBB0_11:
	ldr	w21, [x21, #8]
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.12:
Lloh28:
	adrp	x22, _linebuf@GOTPAGE
Lloh29:
	ldr	x22, [x22, _linebuf@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	w9, #32
	sub	w9, w9, w21
	add	x0, x8, w9, sxtw #2
	mov	w1, #64
	mov	x2, x21
	bl	_memset
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	w9, w20, #32
	add	x0, x8, w9, sxtw #2
	mov	w1, #64
	mov	x2, x21
	bl	_memset
LBB0_13:
	mov	x0, x19
	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
	b	_remap_line
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_bitmap,12,2                    ; @bitmap
	.comm	_reg,8,3                        ; @reg
	.comm	_bg_list_index,8,3              ; @bg_list_index
	.comm	_system_hw,8,3                  ; @system_hw
	.comm	_SYSTEM_SG,8,3                  ; @SYSTEM_SG
	.comm	_linebuf,8,3                    ; @linebuf
	.comm	_SYSTEM_MD,8,3                  ; @SYSTEM_MD
	.comm	_spr_ovr,4,2                    ; @spr_ovr
	.comm	_status,4,2                     ; @status
.subsections_via_symbols
