	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_out_urb_mode_0
_fill_out_urb_mode_0:                   ## @fill_out_urb_mode_0
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rdx)
	jle	LBB0_16
## %bb.1:
	movq	%rdi, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	(%rsi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	4(%rax), %r15d
	jge	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r13
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movb	$0, (%r13,%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	32(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%rax), %rdi
	movq	(%rdi), %r14
	movl	8(%rdi), %esi
	callq	_frames_to_bytes
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movzbl	(%r14,%rcx), %ecx
	movb	%cl, (%r13,%rbx)
	movq	24(%r12), %rcx
	incl	(%rcx,%rbx,4)
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	incq	%rdx
	cltq
	cmpq	%rax, %rdx
	movl	$0, %eax
	cmovneq	%rdx, %rax
	movq	%rax, (%rcx,%rbx,8)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, 16(%r12)
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_BYTES_PER_SAMPLE_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%ecx, %esi
	movl	%r15d, %eax
	cltd
	idivl	%esi
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ecx, %eax
	cmpl	%eax, %edx
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %r13
	movl	%r15d, %r14d
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	(%r14,%rbx), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_MAKE_CHECKBYTE
	movb	%al, (%r13,%rbx)
	movl	(%r12), %ecx
	incq	%rbx
	cmpl	%ecx, %ebx
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, %r15d
	jmp	LBB0_15
LBB0_16:
	addq	$24, %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
	.no_dead_strip	_fill_out_urb_mode_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_out_urb_mode_0
_fill_out_urb_mode_0:                   ; @fill_out_urb_mode_0
	.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
	ldr	w8, [x2, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w22, #0
	ldr	x9, [x1]
	ldrsw	x10, [x2]
	ldr	w8, [x0]
	add	x23, x9, x10
Lloh0:
	adrp	x24, _BYTES_PER_SAMPLE_USB@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BYTES_PER_SAMPLE_USB@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CHANNELS_PER_STREAM@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CHANNELS_PER_STREAM@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #4]
	cmp	w22, w9
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	add	x26, x23, w22, sxtw
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	strb	wzr, [x26, x21]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x21, lsl #3]
	cbz	x8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [x8]
	ldr	x27, [x0]
	ldr	w1, [x0, #8]
	bl	_frames_to_bytes
	ldr	x8, [x20, #8]
	lsl	x9, x21, #3
	ldr	x8, [x8, x9]
	ldrb	w8, [x27, x8]
	strb	w8, [x26, x21]
	ldr	x8, [x20, #24]
	lsl	x10, x21, #2
	ldr	w11, [x8, x10]
	add	w11, w11, #1
	str	w11, [x8, x10]
	ldr	x8, [x20, #8]
	ldr	x10, [x8, x9]
	add	x11, x10, #1
	cmp	x11, w0, sxtw
	csinc	x10, xzr, x10, eq
	str	x10, [x8, x9]
	b	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, w21
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #16]
	cmp	w9, #2
	b.ne	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x24]
	mul	w9, w9, w8
	sdiv	w10, w22, w9
	msub	w9, w10, w9, w22
	ldr	w10, [x25]
	mul	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
	mov	w26, w22
	add	x27, x23, w22, sxtw
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w2, w26, w21
	mov	x0, x20
	mov	x1, x21
	bl	_MAKE_CHECKBYTE
	strb	w0, [x27, x21]
	ldr	w8, [x20]
	add	x21, x21, #1
	cmp	w21, w8
	b.lt	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w22, w22, w21
	b	LBB0_2
LBB0_16:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BYTES_PER_SAMPLE_USB,4,2       ; @BYTES_PER_SAMPLE_USB
	.comm	_CHANNELS_PER_STREAM,4,2        ; @CHANNELS_PER_STREAM
	.no_dead_strip	_fill_out_urb_mode_0
.subsections_via_symbols
