	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtv_setup_iso_transfer
_usbtv_setup_iso_transfer:              ## @usbtv_setup_iso_transfer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	movq	_USBTV_ISOC_PACKETS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movl	4(%r15), %edi
	movl	%edi, 48(%rax)
	movq	%r15, 40(%rax)
	movq	_USBTV_VIDEO_ENDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_rcvisocpipe
	movl	%eax, 36(%r14)
	movl	$1, (%r14)
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	%ebx, %esi
	callq	_kcalloc
	movl	%eax, 28(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_usbtv_iso_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	(%r12), %eax
	movl	%eax, 4(%r14)
	movl	%eax, %ecx
	imull	%ebx, %ecx
	movl	%ecx, 8(%r14)
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	16(%r14), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rax,%rdx,8)
	movl	%ebx, 4(%rax,%rdx,8)
	incq	%rdx
	movslq	(%r12), %rsi
	addl	%ebx, %ecx
	cmpq	%rsi, %rdx
	jl	LBB0_4
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	callq	_usb_free_urb
LBB0_7:
	xorl	%r14d, %r14d
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USBTV_ISOC_PACKETS,4,2         ## @USBTV_ISOC_PACKETS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_USBTV_VIDEO_ENDP,4,2           ## @USBTV_VIDEO_ENDP
	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_usbtv_iso_cb,4,2               ## @usbtv_iso_cb
	.no_dead_strip	_usbtv_setup_iso_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtv_setup_iso_transfer
_usbtv_setup_iso_transfer:              ; @usbtv_setup_iso_transfer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	w20, [x0]
Lloh0:
	adrp	x22, _USBTV_ISOC_PACKETS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USBTV_ISOC_PACKETS@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_usb_alloc_urb
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x21, #4]
	str	w0, [x19, #48]
	str	x21, [x19, #40]
Lloh4:
	adrp	x8, _USBTV_VIDEO_ENDP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USBTV_VIDEO_ENDP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_usb_rcvisocpipe
	mov	w8, #1
Lloh7:
	adrp	x9, _URB_ISO_ASAP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _URB_ISO_ASAP@GOTPAGEOFF]
	str	w8, [x19]
Lloh9:
	ldr	w8, [x9]
	stp	w8, w0, [x19, #32]
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	x1, x20
	bl	_kcalloc
	str	w0, [x19, #28]
	cbz	w0, LBB0_5
; %bb.2:
Lloh10:
	adrp	x8, _usbtv_iso_cb@GOTPAGE
Lloh11:
	ldr	x8, [x8, _usbtv_iso_cb@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w8, [x22]
	mul	w9, w8, w20
	stp	w8, w9, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w8, #0
	mov	x9, #0
	ldr	x10, [x19, #16]
	add	x10, x10, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	w8, w20, [x10, #-4]
	add	x9, x9, #1
	ldrsw	x11, [x22]
	add	w8, w8, w20
	add	x10, x10, #8
	cmp	x9, x11
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_usb_free_urb
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USBTV_ISOC_PACKETS,4,2         ; @USBTV_ISOC_PACKETS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_USBTV_VIDEO_ENDP,4,2           ; @USBTV_VIDEO_ENDP
	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_usbtv_iso_cb,4,2               ; @usbtv_iso_cb
	.no_dead_strip	_usbtv_setup_iso_transfer
.subsections_via_symbols
