	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos3250_jpeg_set_img_addr
_exynos3250_jpeg_set_img_addr:          ## @exynos3250_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movslq	8(%rdi), %r12
	movslq	12(%rdi), %r15
	movq	(%rdi), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	movl	24(%rdi), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, %rdi
	addq	$32, %rbx
	jmp	LBB0_3
LBB0_2:
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %rdi
	addq	$16, %rbx
LBB0_3:
	imulq	%r12, %r15
	movq	(%rbx), %rbx
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rax, -48(%rbp)
	movl	(%rbx), %ecx
	cmpl	$3, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.5:
	addq	%r15, %rax
	movq	%rax, -64(%rbp)
	jmp	LBB0_10
LBB0_6:
	movslq	%r15d, %rcx
	addq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	8(%rbx), %rcx
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	leal	3(%r15), %ecx
	testl	%r15d, %r15d
	cmovnsl	%r15d, %ecx
	sarl	$2, %ecx
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %ecx
	shrl	$31, %ecx
	addl	%r15d, %ecx
	sarl	%ecx
LBB0_9:
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	movq	%rax, -56(%rbp)
LBB0_10:
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	callq	_exynos3250_jpeg_imgadr
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	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	_exynos3250_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 exynos3250_jpeg_set_img_addr
_exynos3250_jpeg_set_img_addr:          ; @exynos3250_jpeg_set_img_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x20, [x0, #40]
	stp	xzr, xzr, [sp, #8]
	ldpsw	x21, x22, [x0, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _S5P_JPEG_ENCODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x0, #24]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_v4l2_m2m_next_src_buf
	add	x8, x19, #32
	b	LBB0_3
LBB0_2:
	bl	_v4l2_m2m_next_dst_buf
	add	x8, x19, #16
LBB0_3:
	mul	x19, x22, x21
	ldr	x21, [x8]
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	str	x0, [sp, #24]
	ldr	w8, [x21]
	cmp	w8, #3
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.5:
	add	x8, x0, x19
	str	x8, [sp, #8]
	b	LBB0_10
LBB0_6:
	add	x8, x0, w19, sxtw
	str	x8, [sp, #8]
	ldr	x9, [x21, #8]
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_8
; %bb.7:
	add	w9, w19, #3
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w9, w9, #2
	b	LBB0_9
LBB0_8:
	cmp	w19, #0
	cinc	w9, w19, lt
	asr	w9, w9, #1
LBB0_9:
	add	x8, x8, w9, sxtw
	str	x8, [sp, #16]
LBB0_10:
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_exynos3250_jpeg_imgadr
	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
	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	_exynos3250_jpeg_set_img_addr
.subsections_via_symbols
