	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_page_flip
_dce_v6_0_page_flip:                    ## @dce_v6_0_page_flip
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rdx
	movq	(%rax,%rdx,8), %r15
	movq	(%r15), %rdi
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	movq	_mmGRPH_FLIP_CONTROL@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movl	%ecx, %esi
	callq	_WREG32
	movq	_mmGRPH_PITCH@GOTPCREL(%rip), %rax
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rax), %eax
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movq	(%r15), %rbx
	addq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_upper_32_bits
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_WREG32
	movq	_mmGRPH_PRIMARY_SURFACE_ADDRESS@GOTPCREL(%rip), %rbx
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_WREG32
	movq	(%r15), %rdi
	addq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmGRPH_FLIP_CONTROL,8,3        ## @mmGRPH_FLIP_CONTROL
	.comm	_GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK,4,2 ## @GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK
	.comm	_mmGRPH_PITCH,8,3               ## @mmGRPH_PITCH
	.comm	_mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH,8,3 ## @mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH
	.comm	_mmGRPH_PRIMARY_SURFACE_ADDRESS,8,3 ## @mmGRPH_PRIMARY_SURFACE_ADDRESS
	.no_dead_strip	_dce_v6_0_page_flip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_v6_0_page_flip
_dce_v6_0_page_flip:                    ; @dce_v6_0_page_flip
	.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	x19, x2
	ldr	x8, [x0]
	ldr	x21, [x8, w1, sxtw #3]
	ldp	x9, x8, [x21]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _mmGRPH_FLIP_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmGRPH_FLIP_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x9, x8
Lloh3:
	adrp	x8, _GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w3, #0
	csel	w1, wzr, w8, eq
	bl	_WREG32
Lloh6:
	adrp	x8, _mmGRPH_PITCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmGRPH_PITCH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldp	x8, x9, [x20]
	ldr	w8, [x8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	bl	_WREG32
Lloh9:
	adrp	x8, _mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x20, x9, x8
	mov	x0, x19
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
Lloh12:
	adrp	x20, _mmGRPH_PRIMARY_SURFACE_ADDRESS@GOTPAGE
Lloh13:
	ldr	x20, [x20, _mmGRPH_PRIMARY_SURFACE_ADDRESS@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x19
	bl	_WREG32
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	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	_RREG32
	.loh AdrpLdrGot	Lloh12, Lloh13
	.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	_mmGRPH_FLIP_CONTROL,8,3        ; @mmGRPH_FLIP_CONTROL
	.comm	_GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK,4,2 ; @GRPH_FLIP_CONTROL__GRPH_SURFACE_UPDATE_H_RETRACE_EN_MASK
	.comm	_mmGRPH_PITCH,8,3               ; @mmGRPH_PITCH
	.comm	_mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH,8,3 ; @mmGRPH_PRIMARY_SURFACE_ADDRESS_HIGH
	.comm	_mmGRPH_PRIMARY_SURFACE_ADDRESS,8,3 ; @mmGRPH_PRIMARY_SURFACE_ADDRESS
	.no_dead_strip	_dce_v6_0_page_flip
.subsections_via_symbols
