	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_device_run
_s5p_jpeg_device_run:                   ## @s5p_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	64(%r12), %edi
	callq	_v4l2_m2m_next_src_buf
	movq	%rax, %r14
	movl	64(%r12), %edi
	callq	_v4l2_m2m_next_dst_buf
	movq	%rax, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rax, %r15
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	%rax, %r14
	leaq	4(%rbx), %r13
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_reset
	movl	4(%rbx), %edi
	callq	_s5p_jpeg_poweron
	movl	4(%rbx), %edi
	movq	(%r12), %rsi
	callq	_s5p_jpeg_proc_mode
	movq	(%r12), %rax
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	48(%r12), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rcx
	movl	(%r13), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_S5P_JPEG_RAW_IN_565@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_s5p_jpeg_rst_int_enable
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_s5p_jpeg_data_num_int_enable
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_s5p_jpeg_final_mcu_num_int_enable
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rcx
	movl	(%r13), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_S5P_JPEG_RAW_OUT_422@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_S5P_JPEG_RAW_IN_422@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_s5p_jpeg_input_raw_mode
	movl	(%r13), %edi
	movl	60(%r12), %esi
	callq	_s5p_jpeg_subsampling_mode
	movl	(%r13), %edi
	movl	56(%r12), %esi
	callq	_s5p_jpeg_dri
	movl	(%r13), %edi
	movl	44(%r12), %esi
	callq	_s5p_jpeg_x
	movl	(%r13), %edi
	movl	40(%r12), %esi
	callq	_s5p_jpeg_y
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_s5p_jpeg_imgadr
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_s5p_jpeg_jpgadr
	movl	(%r13), %edi
	movl	24(%r12), %esi
	callq	_s5p_jpeg_enc_stream_int
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF11@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	movl	$1, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF12@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	movl	$2, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF13@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	movl	$3, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF21@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %esi
	movl	$1, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF22@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %esi
	movl	$2, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF23@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %esi
	movl	$3, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF31@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, %esi
	movl	$1, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF32@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, %esi
	movl	$2, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movq	_S5P_JPEG_COEF33@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$3, %esi
	movl	$3, %edx
	callq	_s5p_jpeg_coef
	movl	(%r13), %edi
	movl	32(%r12), %esi
	callq	_s5p_jpeg_set_qtbl_lum
	movl	(%r13), %edi
	movl	32(%r12), %esi
	callq	_s5p_jpeg_set_qtbl_chr
	movl	(%r13), %edi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_s5p_jpeg_qtbl
	movl	(%r13), %edi
	movl	$2, %esi
	movl	$1, %edx
	callq	_s5p_jpeg_qtbl
	movl	(%r13), %edi
	movl	$3, %esi
	movl	$1, %edx
	callq	_s5p_jpeg_qtbl
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_s5p_jpeg_htbl_ac
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_s5p_jpeg_htbl_dc
	movl	(%r13), %edi
	movl	$2, %esi
	callq	_s5p_jpeg_htbl_ac
	movl	(%r13), %edi
	movl	$2, %esi
	callq	_s5p_jpeg_htbl_dc
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_s5p_jpeg_htbl_ac
	movl	(%r13), %edi
	movl	$3, %esi
	callq	_s5p_jpeg_htbl_dc
	jmp	LBB0_9
LBB0_6:
	movq	_S5P_JPEG_RAW_OUT_420@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_s5p_jpeg_outform_raw
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_s5p_jpeg_jpgadr
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_s5p_jpeg_imgadr
LBB0_9:
	movl	(%r13), %edi
	callq	_s5p_jpeg_start
	movq	8(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_S5P_JPEG_RAW_IN_565,4,2        ## @S5P_JPEG_RAW_IN_565
	.comm	_S5P_JPEG_RAW_IN_422,4,2        ## @S5P_JPEG_RAW_IN_422
	.comm	_S5P_JPEG_COEF11,4,2            ## @S5P_JPEG_COEF11
	.comm	_S5P_JPEG_COEF12,4,2            ## @S5P_JPEG_COEF12
	.comm	_S5P_JPEG_COEF13,4,2            ## @S5P_JPEG_COEF13
	.comm	_S5P_JPEG_COEF21,4,2            ## @S5P_JPEG_COEF21
	.comm	_S5P_JPEG_COEF22,4,2            ## @S5P_JPEG_COEF22
	.comm	_S5P_JPEG_COEF23,4,2            ## @S5P_JPEG_COEF23
	.comm	_S5P_JPEG_COEF31,4,2            ## @S5P_JPEG_COEF31
	.comm	_S5P_JPEG_COEF32,4,2            ## @S5P_JPEG_COEF32
	.comm	_S5P_JPEG_COEF33,4,2            ## @S5P_JPEG_COEF33
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ## @V4L2_PIX_FMT_YUYV
	.comm	_S5P_JPEG_RAW_OUT_422,4,2       ## @S5P_JPEG_RAW_OUT_422
	.comm	_S5P_JPEG_RAW_OUT_420,4,2       ## @S5P_JPEG_RAW_OUT_420
	.no_dead_strip	_s5p_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 s5p_jpeg_device_run
_s5p_jpeg_device_run:                   ; @s5p_jpeg_device_run
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, #8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #64]
	bl	_v4l2_m2m_next_src_buf
	mov	x21, x0
	ldr	w0, [x19, #64]
	bl	_v4l2_m2m_next_dst_buf
	mov	x23, x0
	mov	x0, x21
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x22, x0
	mov	x0, x23
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x21, x0
	ldr	w0, [x20, #4]!
	bl	_s5p_jpeg_reset
	ldr	w0, [x20]
	bl	_s5p_jpeg_poweron
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_s5p_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_2
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _S5P_JPEG_RAW_IN_565@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S5P_JPEG_RAW_IN_565@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x11, _S5P_JPEG_RAW_IN_422@GOTPAGE
Lloh9:
	ldr	x11, [x11, _S5P_JPEG_RAW_IN_422@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_s5p_jpeg_input_raw_mode
	ldr	w0, [x20]
	ldr	w1, [x19, #60]
	bl	_s5p_jpeg_subsampling_mode
	ldr	w0, [x20]
	ldr	w1, [x19, #56]
	bl	_s5p_jpeg_dri
	ldr	w0, [x20]
	ldr	w1, [x19, #44]
	bl	_s5p_jpeg_x
	ldr	w0, [x20]
	ldr	w1, [x19, #40]
	bl	_s5p_jpeg_y
	ldr	w0, [x20]
	mov	x1, x22
	bl	_s5p_jpeg_imgadr
	ldr	w0, [x20]
	mov	x1, x21
	bl	_s5p_jpeg_jpgadr
	ldr	w0, [x20]
	ldr	w1, [x19, #24]
	bl	_s5p_jpeg_enc_stream_int
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _S5P_JPEG_COEF11@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S5P_JPEG_COEF11@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	w1, #1
	mov	w2, #1
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _S5P_JPEG_COEF12@GOTPAGE
Lloh14:
	ldr	x8, [x8, _S5P_JPEG_COEF12@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	w1, #1
	mov	w2, #2
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _S5P_JPEG_COEF13@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S5P_JPEG_COEF13@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	w1, #1
	mov	w2, #3
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh19:
	adrp	x8, _S5P_JPEG_COEF21@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S5P_JPEG_COEF21@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	w1, #2
	mov	w2, #1
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh22:
	adrp	x8, _S5P_JPEG_COEF22@GOTPAGE
Lloh23:
	ldr	x8, [x8, _S5P_JPEG_COEF22@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	w1, #2
	mov	w2, #2
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh25:
	adrp	x8, _S5P_JPEG_COEF23@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S5P_JPEG_COEF23@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	w1, #2
	mov	w2, #3
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh28:
	adrp	x8, _S5P_JPEG_COEF31@GOTPAGE
Lloh29:
	ldr	x8, [x8, _S5P_JPEG_COEF31@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	w1, #3
	mov	w2, #1
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _S5P_JPEG_COEF32@GOTPAGE
Lloh32:
	ldr	x8, [x8, _S5P_JPEG_COEF32@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	w1, #3
	mov	w2, #2
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
Lloh34:
	adrp	x8, _S5P_JPEG_COEF33@GOTPAGE
Lloh35:
	ldr	x8, [x8, _S5P_JPEG_COEF33@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
	mov	w1, #3
	mov	w2, #3
	bl	_s5p_jpeg_coef
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	bl	_s5p_jpeg_set_qtbl_lum
	ldr	w0, [x20]
	ldr	w1, [x19, #32]
	bl	_s5p_jpeg_set_qtbl_chr
	ldr	w0, [x20]
	mov	w1, #1
	mov	w2, #0
	bl	_s5p_jpeg_qtbl
	ldr	w0, [x20]
	mov	w1, #2
	mov	w2, #1
	bl	_s5p_jpeg_qtbl
	ldr	w0, [x20]
	mov	w1, #3
	mov	w2, #1
	bl	_s5p_jpeg_qtbl
	ldr	w0, [x20]
	mov	w1, #1
	bl	_s5p_jpeg_htbl_ac
	ldr	w0, [x20]
	mov	w1, #1
	bl	_s5p_jpeg_htbl_dc
	ldr	w0, [x20]
	mov	w1, #2
	bl	_s5p_jpeg_htbl_ac
	ldr	w0, [x20]
	mov	w1, #2
	bl	_s5p_jpeg_htbl_dc
	ldr	w0, [x20]
	mov	w1, #3
	bl	_s5p_jpeg_htbl_ac
	ldr	w0, [x20]
	mov	w1, #3
	bl	_s5p_jpeg_htbl_dc
	b	LBB0_3
LBB0_2:
	ldr	w0, [x20]
	mov	w1, #1
	bl	_s5p_jpeg_rst_int_enable
	ldr	w0, [x20]
	mov	w1, #1
	bl	_s5p_jpeg_data_num_int_enable
	ldr	w0, [x20]
	mov	w1, #1
	bl	_s5p_jpeg_final_mcu_num_int_enable
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh38:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
Lloh40:
	adrp	x10, _S5P_JPEG_RAW_OUT_422@GOTPAGE
Lloh41:
	ldr	x10, [x10, _S5P_JPEG_RAW_OUT_422@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh42:
	adrp	x11, _S5P_JPEG_RAW_OUT_420@GOTPAGE
Lloh43:
	ldr	x11, [x11, _S5P_JPEG_RAW_OUT_420@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_s5p_jpeg_outform_raw
	ldr	w0, [x20]
	mov	x1, x22
	bl	_s5p_jpeg_jpgadr
	ldr	w0, [x20]
	mov	x1, x21
	bl	_s5p_jpeg_imgadr
LBB0_3:
	ldr	w0, [x20]
	bl	_s5p_jpeg_start
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.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	_S5P_JPEG_RAW_IN_565,4,2        ; @S5P_JPEG_RAW_IN_565
	.comm	_S5P_JPEG_RAW_IN_422,4,2        ; @S5P_JPEG_RAW_IN_422
	.comm	_S5P_JPEG_COEF11,4,2            ; @S5P_JPEG_COEF11
	.comm	_S5P_JPEG_COEF12,4,2            ; @S5P_JPEG_COEF12
	.comm	_S5P_JPEG_COEF13,4,2            ; @S5P_JPEG_COEF13
	.comm	_S5P_JPEG_COEF21,4,2            ; @S5P_JPEG_COEF21
	.comm	_S5P_JPEG_COEF22,4,2            ; @S5P_JPEG_COEF22
	.comm	_S5P_JPEG_COEF23,4,2            ; @S5P_JPEG_COEF23
	.comm	_S5P_JPEG_COEF31,4,2            ; @S5P_JPEG_COEF31
	.comm	_S5P_JPEG_COEF32,4,2            ; @S5P_JPEG_COEF32
	.comm	_S5P_JPEG_COEF33,4,2            ; @S5P_JPEG_COEF33
	.comm	_V4L2_PIX_FMT_YUYV,8,3          ; @V4L2_PIX_FMT_YUYV
	.comm	_S5P_JPEG_RAW_OUT_422,4,2       ; @S5P_JPEG_RAW_OUT_422
	.comm	_S5P_JPEG_RAW_OUT_420,4,2       ; @S5P_JPEG_RAW_OUT_420
	.no_dead_strip	_s5p_jpeg_device_run
.subsections_via_symbols
