	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zc0301_start_transfer
_zc0301_start_transfer:                 ## @zc0301_start_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, %r13
	movq	24(%rdi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_usb_ifnum_to_if
	movq	_ZC0301_ALTERNATE_SETTING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_usb_altnum_to_altsetting
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_ZC0301_URBS@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_17
## %bb.1:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	_ZC0301_ISO_PACKETS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	imull	%r15d, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_26
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.4:
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_ZC0301_URBS@GOTPCREL(%rip), %r12
	incq	%rbx
	cmpq	(%r12), %rbx
	jae	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_usb_alloc_urb
	movq	%rax, %r12
	movq	8(%r13), %rax
	movq	%r12, (%rax,%rbx,8)
	testq	%r12, %r12
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 56(%r12)
	movq	%r13, 48(%r12)
	movl	$1, %esi
	callq	_usb_rcvisocpipe
	movl	%eax, 40(%r12)
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	_zc0301_urb_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, 24(%r12)
	movl	(%r14), %eax
	movl	%eax, %ecx
	imull	%r15d, %ecx
	movl	%ecx, 4(%r12)
	movl	$1, 8(%r12)
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r12), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ecx, (%rax,%rdx,8)
	movl	%r15d, 4(%rax,%rdx,8)
	incq	%rdx
	movl	(%r14), %edi
	addl	%r15d, %ecx
	cmpq	%rdi, %rdx
	jb	LBB0_15
	jmp	LBB0_16
LBB0_17:
	movq	_ZC0301_ALTERNATE_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DBG
	movq	(%r12), %rax
	jmp	LBB0_27
LBB0_19:
	movq	$0, 16(%r13)
	cmpq	$0, (%r12)
	je	LBB0_25
## %bb.20:
	movq	$-8, %rbx
	xorl	%r14d, %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rdi
	movl	(%r15), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	incq	%r14
	addq	$8, %rbx
	cmpq	(%r12), %r14
	jb	LBB0_21
## %bb.24:
	xorl	%r15d, %r15d
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx), %rdi
	callq	_usb_kill_urb
	addq	$-8, %rbx
	jmp	LBB0_22
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	_ZC0301_URBS@GOTPCREL(%rip), %r12
LBB0_8:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_DBG
	cmpq	$0, (%r12)
	je	LBB0_25
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_28
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	callq	_usb_free_urb
	incq	%rbx
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_27:
	testq	%rax, %rax
	je	LBB0_25
LBB0_28:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	callq	_kfree
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_29
LBB0_25:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZC0301_ALTERNATE_SETTING,4,2   ## @ZC0301_ALTERNATE_SETTING
	.comm	_ZC0301_URBS,8,3                ## @ZC0301_URBS
	.comm	_ZC0301_ISO_PACKETS,4,2         ## @ZC0301_ISO_PACKETS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough memory"

L_.str.1:                               ## @.str.1
	.asciz	"usb_alloc_urb() failed"

	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_zc0301_urb_complete,4,2        ## @zc0301_urb_complete
L_.str.2:                               ## @.str.2
	.asciz	"usb_set_interface() failed"

	.no_dead_strip	_zc0301_start_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zc0301_start_transfer
_zc0301_start_transfer:                 ; @zc0301_start_transfer
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_ifnum_to_if
Lloh0:
	adrp	x8, _ZC0301_ALTERNATE_SETTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZC0301_ALTERNATE_SETTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_usb_altnum_to_altsetting
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh3:
	adrp	x23, _ZC0301_URBS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ZC0301_URBS@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x21, x0
	mov	x22, #0
Lloh5:
	adrp	x25, _ZC0301_ISO_PACKETS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ZC0301_ISO_PACKETS@GOTPAGEOFF]
Lloh7:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	mul	w0, w8, w21
	ldr	w1, [x26]
	bl	_kzalloc
	ldr	x8, [x19]
	str	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lo	LBB0_2
; %bb.4:
	cbz	x8, LBB0_12
; %bb.5:
	mov	x27, #0
	ldr	w0, [x25]
Lloh9:
	adrp	x24, _URB_ISO_ASAP@GOTPAGE
Lloh10:
	ldr	x24, [x24, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh11:
	adrp	x28, _zc0301_urb_complete@GOTPAGE
Lloh12:
	ldr	x28, [x28, _zc0301_urb_complete@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x27, x27, #1
	ldr	x8, [x23]
	cmp	x27, x8
	b.hs	LBB0_12
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w1, [x26]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_usb_alloc_urb
	ldr	x8, [x19, #8]
	str	x0, [x8, x27, lsl #3]
	cbz	x0, LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x22, x0
	stp	x19, x20, [x0, #48]
	mov	x0, x20
	mov	w1, #1
	bl	_usb_rcvisocpipe
	str	w0, [x22, #40]
	ldr	w8, [x24]
	ldr	w9, [x25]
	str	w9, [x22]
	ldr	w9, [x28]
	ldr	x10, [x19]
	ldr	x10, [x10, x27, lsl #3]
	stp	w9, w8, [x22, #32]
	str	x10, [x22, #24]
	ldr	w8, [x25]
	mul	w10, w8, w21
	mov	w9, #1
	stp	w10, w9, [x22, #4]
	cbz	w8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	mov	x9, #0
	ldr	x10, [x22, #16]
	add	x10, x10, #4
LBB0_11:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stp	w8, w21, [x10, #-4]
	add	x9, x9, #1
	ldr	w0, [x25]
	add	w8, w8, w21
	add	x10, x10, #8
	cmp	x9, x0
	b.lo	LBB0_11
	b	LBB0_7
LBB0_12:
Lloh13:
	adrp	x8, _ZC0301_ALTERNATE_SETTING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZC0301_ALTERNATE_SETTING@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_set_interface
	cbz	w0, LBB0_15
; %bb.13:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_22
LBB0_14:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_DBG
	ldr	x8, [x23]
	b	LBB0_26
LBB0_15:
	str	xzr, [x19, #16]
	ldr	x8, [x23]
	cbz	x8, LBB0_19
; %bb.16:
	mov	x21, #0
	mov	x20, #-8
Lloh23:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh24:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	ldr	w1, [x22]
	bl	_usb_submit_urb
	cbnz	w0, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x21, x21, #1
	ldr	x8, [x23]
	add	x20, x20, #8
	cmp	x21, x8
	b.lo	LBB0_17
LBB0_19:
	mov	w20, #0
	b	LBB0_30
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20]
	bl	_usb_kill_urb
	sub	x20, x20, #8
	b	LBB0_20
LBB0_21:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_22:
	mov	w0, #1
	bl	_DBG
	ldr	x8, [x23]
	cbz	x8, LBB0_30
; %bb.23:
	mov	x21, #0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	bl	_usb_free_urb
	add	x21, x21, #1
	ldr	x8, [x23]
	cmp	x21, x8
	b.lo	LBB0_24
LBB0_26:
	cbz	x8, LBB0_30
LBB0_27:
	mov	x21, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	cbz	x0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	bl	_kfree
	add	x21, x21, #1
	ldr	x8, [x23]
	cmp	x21, x8
	b.lo	LBB0_28
LBB0_30:
	mov	x0, 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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ZC0301_ALTERNATE_SETTING,4,2   ; @ZC0301_ALTERNATE_SETTING
	.comm	_ZC0301_URBS,8,3                ; @ZC0301_URBS
	.comm	_ZC0301_ISO_PACKETS,4,2         ; @ZC0301_ISO_PACKETS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough memory"

l_.str.1:                               ; @.str.1
	.asciz	"usb_alloc_urb() failed"

	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_zc0301_urb_complete,4,2        ; @zc0301_urb_complete
l_.str.2:                               ; @.str.2
	.asciz	"usb_set_interface() failed"

	.no_dead_strip	_zc0301_start_transfer
.subsections_via_symbols
