	.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
	movslq	(%rsi), %rbx
	leal	2(%rbx), %edi
	callq	_vpif_intr_status
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_VPIF_NUMOBJECTS@GOTPCREL(%rip), %r12
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	cmpl	$0, (%r12)
	jle	LBB0_19
## %bb.3:
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movl	$16, %r13d
	xorl	%r15d, %r15d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rax,%rbx,8)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %r14
	leaq	(%r14,%r13), %rsi
	addq	$-16, %rsi
	cmpl	$1, 16(%rax)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r13), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	(%r14,%r13), %rdi
	addq	$4, %rdi
	callq	_list_empty
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_spin_unlock
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	_VPIF_NUMOBJECTS@GOTPCREL(%rip), %r12
	jmp	LBB0_17
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	xorb	$1, (%r14)
	movq	8(%r14), %rdi
	addq	$2, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_vpif_channel_getfid
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%r14), %eax
	jne	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_process_interlaced_mode
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_channel_first_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rbx,8)
	movq	_VPIF_NUMOBJECTS@GOTPCREL(%rip), %r12
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_ktime_get_ns
	movq	-8(%r14,%r13), %rdi
	movl	%eax, (%rdi)
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vb2_buffer_done
	movq	-16(%r14,%r13), %rax
	movq	%rax, -8(%r14,%r13)
	movq	_channel_first_int@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%rax,%rbx,8)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_process_progressive_mode
	jmp	LBB0_17
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_14:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
LBB0_18:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_19:
	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_NUMOBJECTS,4,2            ## @VPIF_NUMOBJECTS
	.comm	_channel_first_int,8,3          ## @channel_first_int
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.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
	ldrsw	x23, [x1]
	add	w0, w23, #2
	bl	_vpif_intr_status
	cbz	w0, LBB0_14
; %bb.1:
Lloh0:
	adrp	x25, _VPIF_NUMOBJECTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VPIF_NUMOBJECTS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.2:
	mov	x27, #0
	mov	x28, #0
Lloh2:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x26, [x8, x23, lsl #3]
	mov	w19, #-1
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh5:
	adrp	x8, _channel_first_int@GOTPAGE
Lloh6:
	ldr	x8, [x8, _channel_first_int@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x8, x23, lsl #3]
	cbz	x9, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x8, x23, lsl #3]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x25]
	add	x27, x27, #24
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x26, #24]
	add	x20, x24, x27
	ldr	w8, [x26, #16]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 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_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _channel_first_int@GOTPAGE
Lloh9:
	ldr	x8, [x8, _channel_first_int@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x8, x23, lsl #3]
	cbnz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ktime_get_ns
	add	x21, x24, x27
	ldr	x8, [x21, #8]
	str	w0, [x8]
Lloh11:
	adrp	x9, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_vb2_buffer_done
	ldr	x8, [x21]
	str	x8, [x21, #8]
Lloh14:
	adrp	x8, _channel_first_int@GOTPAGE
Lloh15:
	ldr	x8, [x8, _channel_first_int@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8, x28, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x8, x23, lsl #3]
	mov	x0, x20
	bl	_process_progressive_mode
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x28, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	eor	w8, w8, #0x1
	str	w8, [x26]
	ldr	x8, [x26, #8]
	add	x0, x8, #2
	bl	_vpif_channel_getfid
	mov	x19, x0
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_process_interlaced_mode
	b	LBB0_5
LBB0_14:
Lloh17:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	cbnz	w19, LBB0_17
; %bb.16:
	str	wzr, [x26]
LBB0_17:
Lloh19:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_18:
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_VPIF_NUMOBJECTS,4,2            ; @VPIF_NUMOBJECTS
	.comm	_channel_first_int,8,3          ; @channel_first_int
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_vpif_channel_isr
.subsections_via_symbols
