	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_kernel_fields
_merge_kernel_fields:                   ## @merge_kernel_fields
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_burst_size@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.1:
	leaq	(%rdi,%r8,4), %r11
	leaq	(%rdi,%r8,8), %r14
	xorl	%esi, %esi
	movq	_rgb_bias@GOTPCREL(%rip), %r9
	movq	_nes_ntsc_rgb_builder@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9), %r12d
	movl	(%rdi,%rsi,4), %r15d
	addl	%r12d, %r15d
	movl	(%r11,%rsi,4), %edx
	addl	%r12d, %edx
	movl	(%r14,%rsi,4), %ecx
	addl	%r12d, %ecx
	leal	(%rdx,%r15), %eax
	movl	%edx, %ebx
	xorl	%r15d, %ebx
	andl	(%r10), %ebx
	subl	%ebx, %eax
	sarl	%eax
	subl	%r12d, %eax
	movl	%eax, (%rdi,%rsi,4)
	leal	(%rcx,%rdx), %eax
	xorl	%ecx, %edx
	andl	(%r10), %edx
	subl	%edx, %eax
	sarl	%eax
	subl	(%r9), %eax
	movl	%eax, (%r11,%rsi,4)
	leal	(%rcx,%r15), %eax
	xorl	%r15d, %ecx
	andl	(%r10), %ecx
	subl	%ecx, %eax
	sarl	%eax
	subl	(%r9), %eax
	movl	%eax, (%r14,%rsi,4)
	incq	%rsi
	cmpl	%esi, %r8d
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_burst_size,8,3                 ## @burst_size
	.comm	_rgb_bias,4,2                   ## @rgb_bias
	.comm	_nes_ntsc_rgb_builder,4,2       ## @nes_ntsc_rgb_builder
	.no_dead_strip	_merge_kernel_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_kernel_fields
_merge_kernel_fields:                   ; @merge_kernel_fields
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _burst_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _burst_size@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	lsl	x9, x8, #3
Lloh3:
	adrp	x10, _rgb_bias@GOTPAGE
Lloh4:
	ldr	x10, [x10, _rgb_bias@GOTPAGEOFF]
	lsl	x11, x8, #2
Lloh5:
	adrp	x12, _nes_ntsc_rgb_builder@GOTPAGE
Lloh6:
	ldr	x12, [x12, _nes_ntsc_rgb_builder@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x0]
	ldr	w14, [x10]
	add	w13, w14, w13
	ldr	w15, [x0, x11]
	ldr	w16, [x0, x9]
	add	w15, w15, w14
	add	w17, w15, w13
	eor	w1, w15, w13
	ldr	w2, [x12]
	and	w1, w1, w2
	sub	w17, w17, w1
	asr	w17, w17, #1
	sub	w17, w17, w14
	str	w17, [x0]
	add	w14, w16, w14
	add	w16, w14, w15
	eor	w15, w14, w15
	ldr	w17, [x12]
	and	w15, w17, w15
	sub	w15, w16, w15
	asr	w15, w15, #1
	ldr	w16, [x10]
	sub	w15, w15, w16
	str	w15, [x0, x11]
	eor	w15, w14, w13
	ldr	w16, [x12]
	and	w15, w16, w15
	add	w13, w14, w13
	sub	w13, w13, w15
	asr	w13, w13, #1
	ldr	w14, [x10]
	sub	w13, w13, w14
	str	w13, [x0, x9]
	add	x0, x0, #4
	subs	w8, w8, #1
	b.ne	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_burst_size,8,3                 ; @burst_size
	.comm	_rgb_bias,4,2                   ; @rgb_bias
	.comm	_nes_ntsc_rgb_builder,4,2       ; @nes_ntsc_rgb_builder
	.no_dead_strip	_merge_kernel_fields
.subsections_via_symbols
