	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	callq	_vpif_intr_status
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rcx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpl	$0, (%rcx)
	jle	LBB0_27
## %bb.3:
	movslq	%ebx, %rcx
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rax,%rbx,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_schedule_next_buffer
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
	movq	$0, (%rax,%rbx,8)
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	_VPIF_NUMBER_OF_OBJECTS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$8, %r14
	addq	$32, %r13
	cmpq	%rax, %r15
	jge	LBB0_26
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	leaq	(%r12,%r13), %rdi
	cmpl	$1, 8(%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12,%r14,4), %rax
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	(%r12,%r13), %rdi
	addq	$20, %rdi
	callq	_list_empty
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_spin_unlock
	testq	%r12, %r12
	jne	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_process_buffer_complete
	movq	(%r12), %rax
	movq	(%rax,%r14), %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_25
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	xorb	$1, (%rbx)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_vpif_channel_getfid
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpl	(%rbx), %eax
	jne	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %eax
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12,%r14,4), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpq	8(%r12,%r14,4), %rax
	je	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_vpif_process_buffer_complete
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r13), %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	(%r12,%r13), %rdi
	addq	$20, %rdi
	callq	_list_empty
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12,%r14,4), %rax
	cmpq	8(%r12,%r14,4), %rax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_vpif_schedule_next_buffer
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_25
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_14:
	testl	%eax, %eax
	jne	LBB0_26
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_26:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	addq	$40, %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	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_VPIF_NUMBER_OF_OBJECTS,4,2     ## @VPIF_NUMBER_OF_OBJECTS
	.comm	_V4L2_FIELD_NONE,8,3            ## @V4L2_FIELD_NONE
	.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
	ldr	w19, [x1]
	mov	x0, x19
	bl	_vpif_intr_status
	cbz	w0, LBB0_24
; %bb.1:
Lloh0:
	adrp	x24, _VPIF_NUMBER_OF_OBJECTS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VPIF_NUMBER_OF_OBJECTS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.2:
	mov	x25, #0
	mov	x26, #0
Lloh2:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
	sxtw	x28, w19
Lloh4:
	ldr	x8, [x8]
	ldr	x27, [x8, x28, lsl #3]
	mov	w19, #-1
	lsl	x23, x28, #3
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, x23]
	mov	x0, x20
	bl	_vpif_schedule_next_buffer
	ldr	x8, [x21]
	ldr	x8, [x8, x26, lsl #3]
	str	xzr, [x8, x23]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #32
	cmp	x26, x8
	b.ge	LBB0_27
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x27, #16]
	add	x20, x21, x25
	ldr	w8, [x27, #8]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #24]
Lloh5:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock
	add	x0, x20, #20
	bl	_list_empty
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbnz	x22, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh8:
	adrp	x21, _channel_first_int@GOTPAGE
Lloh9:
	ldr	x21, [x21, _channel_first_int@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x9, [x8, x28, lsl #3]
	cbnz	x9, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vpif_process_buffer_complete
	ldr	x8, [x21]
	ldr	x8, [x8, x26, lsl #3]
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x8, _channel_first_int@GOTPAGE
Lloh11:
	ldr	x8, [x8, _channel_first_int@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x9, [x8, x28, lsl #3]
	cbz	x9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [x8, x28, lsl #3]
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x25, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w0, [x27]
	eor	w8, w8, #0x1
	str	w8, [x27]
	bl	_vpif_channel_getfid
	mov	x19, x0
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_25
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w19, #1
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w19, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x21, x25
	ldp	x9, x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #0
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, x25
	add	x19, x21, #16
	mov	x0, x19
	bl	_spin_lock
	add	x0, x21, #20
	bl	_list_empty
	cbnz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	bl	_vpif_schedule_next_buffer
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_spin_unlock
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #1
	b	LBB0_4
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_vpif_process_buffer_complete
	mov	w19, #0
	b	LBB0_4
LBB0_24:
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
	cbnz	w19, LBB0_27
; %bb.26:
	str	wzr, [x27]
LBB0_27:
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_28:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_VPIF_NUMBER_OF_OBJECTS,4,2     ; @VPIF_NUMBER_OF_OBJECTS
	.comm	_V4L2_FIELD_NONE,8,3            ; @V4L2_FIELD_NONE
	.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
