	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_mi_program_surface_flip_and_addr
_dce_mi_program_surface_flip_and_addr:  ## @dce_mi_program_surface_flip_and_addr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_TO_DCE_MEM_INPUT
	movq	%rax, %r12
	movq	_GRPH_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_UPDATE_LOCK@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movq	_GRPH_FLIP_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GRPH_SURFACE_UPDATE_H_RETRACE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	callq	_REG_UPDATE
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.2:
	movl	12(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.3:
	movq	%r12, %rdi
	callq	_program_pri_addr
	jmp	LBB0_8
LBB0_4:
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.5:
	cmpl	$0, 4(%rbx)
	je	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_program_pri_addr
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_program_sec_addr
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_BREAK_TO_DEBUGGER
LBB0_8:
	movups	(%rbx), %xmm0
	movups	%xmm0, 16(%r14)
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.9:
	movups	(%rbx), %xmm0
	movups	%xmm0, (%r14)
LBB0_10:
	movq	_GRPH_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_REG_UPDATE
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRPH_UPDATE,4,2                ## @GRPH_UPDATE
	.comm	_GRPH_UPDATE_LOCK,4,2           ## @GRPH_UPDATE_LOCK
	.comm	_GRPH_FLIP_CONTROL,4,2          ## @GRPH_FLIP_CONTROL
	.comm	_GRPH_SURFACE_UPDATE_H_RETRACE_EN,4,2 ## @GRPH_SURFACE_UPDATE_H_RETRACE_EN
	.no_dead_strip	_dce_mi_program_surface_flip_and_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_mi_program_surface_flip_and_addr
_dce_mi_program_surface_flip_and_addr:  ; @dce_mi_program_surface_flip_and_addr
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_TO_DCE_MEM_INPUT
	mov	x22, x0
Lloh0:
	adrp	x23, _GRPH_UPDATE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GRPH_UPDATE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x24, _GRPH_UPDATE_LOCK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GRPH_UPDATE_LOCK@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w2, #1
	bl	_REG_UPDATE
Lloh4:
	adrp	x8, _GRPH_FLIP_CONTROL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GRPH_FLIP_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _GRPH_SURFACE_UPDATE_H_RETRACE_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRPH_SURFACE_UPDATE_H_RETRACE_EN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	cmp	w21, #0
	cset	w2, ne
	bl	_REG_UPDATE
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.2:
	ldr	w1, [x20, #12]
	cbz	w1, LBB0_8
; %bb.3:
	mov	x0, x22
	bl	_program_pri_addr
	b	LBB0_8
LBB0_4:
	ldr	w1, [x20, #8]
	cbz	w1, LBB0_8
; %bb.5:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x0, x22
	bl	_program_pri_addr
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_program_sec_addr
	b	LBB0_8
LBB0_7:
	bl	_BREAK_TO_DEBUGGER
LBB0_8:
	ldr	q0, [x20]
	str	q0, [x19, #16]
	cbz	w21, LBB0_10
; %bb.9:
	ldr	q0, [x20]
	str	q0, [x19]
LBB0_10:
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_REG_UPDATE
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRPH_UPDATE,4,2                ; @GRPH_UPDATE
	.comm	_GRPH_UPDATE_LOCK,4,2           ; @GRPH_UPDATE_LOCK
	.comm	_GRPH_FLIP_CONTROL,4,2          ; @GRPH_FLIP_CONTROL
	.comm	_GRPH_SURFACE_UPDATE_H_RETRACE_EN,4,2 ; @GRPH_SURFACE_UPDATE_H_RETRACE_EN
	.no_dead_strip	_dce_mi_program_surface_flip_and_addr
.subsections_via_symbols
