	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_d5
_update_d5:                             ## @update_d5
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_not_rom_output_enable@GOTPCREL(%rip), %rax
	movq	_MEMORY_mem@GOTPCREL(%rip), %rcx
	movl	$54528, %edi                    ## imm = 0xD500
	addq	(%rcx), %rdi
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$255, %esi
	movl	$256, %edx                      ## imm = 0x100
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_2:
	movq	_af80_rom@GOTPCREL(%rip), %rax
	movq	_rom_bank_select@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movl	$256, %edx                      ## imm = 0x100
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_not_rom_output_enable,8,3      ## @not_rom_output_enable
	.comm	_MEMORY_mem,8,3                 ## @MEMORY_mem
	.comm	_af80_rom,8,3                   ## @af80_rom
	.comm	_rom_bank_select,4,2            ## @rom_bank_select
	.no_dead_strip	_update_d5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_d5
_update_d5:                             ; @update_d5
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _not_rom_output_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _not_rom_output_enable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MEMORY_mem@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEMORY_mem@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #54528
	add	x0, x9, x10
	cbz	x8, LBB0_2
; %bb.1:
	mov	w1, #255
	mov	w2, #256
	b	_memset
LBB0_2:
Lloh6:
	adrp	x8, _af80_rom@GOTPAGE
Lloh7:
	ldr	x8, [x8, _af80_rom@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _rom_bank_select@GOTPAGE
Lloh10:
	ldr	x9, [x9, _rom_bank_select@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w9, #8
	add	x1, x8, w9, sxtw
	mov	w2, #256
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_not_rom_output_enable,8,3      ; @not_rom_output_enable
	.comm	_MEMORY_mem,8,3                 ; @MEMORY_mem
	.comm	_af80_rom,8,3                   ; @af80_rom
	.comm	_rom_bank_select,4,2            ; @rom_bank_select
	.no_dead_strip	_update_d5
.subsections_via_symbols
