	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_GSGlobal
_init_GSGlobal:                         ## @init_GSGlobal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_gsKit_init_global
	movq	%rax, %rbx
	movq	_GS_MODE_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_GS_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_GS_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_NTSC_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_NTSC_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_GS_PSM_CT16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_GS_PSMZ_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_GS_SETTING_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movq	_D_CTRL_RELE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_D_CTRL_MFD_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_D_CTRL_STS_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_D_CTRL_STD_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_D_CTRL_RCYC_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_DMA_CHANNEL_GIF@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$1, %r9d
	shll	%cl, %r9d
	movl	%eax, %ecx
	callq	_dmaKit_init
	movl	(%r14), %edi
	callq	_dmaKit_chan_init
	movq	%rbx, %rdi
	callq	_gsKit_init_screen
	movq	_GS_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gsKit_mode_switch
	movq	_GS_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gsKit_clear
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GS_MODE_NTSC,4,2               ## @GS_MODE_NTSC
	.comm	_GS_INTERLACED,4,2              ## @GS_INTERLACED
	.comm	_GS_FIELD,4,2                   ## @GS_FIELD
	.comm	_NTSC_WIDTH,4,2                 ## @NTSC_WIDTH
	.comm	_NTSC_HEIGHT,4,2                ## @NTSC_HEIGHT
	.comm	_GS_PSM_CT16,4,2                ## @GS_PSM_CT16
	.comm	_GS_PSMZ_16,4,2                 ## @GS_PSMZ_16
	.comm	_GS_SETTING_OFF,8,3             ## @GS_SETTING_OFF
	.comm	_D_CTRL_RELE_OFF,4,2            ## @D_CTRL_RELE_OFF
	.comm	_D_CTRL_MFD_OFF,4,2             ## @D_CTRL_MFD_OFF
	.comm	_D_CTRL_STS_UNSPEC,4,2          ## @D_CTRL_STS_UNSPEC
	.comm	_D_CTRL_STD_OFF,4,2             ## @D_CTRL_STD_OFF
	.comm	_D_CTRL_RCYC_8,4,2              ## @D_CTRL_RCYC_8
	.comm	_DMA_CHANNEL_GIF,4,2            ## @DMA_CHANNEL_GIF
	.comm	_GS_ONESHOT,4,2                 ## @GS_ONESHOT
	.comm	_GS_BLACK,4,2                   ## @GS_BLACK
	.no_dead_strip	_init_GSGlobal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_GSGlobal
_init_GSGlobal:                         ; @init_GSGlobal
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_gsKit_init_global
	mov	x19, x0
Lloh0:
	adrp	x8, _GS_MODE_NTSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GS_MODE_NTSC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh3:
	adrp	x8, _GS_INTERLACED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GS_INTERLACED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _GS_FIELD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GS_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh9:
	adrp	x8, _NTSC_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NTSC_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NTSC_HEIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NTSC_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh15:
	adrp	x8, _GS_PSM_CT16@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GS_PSM_CT16@GOTPAGEOFF]
Lloh17:
	adrp	x9, _GS_PSMZ_16@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GS_PSMZ_16@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
Lloh21:
	adrp	x8, _GS_SETTING_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GS_SETTING_OFF@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #8]
	str	x8, [x0]
Lloh24:
	adrp	x8, _D_CTRL_RELE_OFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _D_CTRL_RELE_OFF@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _D_CTRL_MFD_OFF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _D_CTRL_MFD_OFF@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _D_CTRL_STS_UNSPEC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _D_CTRL_STS_UNSPEC@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _D_CTRL_STD_OFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _D_CTRL_STD_OFF@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x8, _D_CTRL_RCYC_8@GOTPAGE
Lloh37:
	ldr	x8, [x8, _D_CTRL_RCYC_8@GOTPAGEOFF]
Lloh38:
	adrp	x20, _DMA_CHANNEL_GIF@GOTPAGE
Lloh39:
	ldr	x20, [x20, _DMA_CHANNEL_GIF@GOTPAGEOFF]
	ldr	w9, [x20]
	mov	w10, #1
	lsl	w5, w10, w9
Lloh40:
	ldr	w4, [x8]
	bl	_dmaKit_init
	ldr	w0, [x20]
	bl	_dmaKit_chan_init
	mov	x0, x19
	bl	_gsKit_init_screen
Lloh41:
	adrp	x8, _GS_ONESHOT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GS_ONESHOT@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gsKit_mode_switch
Lloh44:
	adrp	x8, _GS_BLACK@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GS_BLACK@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gsKit_clear
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh40
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GS_MODE_NTSC,4,2               ; @GS_MODE_NTSC
	.comm	_GS_INTERLACED,4,2              ; @GS_INTERLACED
	.comm	_GS_FIELD,4,2                   ; @GS_FIELD
	.comm	_NTSC_WIDTH,4,2                 ; @NTSC_WIDTH
	.comm	_NTSC_HEIGHT,4,2                ; @NTSC_HEIGHT
	.comm	_GS_PSM_CT16,4,2                ; @GS_PSM_CT16
	.comm	_GS_PSMZ_16,4,2                 ; @GS_PSMZ_16
	.comm	_GS_SETTING_OFF,8,3             ; @GS_SETTING_OFF
	.comm	_D_CTRL_RELE_OFF,4,2            ; @D_CTRL_RELE_OFF
	.comm	_D_CTRL_MFD_OFF,4,2             ; @D_CTRL_MFD_OFF
	.comm	_D_CTRL_STS_UNSPEC,4,2          ; @D_CTRL_STS_UNSPEC
	.comm	_D_CTRL_STD_OFF,4,2             ; @D_CTRL_STD_OFF
	.comm	_D_CTRL_RCYC_8,4,2              ; @D_CTRL_RCYC_8
	.comm	_DMA_CHANNEL_GIF,4,2            ; @DMA_CHANNEL_GIF
	.comm	_GS_ONESHOT,4,2                 ; @GS_ONESHOT
	.comm	_GS_BLACK,4,2                   ; @GS_BLACK
	.no_dead_strip	_init_GSGlobal
.subsections_via_symbols
