	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function carthw_realtec_reset
_carthw_realtec_reset:                  ## @carthw_realtec_reset
	.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
	movq	_M68K_BANK_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	xorl	%eax, %eax
	movq	_Pico@GOTPCREL(%rip), %r13
	movq	_m68k_read16_map@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_m68k_read8_map@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movslq	%eax, %rbx
	leaq	-1(%rbx), %r14
	addq	%rbx, %rdx
	decq	%rdx
	movq	(%r13), %rcx
	addq	8(%r13), %rcx
	movl	%ebx, %esi
	xorl	%r8d, %r8d
	callq	_cpu68k_map_set
	addq	(%r15), %r14
	movl	(%r12), %edi
	movq	(%r13), %rcx
	addq	8(%r13), %rcx
	movl	%ebx, %esi
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_cpu68k_map_set
	movq	(%r15), %rdx
	leal	(%rdx,%rbx), %eax
	cmpl	$4194304, %eax                  ## imm = 0x400000
	jl	LBB0_1
## %bb.2:
	movq	_m68k_write8_map@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4194303, %rdx                  ## imm = 0x3FFFFF
	movq	_carthw_realtec_write8@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$4194304, %esi                  ## imm = 0x400000
	movl	$1, %r8d
	callq	_cpu68k_map_set
	movq	_realtec_size@GOTPCREL(%rip), %rax
	movl	$-2147483648, (%rax)            ## imm = 0x80000000
	movq	_realtec_bank@GOTPCREL(%rip), %rax
	movl	$-2147483648, (%rax)            ## imm = 0x80000000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m68k_read8_map,4,2             ## @m68k_read8_map
	.comm	_M68K_BANK_SIZE,8,3             ## @M68K_BANK_SIZE
	.comm	_Pico,16,3                      ## @Pico
	.comm	_m68k_read16_map,4,2            ## @m68k_read16_map
	.comm	_m68k_write8_map,4,2            ## @m68k_write8_map
	.comm	_carthw_realtec_write8,8,3      ## @carthw_realtec_write8
	.comm	_realtec_size,4,2               ## @realtec_size
	.comm	_realtec_bank,4,2               ## @realtec_bank
	.no_dead_strip	_carthw_realtec_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function carthw_realtec_reset
_carthw_realtec_reset:                  ; @carthw_realtec_reset
	.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	w19, #0
Lloh0:
	adrp	x20, _M68K_BANK_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _M68K_BANK_SIZE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _m68k_read8_map@GOTPAGE
Lloh3:
	ldr	x21, [x21, _m68k_read8_map@GOTPAGEOFF]
Lloh4:
	adrp	x22, _Pico@GOTPAGE
Lloh5:
	ldr	x22, [x22, _Pico@GOTPAGEOFF]
Lloh6:
	adrp	x23, _m68k_read16_map@GOTPAGE
Lloh7:
	ldr	x23, [x23, _m68k_read16_map@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	sxtw	x9, w19
	sub	x24, x9, #1
	add	x2, x24, x8
	ldp	x9, x8, [x22]
	add	x3, x9, x8
	mov	x1, x19
	mov	w4, #0
	bl	_cpu68k_map_set
	ldr	w0, [x23]
	ldr	x8, [x20]
	add	x2, x24, x8
	ldp	x9, x8, [x22]
	add	x3, x9, x8
	mov	x1, x19
	mov	w4, #0
	bl	_cpu68k_map_set
	ldr	x8, [x20]
	add	w19, w19, w8
	cmp	w19, #1024, lsl #12             ; =4194304
	b.lt	LBB0_1
; %bb.2:
Lloh8:
	adrp	x9, _m68k_write8_map@GOTPAGE
Lloh9:
	ldr	x9, [x9, _m68k_write8_map@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	mov	w9, #4194303
	add	x2, x8, x9
Lloh11:
	adrp	x8, _carthw_realtec_write8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _carthw_realtec_write8@GOTPAGEOFF]
Lloh13:
	ldr	x3, [x8]
	mov	w1, #4194304
	mov	w4, #1
	bl	_cpu68k_map_set
Lloh14:
	adrp	x8, _realtec_size@GOTPAGE
Lloh15:
	ldr	x8, [x8, _realtec_size@GOTPAGEOFF]
	mov	w9, #-2147483648
Lloh16:
	str	w9, [x8]
Lloh17:
	adrp	x8, _realtec_bank@GOTPAGE
Lloh18:
	ldr	x8, [x8, _realtec_bank@GOTPAGEOFF]
Lloh19:
	str	w9, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_m68k_read8_map,4,2             ; @m68k_read8_map
	.comm	_M68K_BANK_SIZE,8,3             ; @M68K_BANK_SIZE
	.comm	_Pico,16,3                      ; @Pico
	.comm	_m68k_read16_map,4,2            ; @m68k_read16_map
	.comm	_m68k_write8_map,4,2            ; @m68k_write8_map
	.comm	_carthw_realtec_write8,8,3      ; @carthw_realtec_write8
	.comm	_realtec_size,4,2               ; @realtec_size
	.comm	_realtec_bank,4,2               ; @realtec_bank
	.no_dead_strip	_carthw_realtec_reset
.subsections_via_symbols
