	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_out_urb_mode_3
_fill_out_urb_mode_3:                   ## @fill_out_urb_mode_3
	.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, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_22
## %bb.1:
	movq	%rdi, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %r10
	addq	(%rsi), %r10
	movl	(%rdi), %eax
	xorl	%r11d, %r11d
	movq	_BYTES_PER_SAMPLE@GOTPCREL(%rip), %r14
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ecx
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %r11d
	jge	LBB0_22
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	testl	%eax, %eax
	jle	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_2
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_11 Depth 3
                                        ##         Child Loop BB0_13 Depth 4
	movq	24(%r12), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rax), %rdi
	movq	(%rdi), %r15
	movl	8(%rdi), %esi
	movq	%r11, %rbx
	callq	_frames_to_bytes
	movq	%rbx, %r11
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=2
	xorl	%r15d, %r15d
	xorl	%eax, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=2
	leal	(%r13,%r13), %r8d
	xorl	%r9d, %r9d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=3
	leal	(%rdi,%r11), %ecx
	movl	%r9d, %edx
	orl	%r8d, %edx
	addl	%edi, %r11d
	incl	%r11d
	movslq	%ecx, %rcx
	movb	%dl, (%r10,%rcx)
	incl	%r9d
	movq	_CHANNELS_PER_STREAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r9d
	jge	LBB0_21
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_13 Depth 4
	movl	(%r14), %edi
	testl	%edi, %edi
	jle	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=3
	movslq	%r11d, %rsi
	addq	%r10, %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=4
	movb	$0, (%rsi,%rcx)
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=4
	incq	%rcx
	movslq	(%r14), %rdi
	cmpq	%rdi, %rcx
	jge	LBB0_18
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_11 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	testq	%r15, %r15
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=4
	movq	8(%r12), %rdi
	movslq	(%rdi,%r13,4), %rdx
	leal	1(%rdx), %ebx
	movl	%ebx, (%rdi,%r13,4)
	movzbl	(%r15,%rdx), %edx
	movb	%dl, (%rsi,%rcx)
	movq	8(%r12), %rdi
	cmpl	%eax, (%rdi,%r13,4)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=4
	movl	$0, (%rdi,%r13,4)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=3
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=3
	movq	16(%r12), %rcx
	addl	%edi, (%rcx,%r13,4)
	movl	(%r14), %edi
	jmp	LBB0_20
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNELS_PER_STREAM,4,2        ## @CHANNELS_PER_STREAM
	.comm	_BYTES_PER_SAMPLE,4,2           ## @BYTES_PER_SAMPLE
	.no_dead_strip	_fill_out_urb_mode_3
.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_3
_fill_out_urb_mode_3:                   ; @fill_out_urb_mode_3
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x2, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w22, #0
	ldr	x9, [x1]
	ldrsw	x10, [x2]
	add	x21, x9, x10
	ldr	w9, [x0]
Lloh0:
	adrp	x23, _CHANNELS_PER_STREAM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CHANNELS_PER_STREAM@GOTPAGEOFF]
Lloh2:
	adrp	x24, _BYTES_PER_SAMPLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BYTES_PER_SAMPLE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w8
	b.ge	LBB0_23
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	ldrsw	x9, [x20]
	cmp	x25, x9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;         Child Loop BB0_17 Depth 4
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x25, lsl #3]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [x8]
	ldr	x26, [x0]
	ldr	w1, [x0, #8]
	bl	_frames_to_bytes
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x26, #0
	mov	w0, #0
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	mov	w8, #0
	lsl	w9, w25, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=3
	sxtw	x10, w11
	add	x10, x10, w22, sxtw
	orr	w11, w8, w9
	add	w22, w10, #1
	strb	w11, [x21, x10]
	add	w8, w8, #1
	ldr	w10, [x23]
	cmp	w8, w10
	b.ge	LBB0_6
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_17 Depth 4
	ldr	w11, [x24]
	lsl	x10, x25, #2
	cmp	w11, #1
	b.lt	LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	mov	x11, #0
	add	x12, x21, w22, sxtw
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=4
	strb	wzr, [x12, x11]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=4
	add	x11, x11, #1
	ldrsw	x13, [x24]
	cmp	x11, x13
	b.ge	LBB0_20
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_13 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	cbz	x26, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=4
	ldr	x13, [x20, #8]
	ldrsw	x14, [x13, x10]
	add	w15, w14, #1
	str	w15, [x13, x10]
	ldrb	w13, [x26, x14]
	strb	w13, [x12, x11]
	ldr	x13, [x20, #8]
	ldr	w14, [x13, x10]
	cmp	w14, w0
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=4
	str	wzr, [x13, x25, lsl #2]
	b	LBB0_16
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=3
	mov	x11, x13
LBB0_21:                                ;   in Loop: Header=BB0_13 Depth=3
	cbz	x26, LBB0_12
; %bb.22:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x12, [x20, #16]
	ldr	w13, [x12, x10]
	add	w11, w13, w11
	str	w11, [x12, x10]
	ldr	w11, [x24]
	b	LBB0_12
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNELS_PER_STREAM,4,2        ; @CHANNELS_PER_STREAM
	.comm	_BYTES_PER_SAMPLE,4,2           ; @BYTES_PER_SAMPLE
	.no_dead_strip	_fill_out_urb_mode_3
.subsections_via_symbols
