	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos4_jpeg_device_run
_exynos4_jpeg_device_run:               ## @exynos4_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	48(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %r15
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	4(%rbx), %edi
	callq	_exynos4_jpeg_sw_reset
	movl	4(%rbx), %edi
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	callq	_exynos4_jpeg_set_interrupt
	cmpq	%r12, %r15
	jne	LBB0_5
## %bb.1:
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_exynos4_jpeg_set_huf_table_enable
	movl	4(%rbx), %edi
	callq	_exynos4_jpeg_set_huff_tbl
	movl	4(%rbx), %edi
	movl	56(%r14), %esi
	callq	_exynos4_jpeg_set_qtbl_lum
	movl	4(%rbx), %edi
	movl	56(%r14), %esi
	callq	_exynos4_jpeg_set_qtbl_chr
	movl	4(%rbx), %edi
	movl	56(%r14), %esi
	callq	_exynos4_jpeg_set_encode_tbl_select
	movl	4(%rbx), %edi
	movl	32(%r14), %edx
	movl	36(%r14), %esi
	callq	_exynos4_jpeg_set_stream_size
	movq	48(%r14), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_SJPEG_EXYNOS4@GOTPCREL(%rip), %rcx
	movl	4(%rbx), %edi
	movl	40(%r14), %esi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	callq	_exynos4_jpeg_set_enc_out_fmt
	movl	4(%rbx), %edi
	movq	16(%r14), %rax
	movl	(%rax), %esi
	callq	_exynos4_jpeg_set_img_fmt
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_exynos4_jpeg_set_img_addr
	movq	%r14, %rdi
	callq	_exynos4_jpeg_set_jpeg_addr
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_SJPEG_EXYNOS5433@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_exynos4_jpeg_parse_huff_tbl
	movq	%r14, %rdi
	callq	_exynos4_jpeg_parse_decode_h_tbl
	movq	%r14, %rdi
	callq	_exynos4_jpeg_parse_q_tbl
	movq	%r14, %rdi
	callq	_exynos4_jpeg_parse_decode_q_tbl
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_exynos4_jpeg_set_huf_table_enable
	movl	4(%rbx), %edi
	movl	32(%r14), %edx
	movl	36(%r14), %esi
	callq	_exynos4_jpeg_set_stream_size
	movl	4(%rbx), %edi
	movl	40(%r14), %esi
	callq	_exynos5433_jpeg_set_enc_out_fmt
	movl	4(%rbx), %edi
	movq	24(%r14), %rax
	movl	(%rax), %esi
	callq	_exynos5433_jpeg_set_img_fmt
	movl	$16, %esi
	jmp	LBB0_8
LBB0_3:
	callq	_exynos5433_jpeg_set_enc_out_fmt
	movl	4(%rbx), %edi
	movq	16(%r14), %rax
	movl	(%rax), %esi
	callq	_exynos5433_jpeg_set_img_fmt
LBB0_4:
	movq	%r14, %rdi
	callq	_exynos4_jpeg_set_img_addr
	movq	%r14, %rdi
	callq	_exynos4_jpeg_set_jpeg_addr
	movl	4(%rbx), %edi
	movq	16(%r14), %rax
	movl	(%rax), %esi
	callq	_exynos4_jpeg_set_encode_hoff_cnt
	jmp	LBB0_9
LBB0_7:
	movl	4(%rbx), %edi
	movq	24(%r14), %rax
	movl	(%rax), %esi
	callq	_exynos4_jpeg_set_img_fmt
	movl	$32, %esi
LBB0_8:
	movl	8(%r14), %edi
	callq	_DIV_ROUND_UP
	movl	4(%rbx), %edi
	movl	%eax, %esi
	callq	_exynos4_jpeg_set_dec_bitstream_size
LBB0_9:
	movl	4(%rbx), %edi
	movl	$1, %esi
	callq	_exynos4_jpeg_set_sys_int_enable
	movl	4(%rbx), %edi
	movq	(%r14), %rsi
	callq	_exynos4_jpeg_set_enc_dec_mode
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	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	_SJPEG_EXYNOS4,8,3              ## @SJPEG_EXYNOS4
	.comm	_SJPEG_EXYNOS5433,8,3           ## @SJPEG_EXYNOS5433
	.no_dead_strip	_exynos4_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 exynos4_jpeg_device_run
_exynos4_jpeg_device_run:               ; @exynos4_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	x20, x0
	ldr	x19, [x0, #48]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _S5P_JPEG_ENCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x19, #4]
	bl	_exynos4_jpeg_sw_reset
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #8]
	ldr	x1, [x8]
	bl	_exynos4_jpeg_set_interrupt
	cmp	x21, x22
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_exynos4_jpeg_set_huf_table_enable
	ldr	w0, [x19, #4]
	bl	_exynos4_jpeg_set_huff_tbl
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #56]
	bl	_exynos4_jpeg_set_qtbl_lum
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #56]
	bl	_exynos4_jpeg_set_qtbl_chr
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #56]
	bl	_exynos4_jpeg_set_encode_tbl_select
	ldr	w0, [x19, #4]
	ldp	w2, w1, [x20, #32]
	bl	_exynos4_jpeg_set_stream_size
	ldr	x8, [x20, #48]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SJPEG_EXYNOS4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SJPEG_EXYNOS4@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #40]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_exynos4_jpeg_set_enc_out_fmt
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	bl	_exynos4_jpeg_set_img_fmt
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_exynos4_jpeg_set_img_addr
	mov	x0, x20
	bl	_exynos4_jpeg_set_jpeg_addr
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SJPEG_EXYNOS5433@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SJPEG_EXYNOS5433@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_exynos4_jpeg_parse_huff_tbl
	mov	x0, x20
	bl	_exynos4_jpeg_parse_decode_h_tbl
	mov	x0, x20
	bl	_exynos4_jpeg_parse_q_tbl
	mov	x0, x20
	bl	_exynos4_jpeg_parse_decode_q_tbl
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_exynos4_jpeg_set_huf_table_enable
	ldr	w0, [x19, #4]
	ldp	w2, w1, [x20, #32]
	bl	_exynos4_jpeg_set_stream_size
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #40]
	bl	_exynos5433_jpeg_set_enc_out_fmt
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	bl	_exynos5433_jpeg_set_img_fmt
	mov	w1, #16
	b	LBB0_8
LBB0_5:
	bl	_exynos5433_jpeg_set_enc_out_fmt
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	bl	_exynos5433_jpeg_set_img_fmt
LBB0_6:
	mov	x0, x20
	bl	_exynos4_jpeg_set_img_addr
	mov	x0, x20
	bl	_exynos4_jpeg_set_jpeg_addr
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	bl	_exynos4_jpeg_set_encode_hoff_cnt
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #4]
	ldr	x8, [x20, #24]
	ldr	w1, [x8]
	bl	_exynos4_jpeg_set_img_fmt
	mov	w1, #32
LBB0_8:
	ldr	w0, [x20, #8]
	bl	_DIV_ROUND_UP
	mov	x1, x0
	ldr	w0, [x19, #4]
	bl	_exynos4_jpeg_set_dec_bitstream_size
LBB0_9:
	ldr	w0, [x19, #4]
	mov	w1, #1
	bl	_exynos4_jpeg_set_sys_int_enable
	ldr	w0, [x19, #4]
	ldr	x1, [x20]
	bl	_exynos4_jpeg_set_enc_dec_mode
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.comm	_SJPEG_EXYNOS4,8,3              ; @SJPEG_EXYNOS4
	.comm	_SJPEG_EXYNOS5433,8,3           ; @SJPEG_EXYNOS5433
	.no_dead_strip	_exynos4_jpeg_device_run
.subsections_via_symbols
