	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_video_capture_buffer_queue
_isp_video_capture_buffer_queue:        ## @isp_video_capture_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
	subq	$72, %rsp
	.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
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_vb2_get_drv_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_fimc_isp_to_is
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_to_isp_video_buf
	movq	%rax, %r12
	movq	_ST_ISP_VID_CAP_BUF_PREP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rdi
	callq	_BIT
	orq	%rax, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_9
LBB0_2:
	movq	16(%rbx), %rcx
	movq	48(%rbx), %rax
	movl	(%rax), %edx
	movq	%rcx, (%r12)
	movq	40(%rbx), %rax
	movq	%r12, (%rax,%rcx,8)
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:
	movq	%r12, %r13
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	$32, %rbx
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	leaq	-4(,%rdx,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	imull	%edx, %ecx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	leal	(%r15,%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movq	8(%r13), %rbx
	movl	%eax, (%rbx,%r12)
	addq	%r12, %rbx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	leal	32(%r15,%rdx), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	(%r13), %r8d
	movl	4(%r14), %eax
	movl	$2, %edi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_isp_dbg
	addq	$16, %rsp
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	addq	$4, %r12
	incl	%r15d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_4
LBB0_6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	movq	_ST_ISP_VID_CAP_BUF_PREP@GOTPCREL(%rip), %r14
LBB0_7:
	incq	%rcx
	movq	%rcx, 16(%rbx)
	cmpq	24(%rbx), %rcx
	jl	LBB0_10
## %bb.8:
	movq	$-1, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	notq	%rax
	movq	%rax, 8(%rbx)
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_9:
	movq	_ST_ISP_VID_CAP_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isp_video_capture_start_streaming ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_ISP_VID_CAP_BUF_PREP,4,2    ## @ST_ISP_VID_CAP_BUF_PREP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma_buf %d (%d/%d/%d) addr: %pad\n"

	.comm	_ST_ISP_VID_CAP_STREAMING,4,2   ## @ST_ISP_VID_CAP_STREAMING
	.no_dead_strip	_isp_video_capture_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_capture_buffer_queue
_isp_video_capture_buffer_queue:        ; @isp_video_capture_buffer_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_to_vb2_v4l2_buffer
	mov	x21, x0
	ldr	w0, [x19]
	bl	_vb2_get_drv_priv
	mov	x20, x0
	bl	_fimc_isp_to_is
	mov	x22, x0
	mov	x0, x21
	bl	_to_isp_video_buf
	mov	x21, x0
Lloh0:
	adrp	x23, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	add	x22, x22, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x0, [x21]
	bl	_BIT
	ldr	x8, [x20, #8]
	orr	x8, x8, x0
	str	x8, [x20, #8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_2:
	ldp	x9, x8, [x20, #40]
	ldr	w28, [x8]
	ldr	x8, [x20, #16]
	str	x8, [x21]
	str	x21, [x9, x8, lsl #3]
	cbz	w28, LBB0_7
; %bb.3:
	mov	w23, #0
	mov	x27, #0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	add	x24, x20, #32
	lsl	x9, x28, #2
	sub	x20, x9, #4
Lloh2:
	adrp	x25, l_.str@PAGE
Lloh3:
	add	x25, x25, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	madd	w26, w28, w8, w23
	mov	x0, x19
	mov	x1, x23
	bl	_vb2_dma_contig_plane_dma_addr
	ldr	x8, [x21, #8]
	add	x7, x8, x27
	str	w0, [x7]
	ldr	x8, [x22]
	ldr	x8, [x8]
	add	w9, w26, #32
	str	w0, [x8, w9, sxtw #2]
	ldr	w4, [x21]
	ldr	w6, [x19, #4]
	mov	w0, #2
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	mov	x5, x23
	bl	_isp_dbg
	cmp	x20, x27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	add	x27, x27, #4
	add	w23, w23, #1
	b	LBB0_4
LBB0_6:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x20, #16]
Lloh4:
	adrp	x23, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ST_ISP_VID_CAP_BUF_PREP@GOTPAGEOFF]
LBB0_7:
	add	x8, x8, #1
	str	x8, [x20, #16]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.8:
	mov	x9, #-1
	lsl	x8, x9, x8
	mvn	x8, x8
	str	x8, [x20, #8]
	ldr	w0, [x23]
	mov	x1, x20
	bl	_set_bit
LBB0_9:
Lloh6:
	adrp	x8, _ST_ISP_VID_CAP_STREAMING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_ISP_VID_CAP_STREAMING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	ldr	w0, [x19]
	mov	w1, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_isp_video_capture_start_streaming
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_ISP_VID_CAP_BUF_PREP,4,2    ; @ST_ISP_VID_CAP_BUF_PREP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma_buf %d (%d/%d/%d) addr: %pad\n"

	.comm	_ST_ISP_VID_CAP_STREAMING,4,2   ; @ST_ISP_VID_CAP_STREAMING
	.no_dead_strip	_isp_video_capture_buffer_queue
.subsections_via_symbols
