	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_buffer_queue
_isp_video_buffer_queue:                ## @isp_video_buffer_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_vb2_v4l2_buffer
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_isp_buffer
	movq	%rax, %r15
	movq	(%rbx), %rbx
	leaq	36(%rbx), %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r14
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	32(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$4, %r15
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vb2_buffer_done
	movq	%r12, %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	28(%rbx), %r13
	movq	%r13, %rdi
	callq	_list_empty
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.3:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r12
	movq	(%rbx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_ISP_PIPELINE_QUEUE_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ISP_PIPELINE_QUEUE_INPUT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r14d
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	orl	%r14d, (%r12)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	_ISP_VIDEO_DMAQUEUE_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%r12, %rdi
	callq	_isp_pipeline_ready
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	_ISP_PIPELINE_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ISP_PIPELINE_STREAM_SINGLESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap3isp_pipeline_set_stream   ## TAILCALL
LBB0_7:
	movq	%r13, %rdi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ISP_PIPELINE_QUEUE_OUTPUT,4,2  ## @ISP_PIPELINE_QUEUE_OUTPUT
	.comm	_ISP_PIPELINE_QUEUE_INPUT,4,2   ## @ISP_PIPELINE_QUEUE_INPUT
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ## @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_ISP_PIPELINE_STREAM,4,2        ## @ISP_PIPELINE_STREAM
	.comm	_ISP_PIPELINE_STREAM_SINGLESHOT,4,2 ## @ISP_PIPELINE_STREAM_SINGLESHOT
	.no_dead_strip	_isp_video_buffer_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_video_buffer_queue
_isp_video_buffer_queue:                ; @isp_video_buffer_queue
	.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
	bl	_to_vb2_v4l2_buffer
	mov	x20, x0
	ldr	w0, [x19]
	bl	_vb2_get_drv_priv
	mov	x19, x0
	mov	x0, x20
	bl	_to_isp_buffer
	mov	x21, x0
	ldr	x20, [x19]
	add	x0, x20, #36
	bl	_to_isp_pipeline
	mov	x19, x0
	add	x22, x20, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #32]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x21, #4
Lloh0:
	adrp	x8, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_vb2_buffer_done
LBB0_2:
	mov	x0, x22
	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
LBB0_3:
	add	x23, x20, #28
	mov	x0, x23
	bl	_list_empty
	mov	x24, x0
	mov	x0, x21
	mov	x1, x23
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	cbz	w24, LBB0_6
; %bb.4:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _ISP_PIPELINE_QUEUE_OUTPUT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ISP_PIPELINE_QUEUE_OUTPUT@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ISP_PIPELINE_QUEUE_INPUT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ISP_PIPELINE_QUEUE_INPUT@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w23, [x8]
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	orr	w8, w8, w23
	str	w8, [x19]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
Lloh10:
	adrp	x8, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISP_VIDEO_DMAQUEUE_QUEUED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_isp_pipeline_ready
	cbz	w0, LBB0_2
; %bb.5:
Lloh13:
	adrp	x8, _ISP_PIPELINE_STREAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh16:
	adrp	x8, _ISP_PIPELINE_STREAM_SINGLESHOT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ISP_PIPELINE_STREAM_SINGLESHOT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, 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	_omap3isp_pipeline_set_stream
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ISP_PIPELINE_QUEUE_OUTPUT,4,2  ; @ISP_PIPELINE_QUEUE_OUTPUT
	.comm	_ISP_PIPELINE_QUEUE_INPUT,4,2   ; @ISP_PIPELINE_QUEUE_INPUT
	.comm	_ISP_VIDEO_DMAQUEUE_QUEUED,4,2  ; @ISP_VIDEO_DMAQUEUE_QUEUED
	.comm	_ISP_PIPELINE_STREAM,4,2        ; @ISP_PIPELINE_STREAM
	.comm	_ISP_PIPELINE_STREAM_SINGLESHOT,4,2 ; @ISP_PIPELINE_STREAM_SINGLESHOT
	.no_dead_strip	_isp_video_buffer_queue
.subsections_via_symbols
