	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_v_complete_handle_urb
_cxusb_medion_v_complete_handle_urb:    ## @cxusb_medion_v_complete_handle_urb
	.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	%rsi, %r13
	movq	%rdi, %rbx
	movq	24(%rdi), %r12
	movl	$0, (%rsi)
	movl	(%rdi), %r15d
	leaq	4(%rdi), %r14
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	16(%rbx), %rcx
	movl	(%rbx), %edx
	movq	_CXUSB_VIDEO_URBS@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edx
	movl	%edx, (%rbx)
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, (%rbx)
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_2
## %bb.3:
	movq	(%rcx,%r15,8), %r13
	movq	_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	movl	16(%r13), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_EXDEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_20
LBB0_5:
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	movq	8(%r13), %rcx
	cmpl	$4, %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_23:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	jmp	LBB0_20
LBB0_9:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rdi
	movq	%rdi, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$12, %rdi
	jae	LBB0_11
## %bb.10:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_13
LBB0_11:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rcx,%rdi,8), %xmm1
	movdqu	48(%rcx,%rdi,8), %xmm3
	movdqu	64(%rcx,%rdi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rcx,%rdi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rcx,%rdi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rcx,%rdi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-4, %rsi
	jne	LBB0_12
LBB0_13:
	testq	%r8, %r8
	je	LBB0_16
## %bb.14:
	leaq	(%rcx,%rdi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_15
LBB0_16:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r14
	cmpq	%rax, %rdx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rdx,8), %r14
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
LBB0_18:
	movq	_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	testq	%r14, %r14
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:
	movq	_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	leaq	8(%rbx), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_cxusb_auxbuf_append_urb
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
LBB0_20:
	movq	_URB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_cxusb_vprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
LBB0_22:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_test_bit                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_VIDEO_URBS,4,2           ## @CXUSB_VIDEO_URBS
	.comm	_URB,4,2                        ## @URB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"URB %u status = %d\n"

	.comm	_EXDEV,4,2                      ## @EXDEV
L_.str.1:                               ## @.str.1
	.asciz	"URB %u data len = %lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"appending URB\n"

L_.str.3:                               ## @.str.3
	.asciz	"URB %u resubmit\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"unable to resubmit URB %u (%d), you'll have to restart streaming\n"

	.no_dead_strip	_cxusb_medion_v_complete_handle_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_v_complete_handle_urb
_cxusb_medion_v_complete_handle_urb:    ; @cxusb_medion_v_complete_handle_urb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x1
	mov	x19, x0
	ldr	x22, [x0, #24]
	str	wzr, [x1]
	ldr	w21, [x0]
	add	x20, x0, #4
	mov	x0, x21
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x19, #16]
	ldr	w10, [x19]
Lloh0:
	adrp	x9, _CXUSB_VIDEO_URBS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXUSB_VIDEO_URBS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w10, w10, #1
	str	w10, [x19]
	ldr	w11, [x9]
	udiv	w12, w10, w11
	msub	w10, w12, w11, w10
	str	w10, [x19]
	ldr	x11, [x8, w10, uxtw #3]
	cbz	x11, LBB0_2
; %bb.3:
	ldr	x24, [x8, x21, lsl #3]
Lloh2:
	adrp	x25, _URB@GOTPAGE
Lloh3:
	ldr	x25, [x25, _URB@GOTPAGEOFF]
	ldr	w1, [x25]
	ldr	w8, [x24, #16]
	stp	x21, x8, [sp]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	bl	_cxusb_vprintk
	ldr	w8, [x24, #16]
	cbz	w8, LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, _EXDEV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXDEV@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_17
LBB0_5:
	ldr	w8, [x24]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.6:
	ldr	x9, [x24, #8]
	cmp	w8, #8
	b.hs	LBB0_10
; %bb.7:
	mov	x10, #0
	mov	x26, #0
	b	LBB0_13
LBB0_8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
	ldr	w1, [x25]
	stp	x21, xzr, [sp]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_cxusb_vprintk
	b	LBB0_17
LBB0_10:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x12, x12, #8
	b.ne	LBB0_11
; %bb.12:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x26, d0
	cmp	x10, x8
	b.eq	LBB0_15
LBB0_13:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	add	x26, x10, x26
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	ldr	w1, [x25]
	stp	x21, x26, [sp]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_cxusb_vprintk
	cbz	x26, LBB0_17
; %bb.16:
	ldr	w1, [x25]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_cxusb_vprintk
	add	x1, x19, #8
	mov	x0, x22
	mov	x2, x24
	bl	_cxusb_auxbuf_append_urb
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x23]
LBB0_17:
	ldr	w1, [x25]
	str	x21, [sp]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_cxusb_vprintk
Lloh17:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_usb_submit_urb
	cbz	w0, LBB0_19
; %bb.18:
	mov	x3, x0
	ldr	x0, [x22]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_dev_err
LBB0_19:
	ldr	w0, [x19]
	mov	x1, x20
	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
	add	sp, sp, #96
	b	_test_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_VIDEO_URBS,4,2           ; @CXUSB_VIDEO_URBS
	.comm	_URB,4,2                        ; @URB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"URB %u status = %d\n"

	.comm	_EXDEV,4,2                      ; @EXDEV
l_.str.1:                               ; @.str.1
	.asciz	"URB %u data len = %lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"appending URB\n"

l_.str.3:                               ; @.str.3
	.asciz	"URB %u resubmit\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"unable to resubmit URB %u (%d), you'll have to restart streaming\n"

	.no_dead_strip	_cxusb_medion_v_complete_handle_urb
.subsections_via_symbols
