	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpu_buf_queue
_jpu_buf_queue:                         ## @jpu_buf_queue
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r14
	movq	(%r15), %rdi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	cmpl	$0, 28(%rax)
	je	LBB0_1
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	movq	%r14, %rsi
	callq	_v4l2_m2m_buf_queue
	jmp	LBB0_10
LBB0_1:
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_V4L2_TYPE_IS_OUTPUT
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_vb2_to_jpu_buffer
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vb2_get_plane_payload
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_jpu_parse_hdr
	movq	%rax, %r13
	movq	_JPU_JPEG_422@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_4
## %bb.3:
	movq	_JPU_JPEG_420@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
LBB0_4:
	movq	16(%rbx), %rax
	movq	%rax, -56(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -52(%rbp)
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___jpu_try_fmt
	movl	-56(%rbp), %eax
	cmpl	16(%rbx), %eax
	jne	LBB0_9
## %bb.5:
	movl	-52(%rbp), %eax
	cmpl	20(%rbx), %eax
	jne	LBB0_9
## %bb.6:
	movq	%r13, (%r12)
	jmp	LBB0_7
LBB0_9:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vb2_buffer_done
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JPU_JPEG_422,8,3               ## @JPU_JPEG_422
	.comm	_JPU_JPEG_420,8,3               ## @JPU_JPEG_420
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incompatible or corrupted JPEG data\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.no_dead_strip	_jpu_buf_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpu_buf_queue
_jpu_buf_queue:                         ; @jpu_buf_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_to_vb2_v4l2_buffer
	mov	x20, x0
	ldr	x0, [x19]
	bl	_vb2_get_drv_priv
	mov	x21, x0
	ldr	w8, [x0, #28]
	cbz	w8, LBB0_3
LBB0_1:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.2:
	mov	x1, x20
	bl	_v4l2_m2m_buf_queue
	b	LBB0_9
LBB0_3:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_V4L2_TYPE_IS_OUTPUT
	cbz	x0, LBB0_1
; %bb.4:
	mov	x0, x20
	bl	_vb2_to_jpu_buffer
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	bl	_vb2_get_plane_payload
	mov	x1, x0
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x23
	bl	_jpu_parse_hdr
Lloh0:
	adrp	x8, _JPU_JPEG_422@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JPU_JPEG_422@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _JPU_JPEG_420@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JPU_JPEG_420@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_8
; %bb.5:
	mov	x23, x0
	ldr	x8, [x21, #16]
	str	x8, [sp, #16]
	ldr	w10, [x21, #24]
	add	x8, sp, #16
	add	x1, x8, #8
	ldp	w9, w8, [sp, #8]
	str	w8, [sp, #16]
	stp	w9, w10, [sp, #20]
Lloh6:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x2, sp, #16
	mov	x0, x21
	bl	___jpu_try_fmt
	ldr	w8, [sp, #16]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [sp, #20]
	ldr	w9, [x21, #20]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
	str	x23, [x22]
	b	LBB0_1
LBB0_8:
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vb2_buffer_done
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_JPU_JPEG_422,8,3               ; @JPU_JPEG_422
	.comm	_JPU_JPEG_420,8,3               ; @JPU_JPEG_420
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incompatible or corrupted JPEG data\n"

	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.no_dead_strip	_jpu_buf_queue
.subsections_via_symbols
