	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos3250_jpeg_device_run
_exynos3250_jpeg_device_run:            ## @exynos3250_jpeg_device_run
	.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	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	4(%rbx), %r15
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_reset
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_set_dma_num
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_poweron
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_clk_set
	movl	4(%rbx), %edi
	movq	(%r14), %rsi
	callq	_exynos3250_jpeg_proc_mode
	movq	(%r14), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movl	4(%rbx), %edi
	movq	40(%r14), %rax
	movq	(%rax), %rsi
	callq	_exynos3250_jpeg_input_raw_fmt
	movl	4(%rbx), %edi
	movl	84(%r14), %esi
	callq	_exynos3250_jpeg_dri
	movl	4(%rbx), %edi
	movl	80(%r14), %esi
	callq	_s5p_jpeg_set_qtbl_lum
	movl	4(%rbx), %edi
	movl	80(%r14), %esi
	callq	_s5p_jpeg_set_qtbl_chr
	movl	4(%rbx), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_exynos3250_jpeg_qtbl
	movl	4(%rbx), %edi
	movl	$2, %esi
	movl	$1, %edx
	callq	_exynos3250_jpeg_qtbl
	movl	4(%rbx), %edi
	movl	$3, %esi
	movl	$1, %edx
	callq	_exynos3250_jpeg_qtbl
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	callq	_s5p_jpeg_set_hdctbl
	movl	(%r15), %edi
	callq	_s5p_jpeg_set_hdctblg
	movl	(%r15), %edi
	callq	_s5p_jpeg_set_hactbl
	movl	(%r15), %edi
	callq	_s5p_jpeg_set_hactblg
LBB0_3:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_exynos3250_jpeg_htbl_ac
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_exynos3250_jpeg_htbl_dc
	movl	(%r15), %edi
	movl	$2, %esi
	callq	_exynos3250_jpeg_htbl_ac
	movl	(%r15), %edi
	movl	$2, %esi
	callq	_exynos3250_jpeg_htbl_dc
	movl	(%r15), %edi
	movl	$3, %esi
	callq	_exynos3250_jpeg_htbl_ac
	movl	(%r15), %edi
	movl	$3, %esi
	callq	_exynos3250_jpeg_htbl_dc
	movl	(%r15), %edi
	movl	76(%r14), %esi
	callq	_exynos3250_jpeg_set_x
	movl	(%r15), %edi
	movl	72(%r14), %esi
	callq	_exynos3250_jpeg_set_y
	movl	(%r15), %edi
	movq	40(%r14), %rax
	movq	(%rax), %rsi
	movl	48(%r14), %edx
	callq	_exynos3250_jpeg_stride
	movl	(%r15), %edi
	movl	64(%r14), %edx
	movl	68(%r14), %esi
	callq	_exynos3250_jpeg_offset
	movq	%r14, %rdi
	callq	_exynos3250_jpeg_set_img_addr
	movq	%r14, %rdi
	callq	_exynos3250_jpeg_set_jpeg_addr
	movl	(%r15), %edi
	movl	60(%r14), %esi
	callq	_exynos3250_jpeg_subsampling_mode
	movl	(%r15), %edi
	movl	28(%r14), %esi
	callq	_exynos3250_jpeg_enc_stream_bound
	movq	40(%r14), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_V4L2_PIX_FMT_RGB565X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_V4L2_PIX_FMT_RGB32@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_6:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_exynos3250_jpeg_set_y16
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_exynos3250_jpeg_set_img_addr
	movq	%r14, %rdi
	callq	_exynos3250_jpeg_set_jpeg_addr
	movl	(%r15), %edi
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	movl	24(%r14), %edx
	callq	_exynos3250_jpeg_stride
	movl	(%r15), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_exynos3250_jpeg_offset
	movl	(%r15), %edi
	movl	56(%r14), %esi
	callq	_exynos3250_jpeg_dec_scaling_ratio
	movl	(%r15), %edi
	movl	32(%r14), %esi
	callq	_exynos3250_jpeg_dec_stream_size
	movl	(%r15), %edi
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	callq	_exynos3250_jpeg_output_raw_fmt
LBB0_8:
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_interrupts_enable
	movl	4(%rbx), %edi
	movq	(%r14), %rsi
	callq	_exynos3250_jpeg_coef
	movl	4(%rbx), %edi
	movq	_EXYNOS3250_IRQ_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_exynos3250_jpeg_set_timer
	movq	$0, 8(%rbx)
	movl	4(%rbx), %edi
	callq	_exynos3250_jpeg_start
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_RGB565,8,3        ## @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_PIX_FMT_RGB565X,8,3       ## @V4L2_PIX_FMT_RGB565X
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ## @V4L2_PIX_FMT_RGB32
	.comm	_EXYNOS3250_IRQ_TIMEOUT,4,2     ## @EXYNOS3250_IRQ_TIMEOUT
	.no_dead_strip	_exynos3250_jpeg_device_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos3250_jpeg_device_run
_exynos3250_jpeg_device_run:            ; @exynos3250_jpeg_device_run
	.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	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x21, x20
	ldr	w0, [x21, #4]!
	bl	_exynos3250_jpeg_reset
	ldr	w0, [x21]
	bl	_exynos3250_jpeg_set_dma_num
	ldr	w0, [x21]
	bl	_exynos3250_jpeg_poweron
	ldr	w0, [x21]
	bl	_exynos3250_jpeg_clk_set
	ldr	w0, [x21]
	ldr	x1, [x19]
	bl	_exynos3250_jpeg_proc_mode
	ldr	x8, [x19]
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_7
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	x8, [x19, #40]
	ldr	x1, [x8]
	bl	_exynos3250_jpeg_input_raw_fmt
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #84]
	bl	_exynos3250_jpeg_dri
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #80]
	bl	_s5p_jpeg_set_qtbl_lum
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #80]
	bl	_s5p_jpeg_set_qtbl_chr
	ldr	w0, [x20, #4]
	mov	w1, #1
	mov	w2, #0
	bl	_exynos3250_jpeg_qtbl
	ldr	w0, [x20, #4]
	mov	w1, #2
	mov	w2, #1
	bl	_exynos3250_jpeg_qtbl
	ldr	w0, [x20, #4]
	mov	w1, #3
	mov	w2, #1
	bl	_exynos3250_jpeg_qtbl
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	bl	_s5p_jpeg_set_hdctbl
	ldr	w0, [x21]
	bl	_s5p_jpeg_set_hdctblg
	ldr	w0, [x21]
	bl	_s5p_jpeg_set_hactbl
	ldr	w0, [x21]
	bl	_s5p_jpeg_set_hactblg
LBB0_3:
	ldr	w0, [x21]
	mov	w1, #1
	bl	_exynos3250_jpeg_htbl_ac
	ldr	w0, [x21]
	mov	w1, #1
	bl	_exynos3250_jpeg_htbl_dc
	ldr	w0, [x21]
	mov	w1, #2
	bl	_exynos3250_jpeg_htbl_ac
	ldr	w0, [x21]
	mov	w1, #2
	bl	_exynos3250_jpeg_htbl_dc
	ldr	w0, [x21]
	mov	w1, #3
	bl	_exynos3250_jpeg_htbl_ac
	ldr	w0, [x21]
	mov	w1, #3
	bl	_exynos3250_jpeg_htbl_dc
	ldr	w0, [x21]
	ldr	w1, [x19, #76]
	bl	_exynos3250_jpeg_set_x
	ldr	w0, [x21]
	ldr	w1, [x19, #72]
	bl	_exynos3250_jpeg_set_y
	ldr	w0, [x21]
	ldr	x8, [x19, #40]
	ldr	x1, [x8]
	ldr	w2, [x19, #48]
	bl	_exynos3250_jpeg_stride
	ldr	w0, [x21]
	ldp	w2, w1, [x19, #64]
	bl	_exynos3250_jpeg_offset
	mov	x0, x19
	bl	_exynos3250_jpeg_set_img_addr
	mov	x0, x19
	bl	_exynos3250_jpeg_set_jpeg_addr
	ldr	w0, [x21]
	ldr	w1, [x19, #60]
	bl	_exynos3250_jpeg_subsampling_mode
	ldr	w0, [x21]
	ldr	w1, [x19, #28]
	bl	_exynos3250_jpeg_enc_stream_bound
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
Lloh6:
	adrp	x9, _V4L2_PIX_FMT_RGB565X@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565X@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x9, _V4L2_PIX_FMT_RGB32@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB32@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_6:
	ldr	w0, [x21]
	mov	w1, #1
	bl	_exynos3250_jpeg_set_y16
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_exynos3250_jpeg_set_img_addr
	mov	x0, x19
	bl	_exynos3250_jpeg_set_jpeg_addr
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	ldr	w2, [x19, #24]
	bl	_exynos3250_jpeg_stride
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_exynos3250_jpeg_offset
	ldr	w0, [x21]
	ldr	w1, [x19, #56]
	bl	_exynos3250_jpeg_dec_scaling_ratio
	ldr	w0, [x21]
	ldr	w1, [x19, #32]
	bl	_exynos3250_jpeg_dec_stream_size
	ldr	w0, [x21]
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	bl	_exynos3250_jpeg_output_raw_fmt
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_exynos3250_jpeg_interrupts_enable
	ldr	w0, [x20, #4]
	ldr	x1, [x19]
	bl	_exynos3250_jpeg_coef
	ldr	w0, [x20, #4]
Lloh12:
	adrp	x8, _EXYNOS3250_IRQ_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXYNOS3250_IRQ_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_exynos3250_jpeg_set_timer
	str	xzr, [x20, #8]
	ldr	w0, [x20, #4]
	bl	_exynos3250_jpeg_start
	ldr	x0, [x19, #8]
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_RGB565,8,3        ; @V4L2_PIX_FMT_RGB565
	.comm	_V4L2_PIX_FMT_RGB565X,8,3       ; @V4L2_PIX_FMT_RGB565X
	.comm	_V4L2_PIX_FMT_RGB32,8,3         ; @V4L2_PIX_FMT_RGB32
	.comm	_EXYNOS3250_IRQ_TIMEOUT,4,2     ; @EXYNOS3250_IRQ_TIMEOUT
	.no_dead_strip	_exynos3250_jpeg_device_run
.subsections_via_symbols
