	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_isr_buffer
_preview_isr_buffer:                    ## @preview_isr_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$28, %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r14
	movq	_PREVIEW_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	leaq	24(%rbx), %rdi
	callq	_omap3isp_video_buffer_next
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_preview_set_outaddr
	movl	$1, %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_ISP_PIPELINE_IDLE_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	8(%rbx), %rax
	movq	_PREVIEW_INPUT_MEMORY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	leaq	20(%rbx), %rdi
	callq	_omap3isp_video_buffer_next
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_preview_set_inaddr
LBB0_9:
	movq	_ISP_PIPELINE_IDLE_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_10:
	movl	16(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$129, %eax
	jne	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	callq	_isp_pipeline_ready
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	movl	$129, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_omap3isp_pipeline_set_stream   ## TAILCALL
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_preview_enable_oneshot         ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ## @PREVIEW_OUTPUT_MEMORY
	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ## @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_PREVIEW_INPUT_MEMORY,8,3       ## @PREVIEW_INPUT_MEMORY
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ## @ISP_PIPELINE_IDLE_INPUT
	.no_dead_strip	_preview_isr_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_isr_buffer
_preview_isr_buffer:                    ; @preview_isr_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	add	x0, x0, #28
	bl	_to_isp_pipeline
	mov	x19, x0
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _PREVIEW_OUTPUT_MEMORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PREVIEW_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	add	x0, x20, #24
	bl	_omap3isp_video_buffer_next
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w1, [x0]
	mov	x0, x20
	bl	_preview_set_outaddr
	mov	w21, #1
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_6
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh3:
	adrp	x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_6:
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _PREVIEW_INPUT_MEMORY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PREVIEW_INPUT_MEMORY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	add	x0, x20, #20
	bl	_omap3isp_video_buffer_next
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w1, [x0]
	mov	x0, x20
	bl	_preview_set_inaddr
LBB0_9:
Lloh9:
	adrp	x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISP_PIPELINE_IDLE_INPUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	ldr	w8, [x20, #16]
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_isp_pipeline_ready
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	w1, #129
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_omap3isp_pipeline_set_stream
LBB0_14:
	cbz	w21, LBB0_16
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_preview_enable_oneshot
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ; @PREVIEW_OUTPUT_MEMORY
	.comm	_ISP_PIPELINE_IDLE_OUTPUT,4,2   ; @ISP_PIPELINE_IDLE_OUTPUT
	.comm	_PREVIEW_INPUT_MEMORY,8,3       ; @PREVIEW_INPUT_MEMORY
	.comm	_ISP_PIPELINE_IDLE_INPUT,4,2    ; @ISP_PIPELINE_IDLE_INPUT
	.no_dead_strip	_preview_isr_buffer
.subsections_via_symbols
