	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_channel_isr
_vpif_channel_isr:                      ## @vpif_channel_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_24
## %bb.1:
	movslq	(%rsi), %rdx
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rdx,8), %rbx
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r15), %rdi
	addq	$24, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%rcx), %rax
	addq	$8, %r14
	addq	$32, %r15
	cmpq	%rax, %r13
	jge	LBB0_24
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %r12
	cmpq	$0, (%r12,%r14,4)
	je	LBB0_23
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r12,%r15), %rdi
	cmpl	$1, 8(%rbx)
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax,%rdx,8)
	jmp	LBB0_23
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_process_buffer_complete
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rax,%rcx,8)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_schedule_next_buffer
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
	movq	$0, (%rax,%rdx,8)
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	xorb	$1, (%rbx)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_vpif_channel_getfid
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%rbx), %eax
	jne	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$1, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12,%r14,4), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	16(%r12,%r14,4), %rax
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_vpif_process_buffer_complete
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r15), %rdi
	addq	$24, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	8(%r12,%r14,4), %rax
	cmpq	16(%r12,%r14,4), %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_schedule_next_buffer
	jmp	LBB0_22
LBB0_12:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_24
## %bb.13:
	movl	$0, (%rbx)
LBB0_24:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_VPIF_NUMBER_OF_OBJECTS,4,2     ## @VPIF_NUMBER_OF_OBJECTS
	.comm	_channel_first_int,8,3          ## @channel_first_int
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_vpif_channel_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_channel_isr
_vpif_channel_isr:                      ; @vpif_channel_isr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x21, _VPIF_NUMBER_OF_OBJECTS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VPIF_NUMBER_OF_OBJECTS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.1:
	mov	x23, #0
	mov	x24, #0
	ldrsw	x25, [x1]
Lloh2:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x22, [x8, x25, lsl #3]
	mov	w19, #-1
Lloh5:
	adrp	x26, _channel_first_int@GOTPAGE
Lloh6:
	ldr	x26, [x26, _channel_first_int@GOTPAGEOFF]
	lsl	x27, x25, #3
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x8, x25, lsl #3]
	cbz	x9, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, x25, lsl #3]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x23, x23, #32
	cmp	x24, x8
	b.ge	LBB0_24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22, #16]
	add	x20, x28, x23
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x28, x23
	add	x0, x8, #24
	bl	_list_empty
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x8, x25, lsl #3]
	cbnz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vpif_process_buffer_complete
	ldr	x8, [x26]
	ldr	x8, [x8, x24, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, x27]
	mov	x0, x20
	bl	_vpif_schedule_next_buffer
	ldr	x8, [x26]
	ldr	x8, [x8, x24, lsl #3]
	str	xzr, [x8, x27]
	b	LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x24, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w0, [x22]
	eor	w8, w8, #0x1
	str	w8, [x22]
	bl	_vpif_channel_getfid
	mov	x19, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #1
	b.eq	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x28, x23
	ldp	x9, x8, [x8, #8]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x28, x23
	add	x0, x19, #24
	bl	_list_empty
	cbnz	x0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vpif_schedule_next_buffer
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #1
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vpif_process_buffer_complete
	mov	w19, #0
	b	LBB0_4
LBB0_22:
	cbnz	w19, LBB0_24
; %bb.23:
	str	wzr, [x22]
LBB0_24:
Lloh7:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_VPIF_NUMBER_OF_OBJECTS,4,2     ; @VPIF_NUMBER_OF_OBJECTS
	.comm	_channel_first_int,8,3          ; @channel_first_int
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_vpif_channel_isr
.subsections_via_symbols
