	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_in_urb_mode3
_read_in_urb_mode3:                     ## @read_in_urb_mode3
	.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	%rdx, %rcx
	movl	4(%rdx), %r9d
	movq	_BYTES_PER_SAMPLE_USB@GOTPCREL(%rip), %rax
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	(%rax), %r8d
	imull	%ebx, %r8d
	movl	%r9d, %eax
	cltd
	idivl	%r8d
	testl	%edx, %edx
	jne	LBB0_30
## %bb.1:
	testl	%r9d, %r9d
	jle	LBB0_28
## %bb.2:
	movslq	(%rcx), %r11
	addq	(%rsi), %r11
	movl	(%rdi), %eax
	xorl	%r15d, %r15d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %r9d
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r9d, %r15d
	jge	LBB0_28
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%r14
	movslq	(%rdi), %rax
	cmpq	%rax, %r14
	jge	LBB0_3
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##         Child Loop BB0_16 Depth 4
	movq	32(%rdi), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$0, 4(%rdi)
	je	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	testl	%ebx, %ebx
	jg	LBB0_12
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	(%rax), %rdi
	movq	(%rdi), %r12
	movl	8(%rdi), %esi
	callq	_frames_to_bytes
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %r10
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %r13d
	movl	(%r10), %ebx
	testl	%ebx, %ebx
	jle	LBB0_27
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	leal	(%r14,%r14), %edx
	xorl	%r10d, %r10d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_13
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=3
	movl	$1, 4(%rdi)
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=3
	incl	%r15d
	incl	%r10d
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r10d
	jge	LBB0_27
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_16 Depth 4
	movslq	%r15d, %r8
	testq	%r12, %r12
	movq	_BYTES_PER_SAMPLE@GOTPCREL(%rip), %r15
	je	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=3
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=3
	movq	8(%rdi), %rdx
	movl	(%rdx,%r14,4), %ecx
	leaq	(%r11,%r8), %r9
	xorl	%esi, %esi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=4
	incq	%rsi
	movslq	(%r15), %rax
	cmpq	%rax, %rsi
	jge	LBB0_19
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ##       Parent Loop BB0_13 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movzbl	(%r9,%rsi), %eax
	leal	1(%rcx), %ebx
	movl	%ebx, (%rdx,%r14,4)
	movslq	%ecx, %rdx
	movb	%al, (%r12,%rdx)
	movq	8(%rdi), %rdx
	movl	(%rdx,%r14,4), %ecx
	cmpl	%r13d, %ecx
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=4
	movl	$0, (%rdx,%r14,4)
	xorl	%ecx, %ecx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=3
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=3
	movq	16(%rdi), %rsi
	addl	%eax, (%rsi,%r14,4)
LBB0_21:                                ##   in Loop: Header=BB0_13 Depth=3
	movslq	(%r15), %r15
	addq	%r8, %r15
	movzbl	(%r11,%r15), %eax
	movl	%r10d, %esi
	orl	%edx, %esi
	cmpl	%eax, %esi
	je	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=3
	cmpq	$0, 24(%rdi)
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=3
	cmpl	$0, 4(%rdi)
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=3
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rdi
	movl	%r10d, %ecx
	movl	%r14d, %r8d
	movl	%r10d, %ebx
	movl	%r15d, %r9d
	callq	_printk
	movl	%ebx, %r10d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_28:
	movq	24(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_30
## %bb.29:
	decq	%rax
	movq	%rax, 24(%rdi)
LBB0_30:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BYTES_PER_SAMPLE_USB,4,2       ## @BYTES_PER_SAMPLE_USB
	.comm	_CHANNELS_PER_STREAM,4,2        ## @CHANNELS_PER_STREAM
	.comm	_BYTES_PER_SAMPLE,4,2           ## @BYTES_PER_SAMPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" EXPECTED: %02x got %02x, c %d, stream %d, i %d\n"

	.no_dead_strip	_read_in_urb_mode3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_in_urb_mode3
_read_in_urb_mode3:                     ; @read_in_urb_mode3
	.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
	ldr	w9, [x2, #4]
Lloh0:
	adrp	x8, _BYTES_PER_SAMPLE_USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BYTES_PER_SAMPLE_USB@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x26, _CHANNELS_PER_STREAM@GOTPAGE
Lloh4:
	ldr	x26, [x26, _CHANNELS_PER_STREAM@GOTPAGEOFF]
	ldr	w8, [x26]
	mul	w10, w8, w10
	sdiv	w11, w9, w10
	msub	w10, w11, w10, w9
	cbnz	w10, LBB0_28
; %bb.1:
	mov	x19, x0
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.2:
	mov	w25, #0
	ldr	x11, [x1]
	ldrsw	x12, [x2]
	add	x27, x11, x12
	ldr	w10, [x19]
	add	x15, x11, x12
Lloh5:
	adrp	x20, _BYTES_PER_SAMPLE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BYTES_PER_SAMPLE@GOTPAGEOFF]
	mov	w16, #1
	stp	x2, x15, [sp]                   ; 16-byte Folded Spill
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [sp]                        ; 8-byte Folded Reload
	ldr	w9, [x2, #4]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w9
	b.ge	LBB0_26
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x22, x22, #1
	ldrsw	x10, [x19]
	cmp	x22, x10
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;         Child Loop BB0_19 Depth 4
	ldr	x9, [x19, #32]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w10, [x19, #4]
	cbz	w10, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x21, #0
	mov	w23, #0
	cmp	w8, #1
	b.ge	LBB0_12
	b	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x0, [x9]
	ldr	x21, [x0]
	ldr	w1, [x0, #8]
	bl	_frames_to_bytes
	mov	w16, #1
	ldr	x15, [sp, #8]                   ; 8-byte Folded Reload
	mov	x23, x0
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w24, #0
	lsl	w28, w22, #1
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=3
	str	w16, [x19, #4]
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=3
	add	w25, w25, #1
	add	w24, w24, #1
	ldr	w8, [x26]
	cmp	w24, w8
	b.ge	LBB0_7
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_19 Depth 4
	cbz	x21, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	w13, [x20]
	lsl	x8, x22, #2
	cmp	w13, #1
	b.lt	LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=3
	mov	x9, #0
	ldr	x10, [x19, #8]
	ldr	w12, [x10, x22, lsl #2]
	add	x11, x15, w25, sxtw
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=4
	add	x9, x9, #1
	ldrsw	x13, [x20]
	cmp	x9, x13
	b.ge	LBB0_21
LBB0_19:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ;       Parent Loop BB0_15 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldrb	w13, [x11, x9]
	add	w14, w12, #1
	str	w14, [x10, x8]
	strb	w13, [x21, w12, sxtw]
	ldr	x10, [x19, #8]
	ldr	w12, [x10, x8]
	cmp	w12, w23
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=4
	mov	w12, #0
	str	wzr, [x10, x22, lsl #2]
	b	LBB0_18
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=3
	ldr	x9, [x19, #16]
	ldr	w10, [x9, x8]
	add	w10, w10, w13
	str	w10, [x9, x8]
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=3
	ldrsw	x8, [x20]
	add	x25, x8, w25, sxtw
	ldrb	w2, [x27, x25]
	orr	w1, w24, w28
	cmp	w1, w2
	b.eq	LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_14
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=3
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=3
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x24
	mov	x4, x22
	mov	x5, x25
	bl	_printk
	mov	w16, #1
	ldr	x15, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_13
LBB0_26:
	ldr	x8, [x19, #24]
	subs	x8, x8, #1
	b.lt	LBB0_28
; %bb.27:
	str	x8, [x19, #24]
LBB0_28:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BYTES_PER_SAMPLE_USB,4,2       ; @BYTES_PER_SAMPLE_USB
	.comm	_CHANNELS_PER_STREAM,4,2        ; @CHANNELS_PER_STREAM
	.comm	_BYTES_PER_SAMPLE,4,2           ; @BYTES_PER_SAMPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" EXPECTED: %02x got %02x, c %d, stream %d, i %d\n"

	.no_dead_strip	_read_in_urb_mode3
.subsections_via_symbols
