	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_initViewport ## -- Begin function Java_org_yabause_android_YabauseRunnable_initViewport
	.p2align	4, 0x90
_Java_org_yabause_android_YabauseRunnable_initViewport: ## @Java_org_yabause_android_YabauseRunnable_initViewport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_eglGetCurrentDisplay
	movq	_g_Display@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movq	_EGL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_eglGetCurrentSurface
	movq	_g_Surface@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_eglGetCurrentContext
	movq	_g_Context@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glLoadIdentity
	xorl	%edi, %edi
	movl	$320, %esi                      ## imm = 0x140
	movl	$224, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_glOrthof
	movq	_GL_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glLoadIdentity
	movq	_GL_TEXTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glLoadIdentity
	movq	_GL_BLEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDisable
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBlendFunc
	movq	_GL_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movl	%eax, %edi
	callq	_yprintf
	movq	_GL_RENDERER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movl	%eax, %edi
	callq	_yprintf
	movq	_GL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movl	%eax, %edi
	callq	_yprintf
	movq	_GL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glGetString
	movl	%eax, %edi
	callq	_yprintf
	movl	(%rbx), %edi
	movq	_EGL_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_eglQueryString
	movl	%eax, %edi
	callq	_yprintf
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_eglSwapInterval
	movl	(%rbx), %edi
	movq	_EGL_NO_SURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_EGL_NO_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	callq	_eglMakeCurrent
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_Display,4,2                  ## @g_Display
	.comm	_EGL_READ,4,2                   ## @EGL_READ
	.comm	_g_Surface,4,2                  ## @g_Surface
	.comm	_g_Context,4,2                  ## @g_Context
	.comm	_GL_PROJECTION,4,2              ## @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ## @GL_MODELVIEW
	.comm	_GL_TEXTURE,4,2                 ## @GL_TEXTURE
	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_VENDOR,4,2                  ## @GL_VENDOR
	.comm	_GL_RENDERER,4,2                ## @GL_RENDERER
	.comm	_GL_VERSION,4,2                 ## @GL_VERSION
	.comm	_GL_EXTENSIONS,4,2              ## @GL_EXTENSIONS
	.comm	_EGL_EXTENSIONS,4,2             ## @EGL_EXTENSIONS
	.comm	_EGL_NO_SURFACE,4,2             ## @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ## @EGL_NO_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_initViewport ; -- Begin function Java_org_yabause_android_YabauseRunnable_initViewport
	.p2align	2
_Java_org_yabause_android_YabauseRunnable_initViewport: ; @Java_org_yabause_android_YabauseRunnable_initViewport
	.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	_eglGetCurrentDisplay
Lloh0:
	adrp	x19, _g_Display@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_Display@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	adrp	x8, _EGL_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EGL_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_eglGetCurrentSurface
Lloh5:
	adrp	x8, _g_Surface@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_Surface@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	bl	_eglGetCurrentContext
Lloh8:
	adrp	x8, _g_Context@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_Context@GOTPAGEOFF]
Lloh10:
	str	w0, [x8]
Lloh11:
	adrp	x8, _GL_PROJECTION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_PROJECTION@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_glMatrixMode
	bl	_glLoadIdentity
	mov	w0, #0
	mov	w1, #320
	mov	w2, #224
	mov	w3, #0
	mov	w4, #1
	mov	w5, #0
	bl	_glOrthof
Lloh14:
	adrp	x8, _GL_MODELVIEW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GL_MODELVIEW@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_glMatrixMode
	bl	_glLoadIdentity
Lloh17:
	adrp	x8, _GL_TEXTURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GL_TEXTURE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_glMatrixMode
	bl	_glLoadIdentity
Lloh20:
	adrp	x8, _GL_BLEND@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_BLEND@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_glDisable
Lloh23:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_glBlendFunc
Lloh29:
	adrp	x8, _GL_VENDOR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GL_VENDOR@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_glGetString
	bl	_yprintf
Lloh32:
	adrp	x8, _GL_RENDERER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GL_RENDERER@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_glGetString
	bl	_yprintf
Lloh35:
	adrp	x8, _GL_VERSION@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GL_VERSION@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_glGetString
	bl	_yprintf
Lloh38:
	adrp	x8, _GL_EXTENSIONS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GL_EXTENSIONS@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_glGetString
	bl	_yprintf
	ldr	w0, [x19]
Lloh41:
	adrp	x8, _EGL_EXTENSIONS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EGL_EXTENSIONS@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	bl	_eglQueryString
	bl	_yprintf
	ldr	w0, [x19]
	mov	w1, #0
	bl	_eglSwapInterval
	ldr	w0, [x19]
Lloh44:
	adrp	x8, _EGL_NO_SURFACE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EGL_NO_SURFACE@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _EGL_NO_CONTEXT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EGL_NO_CONTEXT@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
	mov	x2, x1
	bl	_eglMakeCurrent
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_g_Display,4,2                  ; @g_Display
	.comm	_EGL_READ,4,2                   ; @EGL_READ
	.comm	_g_Surface,4,2                  ; @g_Surface
	.comm	_g_Context,4,2                  ; @g_Context
	.comm	_GL_PROJECTION,4,2              ; @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ; @GL_MODELVIEW
	.comm	_GL_TEXTURE,4,2                 ; @GL_TEXTURE
	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_VENDOR,4,2                  ; @GL_VENDOR
	.comm	_GL_RENDERER,4,2                ; @GL_RENDERER
	.comm	_GL_VERSION,4,2                 ; @GL_VERSION
	.comm	_GL_EXTENSIONS,4,2              ; @GL_EXTENSIONS
	.comm	_EGL_EXTENSIONS,4,2             ; @EGL_EXTENSIONS
	.comm	_EGL_NO_SURFACE,4,2             ; @EGL_NO_SURFACE
	.comm	_EGL_NO_CONTEXT,4,2             ; @EGL_NO_CONTEXT
.subsections_via_symbols
