	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LCDC_REG@GOTPCREL(%rip), %rax
	movl	$103, (%rax)
	movq	_VBL_IFLAG@GOTPCREL(%rip), %rax
	movq	_LCD_IFLAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_set_interrupts
	movq	_STAT_REG@GOTPCREL(%rip), %rax
	movl	$69, (%rax)
	movq	_BGP_REG@GOTPCREL(%rip), %rax
	movl	$228, (%rax)
	movq	_OBP0_REG@GOTPCREL(%rip), %rax
	movl	$210, (%rax)
	movq	_MAXWNDPOSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
	movq	_WY_REG@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_actors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, 56(%rax)
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 48(%rax)
	movq	%rcx, 40(%rax)
	movq	_START_SCENE_X@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	8(,%rdx,8), %edx
	movl	%edx, 28(%rax)
	movq	_map_next_pos@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movq	_START_SCENE_Y@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	8(,%rdx,8), %edx
	movl	%edx, 32(%rax)
	movl	%edx, 4(%rsi)
	movq	_START_SCENE_DIR_X@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax)
	movq	_map_next_dir@GOTPCREL(%rip), %rsi
	movl	%edx, 4(%rsi)
	movq	_START_SCENE_DIR_Y@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rax)
	movl	%edx, (%rsi)
	movq	_START_PLAYER_SPRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_map_next_sprite@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movq	_PLAYER_INPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rax)
	movq	%rcx, 8(%rax)
	movq	_START_PLAYER_MOVE_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_START_PLAYER_ANIM_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_START_SCENE_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_scene_index@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_scene_next_index@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_UIInit
	xorl	%eax, %eax
	callq	_FadeInit
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_game_loop
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_LCDC_REG,4,2                   ## @LCDC_REG
	.comm	_VBL_IFLAG,4,2                  ## @VBL_IFLAG
	.comm	_LCD_IFLAG,4,2                  ## @LCD_IFLAG
	.comm	_STAT_REG,4,2                   ## @STAT_REG
	.comm	_BGP_REG,4,2                    ## @BGP_REG
	.comm	_OBP0_REG,4,2                   ## @OBP0_REG
	.comm	_MAXWNDPOSY,8,3                 ## @MAXWNDPOSY
	.comm	_WY_REG,8,3                     ## @WY_REG
	.comm	_actors,8,3                     ## @actors
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_START_SCENE_X,4,2              ## @START_SCENE_X
	.comm	_map_next_pos,8,2               ## @map_next_pos
	.comm	_START_SCENE_Y,4,2              ## @START_SCENE_Y
	.comm	_START_SCENE_DIR_X,4,2          ## @START_SCENE_DIR_X
	.comm	_map_next_dir,8,2               ## @map_next_dir
	.comm	_START_SCENE_DIR_Y,4,2          ## @START_SCENE_DIR_Y
	.comm	_START_PLAYER_SPRITE,4,2        ## @START_PLAYER_SPRITE
	.comm	_map_next_sprite,4,2            ## @map_next_sprite
	.comm	_PLAYER_INPUT,4,2               ## @PLAYER_INPUT
	.comm	_START_PLAYER_MOVE_SPEED,4,2    ## @START_PLAYER_MOVE_SPEED
	.comm	_START_PLAYER_ANIM_SPEED,4,2    ## @START_PLAYER_ANIM_SPEED
	.comm	_START_SCENE_INDEX,8,3          ## @START_SCENE_INDEX
	.comm	_scene_index,8,3                ## @scene_index
	.comm	_scene_next_index,8,3           ## @scene_next_index
	.comm	_DISPLAY_ON,4,2                 ## @DISPLAY_ON
	.comm	_SHOW_SPRITES,4,2               ## @SHOW_SPRITES
	.comm	_CGB_TYPE,8,3                   ## @CGB_TYPE
	.comm	__cpu,8,3                       ## @_cpu
	.comm	_custom_bg_pal,4,2              ## @custom_bg_pal
	.comm	_custom_spr1_pal,4,2            ## @custom_spr1_pal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _LCDC_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LCDC_REG@GOTPAGEOFF]
	mov	w9, #103
Lloh2:
	adrp	x10, _VBL_IFLAG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VBL_IFLAG@GOTPAGEOFF]
Lloh4:
	str	w9, [x8]
Lloh5:
	ldr	w8, [x10]
Lloh6:
	adrp	x9, _LCD_IFLAG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LCD_IFLAG@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_set_interrupts
Lloh9:
	adrp	x8, _STAT_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STAT_REG@GOTPAGEOFF]
	mov	w9, #69
Lloh11:
	str	w9, [x8]
Lloh12:
	adrp	x8, _BGP_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BGP_REG@GOTPAGEOFF]
	mov	w9, #228
Lloh14:
	str	w9, [x8]
Lloh15:
	adrp	x8, _OBP0_REG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OBP0_REG@GOTPAGEOFF]
	mov	w9, #210
Lloh17:
	str	w9, [x8]
Lloh18:
	adrp	x8, _MAXWNDPOSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAXWNDPOSY@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	add	x8, x8, #1
Lloh21:
	adrp	x9, _WY_REG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WY_REG@GOTPAGEOFF]
Lloh23:
	str	x8, [x9]
Lloh24:
	adrp	x8, _actors@GOTPAGE
Lloh25:
	ldr	x8, [x8, _actors@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _TRUE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	stp	x9, xzr, [x8, #48]
	str	x9, [x8, #40]
Lloh30:
	adrp	x10, _START_SCENE_X@GOTPAGE
Lloh31:
	ldr	x10, [x10, _START_SCENE_X@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w10, w10, #3
Lloh33:
	adrp	x11, _map_next_pos@GOTPAGE
Lloh34:
	ldr	x11, [x11, _map_next_pos@GOTPAGEOFF]
Lloh35:
	adrp	x12, _START_SCENE_Y@GOTPAGE
Lloh36:
	ldr	x12, [x12, _START_SCENE_Y@GOTPAGEOFF]
	add	w10, w10, #8
Lloh37:
	ldr	w12, [x12]
	lsl	w12, w12, #3
	add	w12, w12, #8
	str	w12, [x8, #32]
	stp	w10, w12, [x11]
Lloh38:
	adrp	x11, _START_SCENE_DIR_X@GOTPAGE
Lloh39:
	ldr	x11, [x11, _START_SCENE_DIR_X@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	stp	w11, w10, [x8, #24]
Lloh41:
	adrp	x10, _START_PLAYER_SPRITE@GOTPAGE
Lloh42:
	ldr	x10, [x10, _START_PLAYER_SPRITE@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
Lloh44:
	adrp	x12, _map_next_sprite@GOTPAGE
Lloh45:
	ldr	x12, [x12, _map_next_sprite@GOTPAGEOFF]
Lloh46:
	str	w10, [x12]
Lloh47:
	adrp	x10, _map_next_dir@GOTPAGE
Lloh48:
	ldr	x10, [x10, _map_next_dir@GOTPAGEOFF]
Lloh49:
	adrp	x12, _START_SCENE_DIR_Y@GOTPAGE
Lloh50:
	ldr	x12, [x12, _START_SCENE_DIR_Y@GOTPAGEOFF]
Lloh51:
	ldr	w12, [x12]
	stp	w12, w11, [x10]
Lloh52:
	adrp	x10, _PLAYER_INPUT@GOTPAGE
Lloh53:
	ldr	x10, [x10, _PLAYER_INPUT@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	stp	w10, w12, [x8, #16]
	str	x9, [x8, #8]
Lloh55:
	adrp	x9, _START_PLAYER_MOVE_SPEED@GOTPAGE
Lloh56:
	ldr	x9, [x9, _START_PLAYER_MOVE_SPEED@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
Lloh58:
	adrp	x10, _START_PLAYER_ANIM_SPEED@GOTPAGE
Lloh59:
	ldr	x10, [x10, _START_PLAYER_ANIM_SPEED@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
Lloh61:
	adrp	x8, _START_SCENE_INDEX@GOTPAGE
Lloh62:
	ldr	x8, [x8, _START_SCENE_INDEX@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
Lloh64:
	adrp	x9, _scene_index@GOTPAGE
Lloh65:
	ldr	x9, [x9, _scene_index@GOTPAGEOFF]
Lloh66:
	str	x8, [x9]
Lloh67:
	adrp	x9, _scene_next_index@GOTPAGE
Lloh68:
	ldr	x9, [x9, _scene_next_index@GOTPAGEOFF]
Lloh69:
	str	x8, [x9]
	bl	_UIInit
	bl	_FadeInit
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_game_loop
	b	LBB0_1
	.loh AdrpLdrGotStr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotStr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LCDC_REG,4,2                   ; @LCDC_REG
	.comm	_VBL_IFLAG,4,2                  ; @VBL_IFLAG
	.comm	_LCD_IFLAG,4,2                  ; @LCD_IFLAG
	.comm	_STAT_REG,4,2                   ; @STAT_REG
	.comm	_BGP_REG,4,2                    ; @BGP_REG
	.comm	_OBP0_REG,4,2                   ; @OBP0_REG
	.comm	_MAXWNDPOSY,8,3                 ; @MAXWNDPOSY
	.comm	_WY_REG,8,3                     ; @WY_REG
	.comm	_actors,8,3                     ; @actors
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_START_SCENE_X,4,2              ; @START_SCENE_X
	.comm	_map_next_pos,8,2               ; @map_next_pos
	.comm	_START_SCENE_Y,4,2              ; @START_SCENE_Y
	.comm	_START_SCENE_DIR_X,4,2          ; @START_SCENE_DIR_X
	.comm	_map_next_dir,8,2               ; @map_next_dir
	.comm	_START_SCENE_DIR_Y,4,2          ; @START_SCENE_DIR_Y
	.comm	_START_PLAYER_SPRITE,4,2        ; @START_PLAYER_SPRITE
	.comm	_map_next_sprite,4,2            ; @map_next_sprite
	.comm	_PLAYER_INPUT,4,2               ; @PLAYER_INPUT
	.comm	_START_PLAYER_MOVE_SPEED,4,2    ; @START_PLAYER_MOVE_SPEED
	.comm	_START_PLAYER_ANIM_SPEED,4,2    ; @START_PLAYER_ANIM_SPEED
	.comm	_START_SCENE_INDEX,8,3          ; @START_SCENE_INDEX
	.comm	_scene_index,8,3                ; @scene_index
	.comm	_scene_next_index,8,3           ; @scene_next_index
	.comm	_DISPLAY_ON,4,2                 ; @DISPLAY_ON
	.comm	_SHOW_SPRITES,4,2               ; @SHOW_SPRITES
	.comm	_CGB_TYPE,8,3                   ; @CGB_TYPE
	.comm	__cpu,8,3                       ; @_cpu
	.comm	_custom_bg_pal,4,2              ; @custom_bg_pal
	.comm	_custom_spr1_pal,4,2            ; @custom_spr1_pal
.subsections_via_symbols
