	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpu_cleanup
_jpu_cleanup:                           ## @jpu_cleanup
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %edi
	callq	_v4l2_m2m_src_buf_remove
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_v4l2_m2m_dst_buf_remove
	movq	%rax, %r12
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_v4l2_m2m_buf_done
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_v4l2_m2m_buf_done
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	movq	_JCCMD_SRST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_JCCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_jpu_write
LBB0_2:
	movq	8(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_m2m_job_finish            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_JCCMD_SRST,4,2                 ## @JCCMD_SRST
	.comm	_JCCMD,4,2                      ## @JCCMD
	.no_dead_strip	_jpu_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpu_cleanup
_jpu_cleanup:                           ; @jpu_cleanup
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	ldr	w0, [x19]
	bl	_v4l2_m2m_src_buf_remove
	mov	x21, x0
	ldr	w0, [x19]
	bl	_v4l2_m2m_dst_buf_remove
	mov	x22, x0
Lloh0:
	adrp	x23, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_v4l2_m2m_buf_done
	ldr	w1, [x23]
	mov	x0, x22
	bl	_v4l2_m2m_buf_done
	cbz	w20, LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _JCCMD_SRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JCCMD_SRST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _JCCMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JCCMD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_jpu_write
LBB0_2:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x19]
	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	_v4l2_m2m_job_finish
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_JCCMD_SRST,4,2                 ; @JCCMD_SRST
	.comm	_JCCMD,4,2                      ; @JCCMD
	.no_dead_strip	_jpu_cleanup
.subsections_via_symbols
