	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_init_audio_isoc
_em28xx_init_audio_isoc:                ## @em28xx_init_audio_isoc
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_EM28XX_NUM_AUDIO_PACKETS@GOTPCREL(%rip), %r13
	movq	_EM28XX_AUDIO_MAX_PACKET_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	imull	(%r13), %r12d
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EM28XX_AUDIO_BUFS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.1:
	xorl	%edi, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movq	%rbx, (%rax,%rdi,8)
	incq	%rdi
	movq	_EM28XX_AUDIO_BUFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	movq	8(%r15), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	testl	%eax, %eax
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	movl	$128, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r15), %edi
	movl	%edi, 48(%rax)
	movq	%r15, 40(%rax)
	movl	$131, %esi
	callq	_usb_rcvisocpipe
	movl	%eax, 36(%rbx)
	movq	_URB_ISO_ASAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	8(%r15), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rax,%rdi,4), %eax
	movl	%eax, 28(%rbx)
	movl	$1, (%rbx)
	movq	_em28xx_audio_isocirq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	%r12d, 8(%rbx)
	testl	%eax, %eax
	jle	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, (%rax,%rcx,8)
	movl	(%r14), %esi
	movl	%esi, 4(%rax,%rcx,8)
	incq	%rcx
	addl	(%r14), %edx
	movslq	(%r13), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_7
	jmp	LBB0_2
LBB0_9:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.10:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	movq	_EM28XX_AUDIO_BUFS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	callq	_em28xx_errdev
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_kfree
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_16
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_em28xx_deinit_isoc_audio
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_NUM_AUDIO_PACKETS,4,2   ## @EM28XX_NUM_AUDIO_PACKETS
	.comm	_EM28XX_AUDIO_MAX_PACKET_SIZE,4,2 ## @EM28XX_AUDIO_MAX_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting isoc transfers\n"

	.comm	_EM28XX_AUDIO_BUFS,4,2          ## @EM28XX_AUDIO_BUFS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"usb_alloc_urb failed!\n"

	.comm	_URB_ISO_ASAP,4,2               ## @URB_ISO_ASAP
	.comm	_em28xx_audio_isocirq,4,2       ## @em28xx_audio_isocirq
	.no_dead_strip	_em28xx_init_audio_isoc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_init_audio_isoc
_em28xx_init_audio_isoc:                ; @em28xx_init_audio_isoc
	.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
Lloh0:
	adrp	x25, _EM28XX_NUM_AUDIO_PACKETS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EM28XX_NUM_AUDIO_PACKETS@GOTPAGEOFF]
	ldr	w20, [x25]
Lloh2:
	adrp	x26, _EM28XX_AUDIO_MAX_PACKET_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EM28XX_AUDIO_MAX_PACKET_SIZE@GOTPAGEOFF]
	ldr	w21, [x26]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh6:
	adrp	x22, _EM28XX_AUDIO_BUFS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _EM28XX_AUDIO_BUFS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, #0
Lloh8:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	mul	w20, w21, w20
	mov	w28, #1
Lloh10:
	adrp	x27, _em28xx_audio_isocirq@GOTPAGE
Lloh11:
	ldr	x27, [x27, _em28xx_audio_isocirq@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	str	x21, [x8, x23, lsl #3]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w1, [x24]
	mov	x0, x20
	bl	_kmalloc
	ldr	x8, [x19, #8]
	str	w0, [x8, x23, lsl #2]
	cbz	w0, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #128
	mov	x2, x20
	bl	_memset
	ldr	w0, [x25]
	ldr	w1, [x24]
	bl	_usb_alloc_urb
	cbz	x0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x0
	ldr	w0, [x19, #16]
	str	w0, [x21, #48]
	str	x19, [x21, #40]
	mov	w1, #131
	bl	_usb_rcvisocpipe
Lloh12:
	adrp	x8, _URB_ISO_ASAP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _URB_ISO_ASAP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w0, [x21, #32]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x23, lsl #2]
	str	w28, [x21]
	ldr	w9, [x27]
	stp	w9, w8, [x21, #24]
	ldr	w8, [x25]
	stp	w8, w20, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, #0
	mov	w9, #0
	ldr	x10, [x21, #16]
	add	x10, x10, #4
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	w9, [x10, #-4]
	ldr	w11, [x26]
	str	w11, [x10], #8
	add	x8, x8, #1
	ldr	w11, [x26]
	add	w9, w11, w9
	ldrsw	x11, [x25]
	cmp	x8, x11
	b.lt	LBB0_7
	b	LBB0_2
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x21, lsl #3]
	ldr	w1, [x24]
	bl	_usb_submit_urb
	cbnz	w0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_10
LBB0_12:
	mov	w20, #0
	b	LBB0_17
LBB0_13:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_em28xx_errdev
	cbz	w23, LBB0_16
; %bb.14:
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, x20, lsl #3]
	bl	_usb_free_urb
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_kfree
	add	x20, x20, #1
	cmp	x23, x20
	b.ne	LBB0_15
LBB0_16:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_17:
	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
LBB0_18:
	mov	x20, x0
	mov	x0, x19
	bl	_em28xx_deinit_isoc_audio
	b	LBB0_17
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_NUM_AUDIO_PACKETS,4,2   ; @EM28XX_NUM_AUDIO_PACKETS
	.comm	_EM28XX_AUDIO_MAX_PACKET_SIZE,4,2 ; @EM28XX_AUDIO_MAX_PACKET_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting isoc transfers\n"

	.comm	_EM28XX_AUDIO_BUFS,4,2          ; @EM28XX_AUDIO_BUFS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"usb_alloc_urb failed!\n"

	.comm	_URB_ISO_ASAP,4,2               ; @URB_ISO_ASAP
	.comm	_em28xx_audio_isocirq,4,2       ; @em28xx_audio_isocirq
	.no_dead_strip	_em28xx_init_audio_isoc
.subsections_via_symbols
