	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_build_prescale_params    ## -- Begin function dcn10_build_prescale_params
	.p2align	4, 0x90
_dcn10_build_prescale_params:           ## @dcn10_build_prescale_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rsi), %rcx
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rdx
	movl	$8192, %eax                     ## imm = 0x2000
	cmpq	(%rdx), %rcx
	jl	LBB0_5
## %bb.1:
	movq	_SURFACE_PIXEL_FORMAT_INVALID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.2:
	movq	%rsi, %rbx
	cmpq	$0, 16(%rsi)
	je	LBB0_5
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movl	$256, %edi                      ## imm = 0x100
	movl	$255, %esi
	callq	_dc_fixpt_from_fraction
	movq	8(%rbx), %rdi
	movl	%eax, %esi
	callq	_dc_fixpt_mul
	movl	%eax, %edi
	movl	$2, %esi
	movl	$13, %edx
	callq	_fixed_point_to_int_frac
LBB0_5:
	movl	%eax, (%r14)
	movl	%eax, 4(%r14)
	movl	%eax, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,8,3 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_SURFACE_PIXEL_FORMAT_INVALID,8,3 ## @SURFACE_PIXEL_FORMAT_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_build_prescale_params    ; -- Begin function dcn10_build_prescale_params
	.p2align	2
_dcn10_build_prescale_params:           ; @dcn10_build_prescale_params
	.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
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SURFACE_PIXEL_FORMAT_INVALID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SURFACE_PIXEL_FORMAT_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ge
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #256
	mov	w1, #255
	bl	_dc_fixpt_from_fraction
	mov	x1, x0
	ldr	x0, [x20, #8]
	bl	_dc_fixpt_mul
	mov	w1, #2
	mov	w2, #13
	bl	_fixed_point_to_int_frac
	b	LBB0_5
LBB0_4:
	mov	w0, #8192
LBB0_5:
	stp	w0, w0, [x19]
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,8,3 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_SURFACE_PIXEL_FORMAT_INVALID,8,3 ; @SURFACE_PIXEL_FORMAT_INVALID
.subsections_via_symbols
