	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv680_video_irq
_stv680_video_irq:                      ## @stv680_video_irq
	.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, %r14
	movq	32(%rdi), %rbx
	movl	(%rdi), %r15d
	movl	(%rbx), %edx
	cmpl	%edx, %r15d
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_2:
	cmpl	$0, 52(%rbx)
	je	LBB0_18
## %bb.3:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.5:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.6:
	cmpq	$0, 16(%r14)
	je	LBB0_7
LBB0_12:
	movq	8(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	_STV680_MAX_NULLPACKETS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_15
## %bb.13:
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_15
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_7:
	movq	$0, 8(%rbx)
	movq	16(%rbx), %rcx
	movq	40(%rbx), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %edx
	leal	-129(%rdx), %esi
	cmpl	$2, %esi
	jae	LBB0_8
## %bb.19:
	incl	48(%rbx)
	jmp	LBB0_15
LBB0_8:
	cmpl	$128, %edx
	jne	LBB0_15
## %bb.9:
	movl	8(%rax,%rcx,4), %edi
	movq	24(%r14), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movq	40(%rbx), %rcx
	leaq	(%rax,%rax,2), %rax
	movl	$129, (%rcx,%rax,4)
	movl	%r15d, 4(%rcx,%rax,4)
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_wake_up_interruptible
LBB0_11:
	movl	$0, 36(%rbx)
	movq	16(%rbx), %rax
	incq	%rax
	movq	_STV680_NUMSCRATCH@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovbq	%rax, %rdx
	movq	%rdx, 16(%rbx)
LBB0_15:
	movq	$0, 16(%r14)
	movq	24(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_usb_submit_urb
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	xorl	%edi, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDEBUG                         ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STV(i): Lost data in transfer: exp %li, got %i"

L_.str.1:                               ## @.str.1
	.asciz	"STV(e): device vapourished in video_irq"

	.comm	_STV680_NUMSCRATCH,8,3          ## @STV680_NUMSCRATCH
	.comm	_STV680_MAX_NULLPACKETS,8,3     ## @STV680_MAX_NULLPACKETS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"STV(e): urb burned down in video irq"

	.no_dead_strip	_stv680_video_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv680_video_irq
_stv680_video_irq:                      ; @stv680_video_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x21, [x0, #32]
	ldr	w20, [x0]
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_2
; %bb.1:
	stp	x8, x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_PDEBUG
LBB0_2:
	ldr	w8, [x21, #52]
	cbz	w8, LBB0_19
; %bb.3:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_9
; %bb.4:
	cbz	w20, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
LBB0_6:
	ldr	x8, [x21, #8]
	add	x9, x8, #1
	str	x9, [x21, #8]
Lloh2:
	adrp	x9, _STV680_MAX_NULLPACKETS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STV680_MAX_NULLPACKETS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_16
; %bb.7:
	add	x20, x21, #32
	mov	x0, x20
	bl	_waitqueue_active
	cbz	x0, LBB0_16
; %bb.8:
	mov	x0, x20
	bl	_wake_up_interruptible
	b	LBB0_16
LBB0_9:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_10:
	str	xzr, [x21, #8]
	ldr	x8, [x21, #40]
	ldr	x9, [x21, #16]
	mov	w10, #12
	mul	x10, x9, x10
	ldr	w10, [x8, x10]
	sub	w11, w10, #129
	cmp	w11, #2
	b.hs	LBB0_12
; %bb.11:
	ldr	w8, [x21, #48]
	add	w8, w8, #1
	str	w8, [x21, #48]
	b	LBB0_16
LBB0_12:
	cmp	w10, #128
	b.ne	LBB0_16
; %bb.13:
	mov	w22, #12
	madd	x8, x9, x22, x8
	ldr	w0, [x8, #8]
	ldr	x1, [x19, #24]
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x21, #40]
	ldr	x9, [x21, #16]
	madd	x8, x9, x22, x8
	mov	w9, #129
	stp	w9, w20, [x8]
	add	x20, x21, #32
	mov	x0, x20
	bl	_waitqueue_active
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_wake_up_interruptible
LBB0_15:
	str	wzr, [x21, #36]
	ldr	x8, [x21, #16]
	add	x9, x8, #1
Lloh7:
	adrp	x10, _STV680_NUMSCRATCH@GOTPAGE
Lloh8:
	ldr	x10, [x10, _STV680_NUMSCRATCH@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, hs
	str	x8, [x21, #16]
LBB0_16:
	ldr	x8, [x21, #24]
	stp	x8, xzr, [x19, #8]
Lloh10:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	cbz	x0, LBB0_19
; %bb.17:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PDEBUG
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STV(i): Lost data in transfer: exp %li, got %i"

l_.str.1:                               ; @.str.1
	.asciz	"STV(e): device vapourished in video_irq"

	.comm	_STV680_NUMSCRATCH,8,3          ; @STV680_NUMSCRATCH
	.comm	_STV680_MAX_NULLPACKETS,8,3     ; @STV680_MAX_NULLPACKETS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"STV(e): urb burned down in video irq"

	.no_dead_strip	_stv680_video_irq
.subsections_via_symbols
