	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_satb_m4                  ## -- Begin function parse_satb_m4
	.p2align	4, 0x90
_parse_satb_m4:                         ## @parse_satb_m4
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	20(%rax), %eax
	andl	$2, %ecx
	shll	$7, %eax
	xorl	$-16257, %eax                   ## imm = 0xC07F
	movq	_system_hw@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	movq	_SYSTEM_SMS@GOTPCREL(%rip), %rdx
	movl	%eax, %r13d
	orl	$128, %r13d
	cmpq	(%rdx), %r10
	leal	8(,%rcx,4), %r9d
	cmovlel	%eax, %r13d
	movq	_vram@GOTPCREL(%rip), %rax
	movl	%r13d, %edx
	andl	$16128, %edx                    ## imm = 0x3F00
	shlq	$3, %rdx
	addq	(%rax), %rdx
	movq	_bitmap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	16(%rax), %r15d
	movq	_SYSTEM_MD@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%ebx, %ebx
	movq	_object_info@GOTPCREL(%rip), %r12
	xorl	%r8d, %r8d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %rbx
	cmpq	$128, %rbx
	je	LBB0_12
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx,4), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-256(%rcx), %r11d
	cmpl	$240, %ecx
	cmovll	%ecx, %r11d
	movl	%edi, %esi
	subl	%r11d, %esi
	cmpq	%r14, %r10
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movzbl	4(%rcx), %ecx
	andb	$1, %cl
	sarl	%cl, %esi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%esi, %esi
	js	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r9d, %esi
	jge	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$8, %r8d
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rcx
	movslq	%r8d, %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	movl	%esi, (%rcx,%rax)
	leal	128(%rbx), %esi
	andl	%r13d, %esi
	movq	(%rdx,%rsi,8), %rsi
	movq	%rsi, 16(%rcx,%rax)
	leal	129(%rbx), %ecx
	andl	%r13d, %ecx
	movq	(%rdx,%rcx,8), %rcx
	movq	(%r12), %rsi
	movq	%rcx, 8(%rsi,%rax)
	incl	%r8d
	jmp	LBB0_11
LBB0_7:
	movl	$8, %r8d
	testl	%edi, %edi
	js	LBB0_12
## %bb.8:
	cmpl	%edi, -48(%rbp)                 ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.9:
	movq	_spr_ovr@GOTPCREL(%rip), %rcx
	movl	$64, (%rcx)
LBB0_12:
	movq	_object_count@GOTPCREL(%rip), %rax
	movl	%r8d, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg,8,3                        ## @reg
	.comm	_system_hw,8,3                  ## @system_hw
	.comm	_SYSTEM_SMS,8,3                 ## @SYSTEM_SMS
	.comm	_vram,8,3                       ## @vram
	.comm	_bitmap,4,2                     ## @bitmap
	.comm	_SYSTEM_MD,8,3                  ## @SYSTEM_MD
	.comm	_spr_ovr,4,2                    ## @spr_ovr
	.comm	_object_info,8,3                ## @object_info
	.comm	_object_count,4,2               ## @object_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_satb_m4                  ; -- Begin function parse_satb_m4
	.p2align	2
_parse_satb_m4:                         ; @parse_satb_m4
	.cfi_startproc
; %bb.0:
	mov	x9, #0
	mov	w8, #0
Lloh0:
	adrp	x10, _reg@GOTPAGE
Lloh1:
	ldr	x10, [x10, _reg@GOTPAGEOFF]
	ldr	x12, [x10]
	ldr	w11, [x12, #4]
	lsl	w11, w11, #2
	and	w11, w11, #0x8
	add	w11, w11, #8
	ldr	w12, [x12, #20]
	lsl	w12, w12, #7
Lloh2:
	adrp	x13, _system_hw@GOTPAGE
Lloh3:
	ldr	x13, [x13, _system_hw@GOTPAGEOFF]
	eor	w14, w12, #0xffffc07f
Lloh4:
	ldr	x12, [x13]
Lloh5:
	adrp	x13, _SYSTEM_SMS@GOTPAGE
Lloh6:
	ldr	x13, [x13, _SYSTEM_SMS@GOTPAGEOFF]
Lloh7:
	ldr	x13, [x13]
	orr	w15, w14, #0x80
	cmp	x12, x13
	csel	w13, w15, w14, gt
Lloh8:
	adrp	x14, _vram@GOTPAGE
Lloh9:
	ldr	x14, [x14, _vram@GOTPAGEOFF]
Lloh10:
	ldr	x14, [x14]
	and	w15, w13, #0x3f00
	add	x15, x14, w15, uxtw #3
Lloh11:
	adrp	x14, _bitmap@GOTPAGE
Lloh12:
	ldr	x14, [x14, _bitmap@GOTPAGEOFF]
Lloh13:
	ldr	w14, [x14]
Lloh14:
	adrp	x17, _SYSTEM_MD@GOTPAGE
Lloh15:
	ldr	x17, [x17, _SYSTEM_MD@GOTPAGEOFF]
	add	w16, w14, #16
Lloh16:
	ldr	x17, [x17]
Lloh17:
	adrp	x1, _object_info@GOTPAGE
Lloh18:
	ldr	x1, [x1, _object_info@GOTPAGEOFF]
	mov	w2, #24
	mov	x3, x15
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #2
	add	x3, x3, #8
	cmp	x9, #128
	b.eq	LBB0_12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x3]
	cmp	w16, w4
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w5, w4, #256
	cmp	w4, #239
	csel	w4, w5, w4, gt
	sub	w4, w0, w4
	cmp	x12, x17
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x5, [x10]
	ldr	w5, [x5, #4]
	and	x5, x5, #0x1
	asr	w4, w4, w5
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w4, #31, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w4, w11
	b.ge	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x5, [x1]
	smaddl	x5, w8, w2, x5
	str	w4, [x5]
	add	w4, w9, #128
	and	w4, w4, w13
	ldr	x4, [x15, w4, uxtw #3]
	str	x4, [x5, #16]
	add	w4, w9, #129
	and	w4, w4, w13
	ldr	x4, [x15, w4, uxtw #3]
	ldr	x5, [x1]
	smaddl	x5, w8, w2, x5
	str	x4, [x5, #8]
	add	w8, w8, #1
	b	LBB0_1
LBB0_9:
	tbnz	w0, #31, LBB0_12
; %bb.10:
	cmp	w14, w0
	b.le	LBB0_12
; %bb.11:
Lloh19:
	adrp	x8, _spr_ovr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _spr_ovr@GOTPAGEOFF]
	mov	w9, #64
Lloh21:
	str	w9, [x8]
	mov	w8, #8
LBB0_12:
Lloh22:
	adrp	x9, _object_count@GOTPAGE
Lloh23:
	ldr	x9, [x9, _object_count@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_reg,8,3                        ; @reg
	.comm	_system_hw,8,3                  ; @system_hw
	.comm	_SYSTEM_SMS,8,3                 ; @SYSTEM_SMS
	.comm	_vram,8,3                       ; @vram
	.comm	_bitmap,4,2                     ; @bitmap
	.comm	_SYSTEM_MD,8,3                  ; @SYSTEM_MD
	.comm	_spr_ovr,4,2                    ; @spr_ovr
	.comm	_object_info,8,3                ; @object_info
	.comm	_object_count,4,2               ; @object_count
.subsections_via_symbols
