	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_try_compose
_vfe_try_compose:                       ## @vfe_try_compose
	.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	%rdx, %r14
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___vfe_get_format
	movl	(%r14), %ecx
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jle	LBB0_2
## %bb.1:
	movl	%edx, (%r14)
	movl	%edx, %ecx
LBB0_2:
	movl	4(%r14), %esi
	movl	4(%rax), %edi
	cmpl	%edi, %esi
	jle	LBB0_4
## %bb.3:
	movl	%edi, 4(%r14)
	movl	%edi, %esi
LBB0_4:
	movq	_SCALER_RATIO_MAX@GOTPCREL(%rip), %r8
	movl	(%r8), %ebx
	movl	%ebx, %eax
	imull	%ecx, %eax
	cmpl	%eax, %edx
	jle	LBB0_6
## %bb.5:
	leal	(%rdx,%rbx), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	%eax, %ecx
LBB0_6:
	andl	$-2, %ecx
	movl	%ecx, (%r14)
	movl	(%r8), %ebx
	movl	%ebx, %eax
	imull	%esi, %eax
	cmpl	%eax, %edi
	jg	LBB0_7
## %bb.8:
	cmpl	$15, %ecx
	jle	LBB0_9
LBB0_10:
	cmpl	$3, %esi
	jg	LBB0_12
LBB0_11:
	movl	$4, 4(%r14)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leal	(%rdi,%rbx), %eax
	decl	%eax
	cltd
	idivl	%ebx
	movl	%eax, %esi
	movl	%eax, 4(%r14)
	cmpl	$15, %ecx
	jg	LBB0_10
LBB0_9:
	movl	$16, (%r14)
	cmpl	$3, %esi
	jle	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_VFE_PAD_SINK,4,2           ## @MSM_VFE_PAD_SINK
	.comm	_SCALER_RATIO_MAX,4,2           ## @SCALER_RATIO_MAX
	.no_dead_strip	_vfe_try_compose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_try_compose
_vfe_try_compose:                       ; @vfe_try_compose
	.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, x2
Lloh0:
	adrp	x8, _MSM_VFE_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSM_VFE_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	___vfe_get_format
	ldr	w10, [x19]
	ldr	w11, [x0]
	cmp	w10, w11
	b.le	LBB0_2
; %bb.1:
	str	w11, [x19]
	mov	x10, x11
LBB0_2:
	ldr	w8, [x19, #4]
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.3:
	str	w9, [x19, #4]
	mov	x8, x9
LBB0_4:
Lloh3:
	adrp	x12, _SCALER_RATIO_MAX@GOTPAGE
Lloh4:
	ldr	x12, [x12, _SCALER_RATIO_MAX@GOTPAGEOFF]
	ldr	w13, [x12]
	mul	w14, w13, w10
	cmp	w11, w14
	b.le	LBB0_6
; %bb.5:
	add	w10, w11, w13
	sub	w10, w10, #1
	sdiv	w10, w10, w13
LBB0_6:
	and	w10, w10, #0xfffffffe
	str	w10, [x19]
	ldr	w11, [x12]
	mul	w12, w11, w8
	cmp	w9, w12
	b.gt	LBB0_11
; %bb.7:
	cmp	w10, #15
	b.le	LBB0_12
LBB0_8:
	cmp	w8, #3
	b.gt	LBB0_10
LBB0_9:
	mov	w8, #4
	str	w8, [x19, #4]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	w8, w9, w11
	sub	w8, w8, #1
	sdiv	w8, w8, w11
	str	w8, [x19, #4]
	cmp	w10, #15
	b.gt	LBB0_8
LBB0_12:
	mov	w9, #16
	str	w9, [x19]
	cmp	w8, #3
	b.le	LBB0_9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_VFE_PAD_SINK,4,2           ; @MSM_VFE_PAD_SINK
	.comm	_SCALER_RATIO_MAX,4,2           ; @SCALER_RATIO_MAX
	.no_dead_strip	_vfe_try_compose
.subsections_via_symbols
