	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_addr                       ## -- Begin function get_addr
	.p2align	4, 0x90
_get_addr:                              ## @get_addr
	.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
	movl	%edi, %r14d
	movl	%edi, %r15d
	shrl	$12, %r15d
	movl	%r15d, %eax
	andl	$917503, %eax                   ## imm = 0xDFFFF
	andl	$1023, %r15d                    ## imm = 0x3FF
	orl	$1024, %r15d                    ## imm = 0x400
	cmpl	$1025, %eax                     ## imm = 0x401
	cmovbl	%eax, %r15d
	movq	_jump_in@GOTPCREL(%rip), %rax
	movq	_TARGET_SIZE_2@GOTPCREL(%rip), %r12
	movq	_MAX_OUTPUT_BLOCK_SIZE@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_sh2_recompile_block
	movq	_jump_in@GOTPCREL(%rip), %rax
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	testq	%rax, %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r14d, (%rax)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_jump_dirty@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	16(%rbx), %rbx
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rbx, %rbx
	je	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	%r14d, (%rbx)
	jne	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%rbx), %rdi
	movq	_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edi, %edx
	subl	%eax, %edx
	movzbl	(%r12), %eax
	xorl	%ecx, %ecx
	subb	%al, %cl
	shll	%cl, %edx
	movl	(%r13), %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	addl	$1610612736, %eax               ## imm = 0x60000000
	cmpl	%eax, %edx
	jle	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	callq	_verify_dirty
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:
	movl	%r14d, %eax
	sarl	$12, %eax
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	_cached_code@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %esi
	sarl	$15, %esi
	movslq	%esi, %rsi
	orl	%edx, (%rcx,%rsi,4)
	movl	%r14d, %esi
	xorl	$536870912, %esi                ## imm = 0x20000000
	movl	%esi, %edi
	sarl	$15, %edi
	movslq	%edi, %rdi
	orl	%edx, (%rcx,%rdi,4)
	cltq
	movl	$1, %edx
	movq	_memory_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orl	$1073741824, (%rcx,%rax,4)      ## imm = 0x40000000
	sarl	$12, %esi
	movslq	%esi, %rax
	orb	$64, 3(%rcx,%rax,4)
	movl	%r15d, %ecx
	andb	$7, %cl
	shll	%cl, %edx
	movq	_restore_candidate@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shrl	$3, %r15d
	orl	%edx, (%rax,%r15,4)
	movl	8(%rbx), %edi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_get_bounds
	movl	-48(%rbp), %ecx
	movq	_HighWram@GOTPCREL(%rip), %rdx
	movl	%ecx, %eax
	subl	(%rdx), %eax
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	jg	LBB0_16
## %bb.12:
	movl	-44(%rbp), %r8d
	subl	%ecx, %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.13:
	leal	100663296(%rax), %r9d
	movq	_cached_code_words@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	andl	$4194303, %edi                  ## imm = 0x3FFFFF
	orl	$4194304, %edi                  ## imm = 0x400000
	cmpl	$-96468992, %eax                ## imm = 0xFA400000
	cmovll	%r9d, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rax), %ecx
	shrb	$2, %cl
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	leal	(%rdi,%rax), %ecx
	sarl	$5, %ecx
	movslq	%ecx, %rcx
	orl	%edx, (%rsi,%rcx,4)
	addl	$4, %eax
	cmpl	%r8d, %eax
	jl	LBB0_14
## %bb.15:
	movl	-48(%rbp), %ecx
LBB0_16:
	movq	_LowWram@GOTPCREL(%rip), %rdx
	movl	%ecx, %eax
	subl	(%rdx), %eax
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	jg	LBB0_20
## %bb.17:
	movl	-44(%rbp), %r8d
	subl	%ecx, %r8d
	testl	%r8d, %r8d
	jle	LBB0_20
## %bb.18:
	addl	$2097152, %eax                  ## imm = 0x200000
	movq	_cached_code_words@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rdi), %edx
	movl	%edx, %ecx
	shrb	$2, %cl
	andb	$7, %cl
	movl	$1, %esi
	shll	%cl, %esi
	sarl	$5, %edx
	movslq	%edx, %rcx
	orl	%esi, (%r9,%rcx,4)
	addl	$4, %edi
	cmpl	%r8d, %edi
	jl	LBB0_19
LBB0_20:
	movq	_hash_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	shrl	$16, %ecx
	movzwl	%r14w, %edx
	xorl	%ecx, %edx
	movq	(%rax,%rdx,8), %rcx
	movl	(%rcx), %eax
	cmpl	%r14d, %eax
	jne	LBB0_23
## %bb.21:
	movq	8(%rbx), %rax
	movl	%eax, 4(%rcx)
	jmp	LBB0_22
LBB0_4:
	movq	_hash_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	shrl	$16, %edx
	movzwl	%r14w, %esi
	xorl	%edx, %esi
	movq	(%rcx,%rsi,8), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 8(%rcx)
	movq	8(%rax), %rax
LBB0_24:
	movl	%eax, 4(%rcx)
	movl	%r14d, (%rcx)
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	4(%rcx), %edx
	movl	%edx, 12(%rcx)
	movl	%eax, 8(%rcx)
	movq	8(%rbx), %rax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_jump_in,8,3                    ## @jump_in
	.comm	_hash_table,8,3                 ## @hash_table
	.comm	_jump_dirty,8,3                 ## @jump_dirty
	.comm	_out,8,3                        ## @out
	.comm	_TARGET_SIZE_2,4,2              ## @TARGET_SIZE_2
	.comm	_MAX_OUTPUT_BLOCK_SIZE,4,2      ## @MAX_OUTPUT_BLOCK_SIZE
	.comm	_cached_code,8,3                ## @cached_code
	.comm	_memory_map,8,3                 ## @memory_map
	.comm	_restore_candidate,8,3          ## @restore_candidate
	.comm	_HighWram,8,3                   ## @HighWram
	.comm	_cached_code_words,8,3          ## @cached_code_words
	.comm	_LowWram,8,3                    ## @LowWram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_addr                       ; -- Begin function get_addr
	.p2align	2
_get_addr:                              ; @get_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	lsr	w8, w0, #12
	and	w8, w8, #0xfffdffff
	mov	w9, #1024
Lloh0:
	adrp	x22, _jump_in@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jump_in@GOTPAGEOFF]
	bfxil	w9, w0, #12, #10
Lloh2:
	adrp	x23, _jump_dirty@GOTPAGE
Lloh3:
	ldr	x23, [x23, _jump_dirty@GOTPAGEOFF]
Lloh4:
	adrp	x24, _out@GOTPAGE
Lloh5:
	ldr	x24, [x24, _out@GOTPAGEOFF]
	cmp	w8, #1024
	csel	w21, w9, w8, hi
Lloh6:
	adrp	x25, _TARGET_SIZE_2@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TARGET_SIZE_2@GOTPAGEOFF]
Lloh8:
	adrp	x26, _MAX_OUTPUT_BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _MAX_OUTPUT_BLOCK_SIZE@GOTPAGEOFF]
	mov	w27, #1610612736
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x22]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_4
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8]
	cmp	w9, w19
	b.eq	LBB0_21
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_2
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x23]
	ldr	x20, [x8, x21, lsl #3]
	cbnz	x20, LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_sh2_recompile_block
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_5
LBB0_7:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [x20, #8]
	ldr	w8, [x24]
	sub	w8, w0, w8
	ldr	w9, [x25]
	neg	w9, w9
	lsl	w8, w8, w9
	ldr	w10, [x26]
	lsl	w9, w10, w9
	add	w9, w9, w27
	cmp	w8, w9
	b.le	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	bl	_verify_dirty
	cbz	x0, LBB0_6
; %bb.10:
	asr	w8, w19, #12
	and	w9, w8, #0x7
	mov	w10, #1
	lsl	w9, w10, w9
Lloh10:
	adrp	x11, _cached_code@GOTPAGE
Lloh11:
	ldr	x11, [x11, _cached_code@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
	asr	w12, w19, #15
	sbfiz	x12, x12, #2, #32
	ldr	w13, [x11, x12]
	orr	w13, w13, w9
	str	w13, [x11, x12]
	eor	w12, w19, #0x20000000
	asr	w13, w12, #15
	sbfiz	x13, x13, #2, #32
	ldr	w14, [x11, x13]
	orr	w9, w14, w9
	str	w9, [x11, x13]
Lloh13:
	adrp	x9, _memory_map@GOTPAGE
Lloh14:
	ldr	x9, [x9, _memory_map@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x9, x8]
	orr	w11, w11, #0x40000000
	str	w11, [x9, x8]
	asr	w8, w12, #12
	sbfiz	x8, x8, #2, #32
	ldr	w11, [x9, x8]
	orr	w11, w11, #0x40000000
	str	w11, [x9, x8]
	and	w8, w21, #0x7
	lsl	w8, w10, w8
Lloh16:
	adrp	x9, _restore_candidate@GOTPAGE
Lloh17:
	ldr	x9, [x9, _restore_candidate@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ubfx	x10, x21, #3, #29
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	ldr	w0, [x20, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_get_bounds
	ldr	w9, [sp, #12]
Lloh19:
	adrp	x8, _HighWram@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HighWram@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	sub	w12, w9, w8
	cmp	w12, #256, lsl #12              ; =1048576
	b.ge	LBB0_15
; %bb.11:
	ldr	w8, [sp, #8]
	sub	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	mov	w9, #0
	mov	w10, #100663296
	add	w10, w12, w10
Lloh22:
	adrp	x11, _cached_code_words@GOTPAGE
Lloh23:
	ldr	x11, [x11, _cached_code_words@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	mov	w13, #4194304
	bfxil	w13, w12, #0, #22
	mov	w14, #-96468992
	cmp	w12, w14
	csel	w12, w10, w13, lt
	mov	w13, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	w14, w10, w9
	ubfx	w14, w14, #2, #3
	add	w15, w12, w9
	asr	w15, w15, #5
	sbfiz	x15, x15, #2, #32
	ldr	w16, [x11, x15]
	lsl	w14, w13, w14
	orr	w14, w16, w14
	str	w14, [x11, x15]
	add	w9, w9, #4
	cmp	w9, w8
	b.lt	LBB0_13
; %bb.14:
	ldr	w9, [sp, #12]
LBB0_15:
Lloh25:
	adrp	x8, _LowWram@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LowWram@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	sub	w10, w9, w8
	cmp	w10, #256, lsl #12              ; =1048576
	b.ge	LBB0_19
; %bb.16:
	ldr	w8, [sp, #8]
	sub	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	w9, #0
	add	w10, w10, #512, lsl #12         ; =2097152
Lloh28:
	adrp	x11, _cached_code_words@GOTPAGE
Lloh29:
	ldr	x11, [x11, _cached_code_words@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	mov	w12, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	w13, w10, w9
	ubfx	w14, w13, #2, #3
	asr	w13, w13, #5
	sbfiz	x13, x13, #2, #32
	ldr	w15, [x11, x13]
	lsl	w14, w12, w14
	orr	w14, w15, w14
	str	w14, [x11, x13]
	add	w9, w9, #4
	cmp	w9, w8
	b.lt	LBB0_18
LBB0_19:
Lloh31:
	adrp	x8, _hash_table@GOTPAGE
Lloh32:
	ldr	x8, [x8, _hash_table@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	and	w9, w19, #0xffff
	eor	w9, w9, w19, lsr #16
	ldr	x8, [x8, w9, uxtw #3]
	ldr	w9, [x8]
	cmp	w9, w19
	b.ne	LBB0_23
; %bb.20:
	ldr	x0, [x20, #8]
	str	w0, [x8, #4]
	b	LBB0_22
LBB0_21:
Lloh34:
	adrp	x9, _hash_table@GOTPAGE
Lloh35:
	ldr	x9, [x9, _hash_table@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	and	w10, w19, #0xffff
	eor	w10, w10, w19, lsr #16
	ldr	x9, [x9, w10, uxtw #3]
	ldr	d0, [x9]
	str	d0, [x9, #8]
	ldr	x0, [x8, #8]
	stp	w19, w0, [x9]
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	ldr	w10, [x8, #4]
	stp	w9, w10, [x8, #8]
	ldr	x0, [x20, #8]
	stp	w19, w0, [x8]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_jump_in,8,3                    ; @jump_in
	.comm	_hash_table,8,3                 ; @hash_table
	.comm	_jump_dirty,8,3                 ; @jump_dirty
	.comm	_out,8,3                        ; @out
	.comm	_TARGET_SIZE_2,4,2              ; @TARGET_SIZE_2
	.comm	_MAX_OUTPUT_BLOCK_SIZE,4,2      ; @MAX_OUTPUT_BLOCK_SIZE
	.comm	_cached_code,8,3                ; @cached_code
	.comm	_memory_map,8,3                 ; @memory_map
	.comm	_restore_candidate,8,3          ; @restore_candidate
	.comm	_HighWram,8,3                   ; @HighWram
	.comm	_cached_code_words,8,3          ; @cached_code_words
	.comm	_LowWram,8,3                    ; @LowWram
.subsections_via_symbols
