	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gxResetMode
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gxResetMode:                           ## @gxResetMode
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %esi
	callq	_GX_GetYScaleFactor
	movl	%eax, %edi
	callq	_GX_SetDispCopyYScale
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_VIDEO_PadFramebufferWidth
	movl	%eax, %r12d
	movq	_BLACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16777215, %esi                 ## imm = 0xFFFFFF
	callq	_GX_SetCopyClear
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	callq	_GX_SetViewport
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_GX_SetScissor
	movl	(%rbx), %ecx
	movl	8(%rbx), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_GX_SetDispCopySrc
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_GX_SetDispCopyDst
	movl	40(%rbx), %edi
	movl	36(%rbx), %esi
	movq	16(%rbx), %rax
	movq	_VI_XFBMODE_SF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_GX_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movl	32(%rbx), %ecx
	movl	%r14d, %edx
	callq	_GX_SetCopyFilter
	movl	28(%rbx), %edi
	movl	4(%rbx), %eax
	addl	%eax, %eax
	cmpl	%eax, 24(%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_GX_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GX_DISABLE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	callq	_GX_SetFieldMode
	movl	(%rbx), %eax
	movl	8(%rbx), %ecx
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movl	%esi, %edx
	negl	%edx
	movl	%ecx, %r8d
	shrl	$31, %r8d
	addl	%ecx, %r8d
	sarl	%r8d
	movl	%r8d, %ecx
	negl	%ecx
	movl	$1000, (%rsp)                   ## imm = 0x3E8
	movl	$100, %r9d
	callq	_guOrtho
	movq	_GX_ORTHOGRAPHIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_LoadProjectionMtx
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GX_Flush                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BLACK,8,3                      ## @BLACK
	.comm	_VI_XFBMODE_SF,8,3              ## @VI_XFBMODE_SF
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.comm	_GX_ENABLE,4,2                  ## @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ## @GX_DISABLE
	.comm	_GX_ORTHOGRAPHIC,4,2            ## @GX_ORTHOGRAPHIC
	.no_dead_strip	_gxResetMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gxResetMode
_gxResetMode:                           ; @gxResetMode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_GX_GetYScaleFactor
	bl	_GX_SetDispCopyYScale
	mov	x21, x0
	ldr	w0, [x19, #8]
	bl	_VIDEO_PadFramebufferWidth
	mov	x22, x0
Lloh0:
	adrp	x8, _BLACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLACK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #16777215
	bl	_GX_SetCopyClear
	ldr	w0, [x19, #8]
	ldr	w1, [x19]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	fmov	s3, #1.00000000
	bl	_GX_SetViewport
	ldr	w2, [x19, #8]
	ldr	w3, [x19]
	mov	w0, #0
	mov	w1, #0
	bl	_GX_SetScissor
	ldr	w2, [x19, #8]
	ldr	w3, [x19]
	mov	w0, #0
	mov	w1, #0
	bl	_GX_SetDispCopySrc
	mov	x0, x22
	mov	x1, x21
	bl	_GX_SetDispCopyDst
	ldp	w1, w0, [x19, #36]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _VI_XFBMODE_SF@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VI_XFBMODE_SF@GOTPAGEOFF]
Lloh5:
	adrp	x10, _GX_FALSE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GX_FALSE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w2, w10, w20, eq
	ldr	w3, [x19, #32]
	bl	_GX_SetCopyFilter
	ldp	w8, w0, [x19, #24]
Lloh9:
	adrp	x9, _GX_ENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GX_ENABLE@GOTPAGEOFF]
	ldr	w10, [x19, #4]
Lloh11:
	adrp	x11, _GX_DISABLE@GOTPAGE
Lloh12:
	ldr	x11, [x11, _GX_DISABLE@GOTPAGEOFF]
	cmp	w8, w10, lsl #1
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	bl	_GX_SetFieldMode
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	neg	w2, w1
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w4, w8, #1
	neg	w3, w4
	mov	w5, #100
	mov	w6, #1000
	bl	_guOrtho
Lloh13:
	adrp	x8, _GX_ORTHOGRAPHIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GX_ORTHOGRAPHIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_GX_LoadProjectionMtx
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_GX_Flush
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BLACK,8,3                      ; @BLACK
	.comm	_VI_XFBMODE_SF,8,3              ; @VI_XFBMODE_SF
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.comm	_GX_ENABLE,4,2                  ; @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ; @GX_DISABLE
	.comm	_GX_ORTHOGRAPHIC,4,2            ; @GX_ORTHOGRAPHIC
	.no_dead_strip	_gxResetMode
.subsections_via_symbols
