	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msi2500_isoc_handler
_msi2500_isoc_handler:                  ## @msi2500_isoc_handler
	.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
	movq	%rdi, %r13
	movl	(%rdi), %eax
	movq	_ENOENT@GOTPCREL(%rip), %r14
	movl	$1, %edi
	movl	(%r14), %ecx
	addl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movq	_ECONNRESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_3
## %bb.2:
	movq	_ESHUTDOWN@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	addl	(%rcx), %eax
	sete	%dil
LBB0_3:
	movq	24(%r13), %rbx
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:
	movl	8(%rbx), %edi
	movl	(%r13), %eax
	addl	(%r14), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_4:
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.5:
	movl	8(%rbx), %edi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_MAX_ISOC_ERRORS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_16
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_16
LBB0_7:
	movq	$0, (%rbx)
	cmpl	$0, 4(%r13)
	jle	LBB0_16
## %bb.8:
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	4(%r13), %ecx
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg_ratelimited
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	movslq	4(%r13), %rax
	addq	$12, %r14
	cmpq	%rax, %r12
	jge	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax,%r14), %ebx
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r13), %rax
	movl	4(%rax,%r14), %r15d
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movslq	8(%rax,%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_msi2500_get_next_fill_buf
	xorl	%edi, %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%rbx), %edi
	movl	12(%rbx), %edx
	incl	%edx
	movl	%edx, 12(%rbx)
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg_ratelimited
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	-72(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_msi2500_convert_stream
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_vb2_set_plane_payload
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vb2_buffer_done
	jmp	LBB0_15
LBB0_16:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ## @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"URB (%p) unlinked %ssynchronously\n"

L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"a"

L_.str.3:                               ## @.str.3
	.asciz	"called with status %d\n"

	.comm	_MAX_ISOC_ERRORS,8,3            ## @MAX_ISOC_ERRORS
L_.str.4:                               ## @.str.4
	.asciz	"Too many ISOC errors, bailing out\n"

L_.str.5:                               ## @.str.5
	.asciz	"frame=%d/%d has error %d skipping\n"

L_.str.6:                               ## @.str.6
	.asciz	"videobuf is full, %d packets dropped\n"

	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.7:                               ## @.str.7
	.asciz	"Error (%d) re-submitting urb\n"

	.no_dead_strip	_msi2500_isoc_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msi2500_isoc_handler
_msi2500_isoc_handler:                  ; @msi2500_isoc_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _ENOENT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOENT@GOTPAGEOFF]
	ldr	w9, [x21]
	cmn	w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _ECONNRESET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ECONNRESET@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	w8, [x20]
	ldr	w9, [x21]
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh7:
	adrp	x11, l_.str.1@PAGE
Lloh8:
	add	x11, x11, l_.str.1@PAGEOFF
	cmn	w8, w9
	csel	x8, x11, x10, eq
	stp	x20, x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh11:
	adrp	x9, _ESHUTDOWN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ESHUTDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmn	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
LBB0_5:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x19, #8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
Lloh16:
	adrp	x9, _MAX_ISOC_ERRORS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_ISOC_ERRORS@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_18
; %bb.7:
	ldr	w0, [x19, #8]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	b	LBB0_18
LBB0_8:
	str	xzr, [x19]
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.9:
	mov	x27, #0
	mov	x21, #0
Lloh21:
	adrp	x22, l_.str.6@PAGE
Lloh22:
	add	x22, x22, l_.str.6@PAGEOFF
Lloh23:
	adrp	x23, l_.str.5@PAGE
Lloh24:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x27
	ldr	w24, [x8, #4]
	cmp	w24, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20, #4]
	add	x27, x27, #12
	cmp	x21, x8
	b.ge	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w24, [x8, x27]
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x19, #8]
	ldr	w8, [x20, #4]
	stp	x8, x24, [sp]
	mov	x1, x23
	mov	x2, x21
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_dev_dbg_ratelimited
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldp	x26, x8, [x20, #8]
	add	x8, x8, x27
	ldrsw	x28, [x8, #8]
	mov	x0, x19
	bl	_msi2500_get_next_fill_buf
	mov	x25, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldp	w0, w8, [x19, #8]
	add	w2, w8, #1
	str	w2, [x19, #12]
	mov	x1, x22
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x26, x26, x28
	mov	x0, x25
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x1, x0
	mov	x0, x19
	mov	x2, x26
	mov	x3, x24
	bl	_msi2500_convert_stream
	mov	x2, x0
	mov	x0, x25
	mov	w1, #0
	bl	_vb2_set_plane_payload
Lloh25:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_vb2_buffer_done
	b	LBB0_11
LBB0_18:
Lloh28:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb_submit_urb
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_21
; %bb.19:
	ldr	w0, [x19, #8]
	str	x20, [sp]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_20:
	bl	_dev_dbg
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_ESHUTDOWN,4,2                  ; @ESHUTDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"URB (%p) unlinked %ssynchronously\n"

l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"a"

l_.str.3:                               ; @.str.3
	.asciz	"called with status %d\n"

	.comm	_MAX_ISOC_ERRORS,8,3            ; @MAX_ISOC_ERRORS
l_.str.4:                               ; @.str.4
	.asciz	"Too many ISOC errors, bailing out\n"

l_.str.5:                               ; @.str.5
	.asciz	"frame=%d/%d has error %d skipping\n"

l_.str.6:                               ; @.str.6
	.asciz	"videobuf is full, %d packets dropped\n"

	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.7:                               ; @.str.7
	.asciz	"Error (%d) re-submitting urb\n"

	.no_dead_strip	_msi2500_isoc_handler
.subsections_via_symbols
