	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_d6
_update_d6:                             ## @update_d6
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_not_enable_2k_character_ram@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_not_enable_2k_attribute_ram@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_not_enable_crtc_registers@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movq	_MEMORY_mem@GOTPCREL(%rip), %rax
	movl	$54784, %edi                    ## imm = 0xD600
	addq	(%rax), %rdi
	movl	$255, %esi
	movl	$256, %edx                      ## imm = 0x100
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	movq	_MEMORY_mem@GOTPCREL(%rip), %r15
	movl	$54784, %edi                    ## imm = 0xD600
	addq	(%r15), %rdi
	movq	_af80_screen@GOTPCREL(%rip), %r14
	jmp	LBB0_2
LBB0_4:
	movq	_MEMORY_mem@GOTPCREL(%rip), %r15
	movl	$54784, %edi                    ## imm = 0xD600
	addq	(%r15), %rdi
	movq	_af80_attrib@GOTPCREL(%rip), %r14
LBB0_2:
	movq	_video_bank_select@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shll	$7, %eax
	movslq	%eax, %rsi
	addq	(%r14), %rsi
	movl	$128, %edx
	callq	_memcpy
	movl	$54912, %edi                    ## imm = 0xD680
	addq	(%r15), %rdi
	movl	(%rbx), %eax
	shll	$7, %eax
	movslq	%eax, %rsi
	addq	(%r14), %rsi
	movl	$128, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_not_enable_2k_character_ram,4,2 ## @not_enable_2k_character_ram
	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.comm	_af80_screen,8,3                ## @af80_screen
	.comm	_video_bank_select,4,2          ## @video_bank_select
	.comm	_not_enable_2k_attribute_ram,4,2 ## @not_enable_2k_attribute_ram
	.comm	_af80_attrib,8,3                ## @af80_attrib
	.comm	_not_enable_crtc_registers,8,3  ## @not_enable_crtc_registers
	.no_dead_strip	_update_d6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_d6
_update_d6:                             ; @update_d6
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _not_enable_2k_character_ram@GOTPAGE
Lloh1:
	ldr	x8, [x8, _not_enable_2k_character_ram@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _not_enable_2k_attribute_ram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _not_enable_2k_attribute_ram@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _not_enable_crtc_registers@GOTPAGE
Lloh7:
	ldr	x8, [x8, _not_enable_crtc_registers@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _MEMORY_mem@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MEMORY_mem@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #54784
	add	x0, x8, x9
	mov	w1, #255
	mov	w2, #256
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
LBB0_4:
Lloh12:
	adrp	x19, _MEMORY_mem@GOTPAGE
Lloh13:
	ldr	x19, [x19, _MEMORY_mem@GOTPAGEOFF]
	ldr	x8, [x19]
	mov	w9, #54784
	add	x0, x8, x9
Lloh14:
	adrp	x20, _af80_screen@GOTPAGE
Lloh15:
	ldr	x20, [x20, _af80_screen@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x19, _MEMORY_mem@GOTPAGE
Lloh17:
	ldr	x19, [x19, _MEMORY_mem@GOTPAGEOFF]
	ldr	x8, [x19]
	mov	w9, #54784
	add	x0, x8, x9
Lloh18:
	adrp	x20, _af80_attrib@GOTPAGE
Lloh19:
	ldr	x20, [x20, _af80_attrib@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x20]
Lloh20:
	adrp	x21, _video_bank_select@GOTPAGE
Lloh21:
	ldr	x21, [x21, _video_bank_select@GOTPAGEOFF]
	ldr	w9, [x21]
	lsl	w9, w9, #7
	add	x1, x8, w9, sxtw
	mov	w2, #128
	bl	_memcpy
	ldr	x8, [x19]
	mov	w9, #54912
	add	x0, x8, x9
	ldr	x8, [x20]
	ldr	w9, [x21]
	lsl	w9, w9, #7
	add	x1, x8, w9, sxtw
	mov	w2, #128
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_not_enable_2k_character_ram,4,2 ; @not_enable_2k_character_ram
	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.comm	_af80_screen,8,3                ; @af80_screen
	.comm	_video_bank_select,4,2          ; @video_bank_select
	.comm	_not_enable_2k_attribute_ram,4,2 ; @not_enable_2k_attribute_ram
	.comm	_af80_attrib,8,3                ; @af80_attrib
	.comm	_not_enable_crtc_registers,8,3  ; @not_enable_crtc_registers
	.no_dead_strip	_update_d6
.subsections_via_symbols
