	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos4_jpeg_get_output_buffer_size
_exynos4_jpeg_get_output_buffer_size:   ## @exynos4_jpeg_get_output_buffer_size
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movl	8(%rsi), %ecx
	movl	%ecx, -24(%rbp)
	movq	_V4L2_PIX_FMT_RGB32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	12(%rsi), %esi
	sete	%dl
	orb	%cl, %dl
	movq	_V4L2_PIX_FMT_NV24@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%r8b
	movq	_V4L2_PIX_FMT_NV42@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	sete	%cl
	orb	%r8b, %cl
	orb	%dl, %cl
	movq	_V4L2_PIX_FMT_NV12@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%r8b
	movq	_V4L2_PIX_FMT_NV21@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	movl	%esi, -20(%rbp)
	sete	%dl
	orb	%r8b, %dl
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%al
	orb	%dl, %al
	orb	%cl, %al
	movzbl	%al, %eax
	andl	$1, %eax
	leal	(%rax,%rax,2), %r8d
	incl	%r8d
	movq	_S5P_JPEG_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_S5P_JPEG_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_S5P_JPEG_MIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_S5P_JPEG_MAX_HEIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	leaq	-24(%rbp), %rsi
	leaq	-20(%rbp), %r9
	movq	%r14, %rdi
	pushq	%r8
	pushq	%rax
	pushq	%r10
	callq	_jpeg_bound_align_image
	addq	$32, %rsp
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_SJPEG_EXYNOS4@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	imull	-24(%rbp), %ebx
	imull	-20(%rbp), %ebx
	sarl	$3, %ebx
	addl	%eax, %ebx
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ## @V4L2_PIX_FMT_RGB32
	.comm	_V4L2_PIX_FMT_RGB565,8,3        ## @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_PIX_FMT_NV24,8,3          ## @V4L2_PIX_FMT_NV24
	.comm	_V4L2_PIX_FMT_NV42,8,3          ## @V4L2_PIX_FMT_NV42
	.comm	_V4L2_PIX_FMT_NV12,8,3          ## @V4L2_PIX_FMT_NV12
	.comm	_V4L2_PIX_FMT_NV21,8,3          ## @V4L2_PIX_FMT_NV21
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_S5P_JPEG_MIN_WIDTH,4,2         ## @S5P_JPEG_MIN_WIDTH
	.comm	_S5P_JPEG_MAX_WIDTH,4,2         ## @S5P_JPEG_MAX_WIDTH
	.comm	_S5P_JPEG_MIN_HEIGHT,4,2        ## @S5P_JPEG_MIN_HEIGHT
	.comm	_S5P_JPEG_MAX_HEIGHT,4,2        ## @S5P_JPEG_MAX_HEIGHT
	.comm	_SJPEG_EXYNOS4,8,3              ## @SJPEG_EXYNOS4
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_exynos4_jpeg_get_output_buffer_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos4_jpeg_get_output_buffer_size
_exynos4_jpeg_get_output_buffer_size:   ; @exynos4_jpeg_get_output_buffer_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x1]
	ldp	w9, w10, [x1, #8]
	stp	w10, w9, [sp, #8]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_RGB32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB32@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x9, _V4L2_PIX_FMT_NV24@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV24@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x9, _V4L2_PIX_FMT_NV42@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV42@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh12:
	adrp	x9, _V4L2_PIX_FMT_NV12@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV12@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh15:
	adrp	x9, _V4L2_PIX_FMT_NV21@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_PIX_FMT_NV21@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh18:
	adrp	x9, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh19:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	tst	w8, #0x1
	mov	w8, #4
	csinc	w4, w8, wzr, ne
Lloh21:
	adrp	x8, _S5P_JPEG_MIN_WIDTH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S5P_JPEG_MIN_WIDTH@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _S5P_JPEG_MAX_WIDTH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S5P_JPEG_MAX_WIDTH@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x8, _S5P_JPEG_MIN_HEIGHT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S5P_JPEG_MIN_HEIGHT@GOTPAGEOFF]
Lloh29:
	ldr	w6, [x8]
Lloh30:
	adrp	x8, _S5P_JPEG_MAX_HEIGHT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _S5P_JPEG_MAX_HEIGHT@GOTPAGEOFF]
Lloh32:
	ldr	w7, [x8]
	str	w4, [sp]
	add	x1, sp, #12
	add	x5, sp, #8
	bl	_jpeg_bound_align_image
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh33:
	adrp	x9, _SJPEG_EXYNOS4@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SJPEG_EXYNOS4@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
Lloh36:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh37:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
	ldp	w10, w9, [sp, #8]
	mul	w9, w9, w19
	mul	w9, w9, w10
	add	w0, w8, w9, asr #3
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ; @V4L2_PIX_FMT_RGB32
	.comm	_V4L2_PIX_FMT_RGB565,8,3        ; @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_PIX_FMT_NV24,8,3          ; @V4L2_PIX_FMT_NV24
	.comm	_V4L2_PIX_FMT_NV42,8,3          ; @V4L2_PIX_FMT_NV42
	.comm	_V4L2_PIX_FMT_NV12,8,3          ; @V4L2_PIX_FMT_NV12
	.comm	_V4L2_PIX_FMT_NV21,8,3          ; @V4L2_PIX_FMT_NV21
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_S5P_JPEG_MIN_WIDTH,4,2         ; @S5P_JPEG_MIN_WIDTH
	.comm	_S5P_JPEG_MAX_WIDTH,4,2         ; @S5P_JPEG_MAX_WIDTH
	.comm	_S5P_JPEG_MIN_HEIGHT,4,2        ; @S5P_JPEG_MIN_HEIGHT
	.comm	_S5P_JPEG_MAX_HEIGHT,4,2        ; @S5P_JPEG_MAX_HEIGHT
	.comm	_SJPEG_EXYNOS4,8,3              ; @SJPEG_EXYNOS4
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_exynos4_jpeg_get_output_buffer_size
.subsections_via_symbols
