	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos3250_jpeg_try_downscale
_exynos3250_jpeg_try_downscale:         ## @exynos3250_jpeg_try_downscale
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	32(%rdi), %eax
	movl	36(%rdi), %ecx
	cltd
	idivl	(%rsi)
	movl	%eax, %edi
	movl	%ecx, %eax
	cltd
	idivl	4(%rsi)
	cmpl	%eax, %edi
	cmovlel	%eax, %edi
	movl	$1, %r15d
	movl	$1, %esi
	movl	$8, %edx
	callq	_clamp_val
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.1:
	movl	$2, %r15d
	je	LBB0_5
## %bb.2:
	movl	$4, %r15d
	cmpl	$5, %eax
	jb	LBB0_5
## %bb.3:
	movl	$8, %r15d
	cmpl	$9, %eax
	jb	LBB0_5
## %bb.4:
	movl	(%rbx), %r15d
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, (%rbx)
LBB0_6:
	movl	32(%rbx), %eax
	cltd
	idivl	%r15d
	movl	%eax, %edi
	movl	$2, %esi
	callq	_round_down
	movl	%eax, (%r14)
	movl	36(%rbx), %eax
	cltd
	idivl	(%rbx)
	movl	%eax, %edi
	movl	$2, %esi
	callq	_round_down
	movl	%eax, 4(%r14)
	movl	(%r14), %ecx
	movl	%ecx, 8(%rbx)
	movl	%eax, 12(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$1, 4(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_exynos3250_jpeg_try_downscale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos3250_jpeg_try_downscale
_exynos3250_jpeg_try_downscale:         ; @exynos3250_jpeg_try_downscale
	.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	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0, #32]
	ldp	w10, w11, [x1]
	sdiv	w8, w8, w10
	sdiv	w9, w9, w11
	cmp	w8, w9
	csel	w0, w8, w9, gt
	mov	w21, #1
	mov	w1, #1
	mov	w2, #8
	bl	_clamp_val
	cmp	w0, #2
	b.lt	LBB0_8
; %bb.1:
	b.ne	LBB0_3
; %bb.2:
	mov	w21, #2
	b	LBB0_8
LBB0_3:
	cmp	w0, #5
	b.lo	LBB0_6
; %bb.4:
	cmp	w0, #9
	b.lo	LBB0_7
; %bb.5:
	ldr	w21, [x19]
	b	LBB0_9
LBB0_6:
	mov	w21, #4
	b	LBB0_8
LBB0_7:
	mov	w21, #8
LBB0_8:
	str	w21, [x19]
LBB0_9:
	ldr	w8, [x19, #32]
	sdiv	w0, w8, w21
	mov	w1, #2
	bl	_round_down
	str	w0, [x20]
	ldr	w8, [x19, #36]
	ldr	w9, [x19]
	sdiv	w0, w8, w9
	mov	w1, #2
	bl	_round_down
	str	w0, [x20, #4]
	ldr	w8, [x20]
	stp	w8, w0, [x19, #8]
	stp	xzr, xzr, [x19, #16]
	mov	w9, #1
	str	w9, [x19, #4]
	mov	w0, #0
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_exynos3250_jpeg_try_downscale
.subsections_via_symbols
