	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_g_fmt
_s5p_jpeg_g_fmt:                        ## @s5p_jpeg_g_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	%rsi, %rdi
	callq	_fh_to_ctx
	movq	%rax, %r14
	movl	12(%rax), %edi
	movl	(%rbx), %esi
	callq	_v4l2_m2m_get_vq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rax
	movq	_S5P_JPEG_DECODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	cmpl	$0, 8(%r14)
	je	LBB0_1
LBB0_5:
	movq	%r14, %rdi
	callq	_get_q_data
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	16(%r14), %ecx
	movl	%ecx, 36(%rbx)
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rbx)
	movq	8(%r14), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, 16(%rbx)
	movl	$0, 24(%rbx)
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_9
## %bb.6:
	cmpl	$1, 8(%rcx)
	jne	LBB0_8
## %bb.7:
	imull	12(%rcx), %eax
	sarl	$3, %eax
LBB0_8:
	movl	%eax, 24(%rbx)
LBB0_9:
	movl	4(%r14), %eax
	movl	%eax, 28(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_S5P_JPEG_DECODE,8,3            ## @S5P_JPEG_DECODE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.no_dead_strip	_s5p_jpeg_g_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_g_fmt
_s5p_jpeg_g_fmt:                        ; @s5p_jpeg_g_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x0, x1
	bl	_fh_to_ctx
	mov	x20, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19]
	bl	_v4l2_m2m_get_vq
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _S5P_JPEG_DECODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S5P_JPEG_DECODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_9
LBB0_4:
	mov	x0, x20
	bl	_get_q_data
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x20]
	str	w8, [x19, #8]
Lloh6:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
	ldr	w10, [x20, #16]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w10, [x19, #32]
	ldr	x9, [x20, #8]
	ldr	x10, [x9]
	str	x10, [x19, #16]
	str	wzr, [x19, #24]
Lloh9:
	adrp	x11, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh10:
	ldr	x11, [x11, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_8
; %bb.5:
	ldr	w10, [x9, #8]
	cmp	w10, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x9, #12]
	mul	w8, w9, w8
	asr	w8, w8, #3
LBB0_7:
	str	w8, [x19, #24]
LBB0_8:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #28]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_S5P_JPEG_DECODE,8,3            ; @S5P_JPEG_DECODE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.no_dead_strip	_s5p_jpeg_g_fmt
.subsections_via_symbols
