	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_isr
_venc_isr:                              ## @venc_isr
	.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
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.2:
	movq	%r14, %rdi
	callq	_venc_is_second_field
	movq	_VENC_SECOND_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_VENC_FIRST_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	movq	_VENC_END_OF_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	notl	%esi
	andl	_venc_isr.last_event(%rip), %esi
	xorl	%r13d, %r13d
	cmpl	%edx, %ecx
	cmovel	%eax, %r13d
	cmpl	%esi, %ecx
	cmovel	%eax, %r13d
	orl	%ecx, %r13d
	movl	%r13d, _venc_isr.last_event(%rip)
	movq	_VPBE_DISPLAY_MAX_DEVICES@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_18
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	$0, 16(%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	leaq	24(%rbx), %rdi
	callq	_vb2_start_streaming_called
	testl	%eax, %eax
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	_VENC_END_OF_FRAME@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vpbe_isr_even_field
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %edx
	xorl	$1, %edx
	movl	%edx, (%rbx)
	movq	_VENC_FIRST_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%r13d, %eax
	sete	%cl
	cmpl	%ecx, %edx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %eax
	je	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vpbe_isr_even_field
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vpbe_isr_odd_field
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%rbx)
	jmp	LBB0_17
LBB0_18:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_venc_isr.last_event,4,2 ## @venc_isr.last_event
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_VENC_SECOND_FIELD,4,2          ## @VENC_SECOND_FIELD
	.comm	_VENC_FIRST_FIELD,4,2           ## @VENC_FIRST_FIELD
	.comm	_VENC_END_OF_FRAME,4,2          ## @VENC_END_OF_FRAME
	.comm	_VPBE_DISPLAY_MAX_DEVICES,4,2   ## @VPBE_DISPLAY_MAX_DEVICES
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.no_dead_strip	_venc_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_isr
_venc_isr:                              ; @venc_isr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x1, LBB0_16
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x0, x19
	bl	_venc_is_second_field
Lloh0:
	adrp	x21, _VENC_FIRST_FIELD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VENC_FIRST_FIELD@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _VENC_SECOND_FIELD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VENC_SECOND_FIELD@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	x0, #0
	csel	w8, w8, w9, eq
Lloh5:
	adrp	x22, _VENC_END_OF_FRAME@GOTPAGE
Lloh6:
	ldr	x22, [x22, _VENC_END_OF_FRAME@GOTPAGEOFF]
	adrp	x10, _venc_isr.last_event@PAGE
	ldr	w11, [x10, _venc_isr.last_event@PAGEOFF]
	ldr	w12, [x22]
	bic	w11, w11, w12
	cmp	w8, w9
	ccmp	w8, w11, #4, ne
	csel	w9, w12, wzr, eq
	orr	w23, w9, w8
	str	w23, [x10, _venc_isr.last_event@PAGEOFF]
Lloh7:
	adrp	x24, _VPBE_DISPLAY_MAX_DEVICES@GOTPAGE
Lloh8:
	ldr	x24, [x24, _VPBE_DISPLAY_MAX_DEVICES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.3:
	mov	x25, #0
Lloh9:
	adrp	x26, _V4L2_FIELD_NONE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _V4L2_FIELD_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x20, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x20, [x8, x25, lsl #3]
	add	x0, x20, #24
	bl	_vb2_start_streaming_called
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	tst	w8, w23
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vpbe_isr_even_field
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	eor	w10, w8, #0x1
	str	w10, [x20]
	ldr	w8, [x21]
	ands	w9, w8, w23
	cset	w8, eq
	cmp	w10, w8
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w9, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vpbe_isr_even_field
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_vpbe_isr_odd_field
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w8, [x20]
	b	LBB0_5
LBB0_16:
Lloh11:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_venc_isr.last_event,4,2 ; @venc_isr.last_event
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_VENC_SECOND_FIELD,4,2          ; @VENC_SECOND_FIELD
	.comm	_VENC_FIRST_FIELD,4,2           ; @VENC_FIRST_FIELD
	.comm	_VENC_END_OF_FRAME,4,2          ; @VENC_END_OF_FRAME
	.comm	_VPBE_DISPLAY_MAX_DEVICES,4,2   ; @VPBE_DISPLAY_MAX_DEVICES
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.no_dead_strip	_venc_isr
.subsections_via_symbols
