	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_playback_urb
_prepare_playback_urb:                  ## @prepare_playback_urb
	.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	%rdi, %r14
	movq	32(%rdi), %rax
	movq	48(%rdi), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %r13
	movl	(%rax), %eax
	sarl	$3, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rsi)
	leaq	40(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r13)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, (%r14)
	movq	8(%r14), %rdi
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_UAC_FORMAT_TYPE_II@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	je	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	48(%r14), %rdi
	callq	_snd_usb_endpoint_implict_feedback_sink
	testl	%eax, %eax
	je	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	movl	%ebx, %r12d
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_usb_endpoint_next_packet_size
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%rax,%r12), %ebx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	imull	%esi, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	24(%rdi), %rcx
	movl	%r12d, (%rcx,%r15,8)
	movl	%eax, %edx
	imull	%esi, %edx
	movl	%edx, 4(%rcx,%r15,8)
	movq	16(%rdi), %r8
	leaq	1(%r8), %rsi
	movq	%rsi, 16(%rdi)
	movl	%eax, %esi
	addq	(%r14), %rsi
	movq	%rsi, (%r14)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	subq	8(%rdi), %rsi
	jge	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_15:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_7:
	testq	%rsi, %rsi
	jle	LBB0_9
## %bb.8:
	subl	%esi, %ebx
	subl	%esi, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 4(%rcx,%r15,8)
	movq	$0, (%r14)
LBB0_9:
	leal	1(%r15), %eax
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	(%r13), %eax
	jge	LBB0_16
## %bb.10:
	movl	%ebx, %eax
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, 8(%rcx,%r15,8)
	movl	$0, 12(%rcx,%r15,8)
	addq	$2, %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r8, 16(%rax)
LBB0_16:
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ebx killed $ebx def $rbx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %ebx
	movl	16(%r14), %esi
	leal	(%rsi,%rbx), %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	16(%r12), %r13d
	imull	%ecx, %r13d
	cmpl	%r13d, %eax
	jbe	LBB0_18
## %bb.17:
	subl	%esi, %r13d
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	addq	24(%r12), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	movq	%r15, %rbx
	addq	%r13, %rdi
	movq	24(%r12), %rsi
	movl	%ebx, %edx
	subl	%r13d, %edx
	jmp	LBB0_19
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	24(%r12), %rsi
	movl	%ebx, %edx
LBB0_19:
	callq	_memcpy
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	16(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, 16(%r14)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	imull	16(%r12), %ecx
	subl	%ecx, %eax
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	jb	LBB0_21
## %bb.20:
	movl	%eax, 16(%r14)
LBB0_21:
	addl	20(%r14), %ecx
	movl	%ecx, 20(%r12)
	movl	%ecx, 20(%r14)
	movl	44(%r14), %edi
	callq	_usb_get_current_frame_number
	movzbl	%al, %eax
	movl	%eax, 24(%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.23:
	movq	32(%r14), %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_period_elapsed         ## TAILCALL
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UAC_FORMAT_TYPE_II,8,3         ## @UAC_FORMAT_TYPE_II
	.no_dead_strip	_prepare_playback_urb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_playback_urb
_prepare_playback_urb:                  ; @prepare_playback_urb
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x24, [x8]
	ldr	x22, [x0, #48]
	ldr	x23, [x1, #32]
	ldr	w8, [x24]
	asr	w25, w8, #3
	str	xzr, [x1, #16]
	add	x0, x0, #40
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x28, #0
	mov	x21, #0
	mov	w27, #0
	mov	w26, #0
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w27, LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #48]
	bl	_snd_usb_endpoint_implict_feedback_sink
	cbz	w0, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	x28, x28, #8
	cmp	x21, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	w0, [x8, x21, lsl #2]
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_snd_usb_endpoint_next_packet_size
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mul	w10, w26, w25
	ldp	x9, x8, [x20, #16]
	add	x11, x8, x28
	mul	w12, w0, w25
	stp	w10, w12, [x11]
	add	w26, w0, w26
	add	x10, x9, #1
	str	x10, [x20, #16]
	ldr	x10, [x19]
	add	x10, x10, w0, uxtw
	str	x10, [x19]
	ldr	x11, [x24, #8]
	subs	x10, x10, x11
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x10, [x19]
	ldr	x11, [x19, #8]
Lloh0:
	adrp	x12, _UAC_FORMAT_TYPE_II@GOTPAGE
Lloh1:
	ldr	x12, [x12, _UAC_FORMAT_TYPE_II@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x11, x12
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #1
	b	LBB0_3
LBB0_10:
	mov	w26, #0
	mov	w27, #0
	b	LBB0_16
LBB0_11:
	cmp	x10, #1
	b.lt	LBB0_13
; %bb.12:
	add	x11, x8, x28
	sub	w26, w26, w10
	sub	w10, w0, w10
	mul	w10, w10, w25
	str	w10, [x11, #4]
	str	xzr, [x19]
LBB0_13:
	add	w10, w21, #1
	ldr	w11, [x23]
	cmp	w10, w11
	b.ge	LBB0_15
; %bb.14:
	mul	w10, w26, w25
	add	x8, x8, x28
	stp	w10, wzr, [x8, #8]
	add	x8, x9, #2
	str	x8, [x20, #16]
LBB0_15:
	mov	w27, #1
LBB0_16:
	mul	w22, w26, w25
	ldr	w8, [x19, #16]
	ldr	w9, [x24, #16]
	mul	w9, w9, w25
	add	w10, w8, w22
	cmp	w10, w9
	b.ls	LBB0_18
; %bb.17:
	sub	w23, w9, w8
	ldr	x0, [x20, #8]
	ldr	x9, [x24, #24]
	add	x1, x9, x8
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	ldr	x1, [x24, #24]
	sub	w2, w22, w23
	b	LBB0_19
LBB0_18:
	ldr	x0, [x20, #8]
	ldr	x9, [x24, #24]
	add	x1, x9, x8
	mov	x2, x22
LBB0_19:
	bl	_memcpy
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x19, #16]
	ldr	w9, [x24, #16]
	mul	w9, w9, w25
	add	w10, w8, w22
	subs	w8, w10, w9
	str	w10, [x19, #16]
	b.lo	LBB0_21
; %bb.20:
	str	w8, [x19, #16]
LBB0_21:
	ldr	w8, [x19, #20]
	add	w8, w8, w26
	str	w8, [x24, #20]
	str	w8, [x19, #20]
	ldr	w0, [x19, #44]
	bl	_usb_get_current_frame_number
	and	w8, w0, #0xff
	str	w8, [x19, #24]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	str	w22, [x20]
	cbz	w27, LBB0_23
; %bb.22:
	ldr	x0, [x19, #32]
	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
	b	_snd_pcm_period_elapsed
LBB0_23:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UAC_FORMAT_TYPE_II,8,3         ; @UAC_FORMAT_TYPE_II
	.no_dead_strip	_prepare_playback_urb
.subsections_via_symbols
