	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos4_jpeg_set_img_addr
_exynos4_jpeg_set_img_addr:             ## @exynos4_jpeg_set_img_addr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r14
	movq	$0, -56(%rbp)
	movl	20(%rdi), %r15d
	imull	16(%rdi), %r15d
	movq	(%rdi), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, %rdi
	movq	40(%rbx), %r12
	xorl	%r13d, %r13d
	testb	$1, 32(%rbx)
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	movl	36(%rbx), %r13d
	jmp	LBB0_5
LBB0_4:
	movq	24(%rbx), %r12
	movl	8(%rbx), %edi
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %rdi
	xorl	%r13d, %r13d
LBB0_5:
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	%eax, -48(%rbp)
	movl	8(%r12), %ecx
	cmpl	$3, %ecx
	je	LBB0_8
## %bb.6:
	cmpl	$2, %ecx
	jne	LBB0_12
## %bb.7:
	addl	%r15d, %eax
	subl	%r13d, %eax
	movl	%eax, -56(%rbp)
	jmp	LBB0_12
LBB0_8:
	addl	%r15d, %eax
	movl	%eax, -56(%rbp)
	movq	16(%r12), %rcx
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.9:
	leal	3(%r15), %ecx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ecx
	sarl	$2, %ecx
	jmp	LBB0_11
LBB0_10:
	movl	%r15d, %ecx
	shrl	$31, %ecx
	addl	%r15d, %ecx
	sarl	%ecx
LBB0_11:
	addl	%ecx, %eax
	movl	%eax, -52(%rbp)
LBB0_12:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_exynos4_jpeg_set_frame_buf_address
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.no_dead_strip	_exynos4_jpeg_set_img_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos4_jpeg_set_img_addr
_exynos4_jpeg_set_img_addr:             ; @exynos4_jpeg_set_img_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x20, [x0, #48]
	str	xzr, [sp]
	ldp	w21, w22, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S5P_JPEG_ENCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_v4l2_m2m_next_src_buf
	ldr	x23, [x19, #40]
	ldrb	w8, [x19, #32]
	tbz	w8, #0, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w19, [x19, #36]
	b	LBB0_6
LBB0_4:
	ldr	x23, [x19, #24]
	ldr	w0, [x19, #8]
	bl	_v4l2_m2m_next_dst_buf
LBB0_5:
	mov	w19, #0
LBB0_6:
	mul	w21, w22, w21
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	str	w0, [sp, #8]
	ldr	w8, [x23, #8]
	cmp	w8, #3
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.8:
	add	w8, w0, w21
	sub	w8, w8, w19
	str	w8, [sp]
	b	LBB0_13
LBB0_9:
	add	w8, w0, w21
	str	w8, [sp]
	ldr	x9, [x23, #16]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.10:
	add	w9, w21, #3
	cmp	w21, #0
	csel	w9, w9, w21, lt
	add	w8, w8, w9, asr #2
	b	LBB0_12
LBB0_11:
	cmp	w21, #0
	cinc	w9, w21, lt
	add	w8, w8, w9, asr #1
LBB0_12:
	str	w8, [sp, #4]
LBB0_13:
	ldr	w0, [x20]
	mov	x1, sp
	bl	_exynos4_jpeg_set_frame_buf_address
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.no_dead_strip	_exynos4_jpeg_set_img_addr
.subsections_via_symbols
