	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_mi_program_surface_config
_dce_mi_program_surface_config:         ## @dce_mi_program_surface_config
	.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	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r14d
	callq	_TO_DCE_MEM_INPUT
	movq	%rax, %rbx
	movq	_GRPH_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	$1, %edx
	callq	_REG_UPDATE
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_program_tiling
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_program_size_and_rotation
	movq	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	ja	LBB0_2
## %bb.1:
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_program_grph_pixel_format      ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRPH_ENABLE,4,2                ## @GRPH_ENABLE
	.comm	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_GRPH_BEGIN
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.no_dead_strip	_dce_mi_program_surface_config
.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_config
_dce_mi_program_surface_config:         ; @dce_mi_program_surface_config
	.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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	bl	_TO_DCE_MEM_INPUT
	mov	x20, x0
Lloh0:
	adrp	x8, _GRPH_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRPH_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x0
	mov	w2, #1
	bl	_REG_UPDATE
	mov	x0, x20
	mov	x1, x23
	bl	_program_tiling
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_program_size_and_rotation
Lloh3:
	adrp	x8, _SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SURFACE_PIXEL_FORMAT_GRPH_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #0, ls
	b.hi	LBB0_2
; %bb.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
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	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
	b	_program_grph_pixel_format
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRPH_ENABLE,4,2                ; @GRPH_ENABLE
	.comm	_SURFACE_PIXEL_FORMAT_GRPH_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_GRPH_BEGIN
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,4,2 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.no_dead_strip	_dce_mi_program_surface_config
.subsections_via_symbols
