	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_open
_s5p_jpeg_open:                         ## @s5p_jpeg_open
	.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, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_v4l2_fh_init
	movq	%r12, %rax
	addq	$48, %rax
	movq	%rax, 8(%r12)
	movq	%r12, (%rbx)
	movq	%r12, %rdi
	callq	_v4l2_fh_add
	movq	%r14, 40(%r12)
	cmpq	8(%r14), %r15
	je	LBB0_5
## %bb.6:
	movq	_S5P_JPEG_DECODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_s5p_jpeg_find_format
	movq	%rax, %r15
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_s5p_jpeg_find_format
	movq	%rax, %rbx
	movq	_EXYNOS3250_DEC_SCALE_FACTOR_8_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	jmp	LBB0_7
LBB0_5:
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_TYPE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_s5p_jpeg_find_format
	movq	%rax, %r15
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FMT_TYPE_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_s5p_jpeg_find_format
	movq	%rax, %rbx
LBB0_7:
	movl	4(%r14), %edi
	movq	_queue_init@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_v4l2_m2m_ctx_init
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	callq	_PTR_ERR
LBB0_10:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_v4l2_fh_del
	movq	%r12, %rdi
	callq	_v4l2_fh_exit
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, 24(%r12)
	movq	%rbx, 16(%r12)
	movq	%r12, %rdi
	callq	_s5p_jpeg_controls_create
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_S5P_JPEG_ENCODE,4,2            ## @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ## @V4L2_PIX_FMT_RGB565
	.comm	_FMT_TYPE_OUTPUT,4,2            ## @FMT_TYPE_OUTPUT
	.comm	_V4L2_PIX_FMT_JPEG,4,2          ## @V4L2_PIX_FMT_JPEG
	.comm	_FMT_TYPE_CAPTURE,4,2           ## @FMT_TYPE_CAPTURE
	.comm	_S5P_JPEG_DECODE,4,2            ## @S5P_JPEG_DECODE
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_EXYNOS3250_DEC_SCALE_FACTOR_8_8,4,2 ## @EXYNOS3250_DEC_SCALE_FACTOR_8_8
	.comm	_queue_init,4,2                 ## @queue_init
	.no_dead_strip	_s5p_jpeg_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_open
_s5p_jpeg_open:                         ; @s5p_jpeg_open
	.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	x21, x0
	bl	_video_drvdata
	mov	x19, x0
	mov	x0, x21
	bl	_video_devdata
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_v4l2_fh_init
	add	x8, x20, #48
	str	x8, [x20, #8]
	str	x20, [x21]
	mov	x0, x20
	bl	_v4l2_fh_add
	str	x19, [x20, #40]
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _S5P_JPEG_DECODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _S5P_JPEG_DECODE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #36]
Lloh12:
	adrp	x8, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _FMT_TYPE_OUTPUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FMT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_s5p_jpeg_find_format
	mov	x21, x0
Lloh18:
	adrp	x8, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUYV@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _FMT_TYPE_CAPTURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FMT_TYPE_CAPTURE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_s5p_jpeg_find_format
	mov	x22, x0
Lloh24:
	adrp	x8, _EXYNOS3250_DEC_SCALE_FACTOR_8_8@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EXYNOS3250_DEC_SCALE_FACTOR_8_8@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	b	LBB0_7
LBB0_6:
Lloh27:
	adrp	x8, _S5P_JPEG_ENCODE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x20, #36]
Lloh30:
	adrp	x8, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _FMT_TYPE_OUTPUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FMT_TYPE_OUTPUT@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_s5p_jpeg_find_format
	mov	x21, x0
Lloh36:
	adrp	x8, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _FMT_TYPE_CAPTURE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FMT_TYPE_CAPTURE@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_s5p_jpeg_find_format
	mov	x22, x0
LBB0_7:
	ldr	w0, [x19, #4]
Lloh42:
	adrp	x8, _queue_init@GOTPAGE
Lloh43:
	ldr	x8, [x8, _queue_init@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_v4l2_m2m_ctx_init
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w0, [x20]
	bl	_PTR_ERR
LBB0_9:
	mov	x21, x0
	mov	x0, x20
	bl	_v4l2_fh_del
	mov	x0, x20
	bl	_v4l2_fh_exit
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x20
	bl	_kfree
LBB0_11:
	mov	x0, x21
	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
	ret
LBB0_12:
	stp	x22, x21, [x20, #16]
	mov	x0, x20
	bl	_s5p_jpeg_controls_create
	tbnz	w0, #31, LBB0_9
; %bb.13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_S5P_JPEG_ENCODE,4,2            ; @S5P_JPEG_ENCODE
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ; @V4L2_PIX_FMT_RGB565
	.comm	_FMT_TYPE_OUTPUT,4,2            ; @FMT_TYPE_OUTPUT
	.comm	_V4L2_PIX_FMT_JPEG,4,2          ; @V4L2_PIX_FMT_JPEG
	.comm	_FMT_TYPE_CAPTURE,4,2           ; @FMT_TYPE_CAPTURE
	.comm	_S5P_JPEG_DECODE,4,2            ; @S5P_JPEG_DECODE
	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_EXYNOS3250_DEC_SCALE_FACTOR_8_8,4,2 ; @EXYNOS3250_DEC_SCALE_FACTOR_8_8
	.comm	_queue_init,4,2                 ; @queue_init
	.no_dead_strip	_s5p_jpeg_open
.subsections_via_symbols
