	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_usb_handle_sync_urb        ## -- Begin function snd_usb_handle_sync_urb
	.p2align	4, 0x90
_snd_usb_handle_sync_urb:               ## @snd_usb_handle_sync_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpq	%rsi, %r12
	sete	%dil
	callq	_snd_BUG_ON
	movq	%r12, %rdi
	callq	_snd_usb_endpoint_implict_feedback_sink
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	cmpq	$0, (%r12)
	je	LBB0_22
## %bb.2:
	movq	16(%r14), %rbx
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_40
## %bb.3:
	movq	(%r14), %r8
	cmpl	$1, %ecx
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%esi, %esi
LBB0_11:
	testb	$1, %cl
	je	LBB0_14
## %bb.12:
	shlq	$4, %rdx
	cmpq	$0, (%r8,%rdx)
	jne	LBB0_14
## %bb.13:
	addl	8(%r8,%rdx), %esi
LBB0_14:
	testl	%esi, %esi
	je	LBB0_40
## %bb.15:
	leaq	32(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	40(%r12), %rdx
	movl	8(%r12), %eax
	movslq	%eax, %rsi
	movl	(%rbx), %ecx
	shlq	$4, %rsi
	movl	%ecx, (%rdx,%rsi)
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.16:
	movq	(%r14), %rcx
	movq	8(%rdx,%rsi), %rsi
	addq	$8, %rcx
	xorl	%edi, %edi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%rbx), %rax
	addq	$16, %rcx
	cmpq	%rax, %rdi
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rcx)
	movl	$0, %eax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rcx), %eax
	cltd
	idivl	12(%r12)
	jmp	LBB0_19
LBB0_22:
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_40
## %bb.23:
	cmpl	$3, 8(%rax)
	jl	LBB0_40
## %bb.24:
	movl	8(%r14), %edi
	callq	_le32_to_cpup
	movq	(%r14), %rcx
	cmpl	$3, 8(%rcx)
	movl	$16777215, %ecx                 ## imm = 0xFFFFFF
	movl	$268435455, %ebx                ## imm = 0xFFFFFFF
	cmovel	%ecx, %ebx
	andl	%eax, %ebx
	je	LBB0_40
## %bb.25:
	movl	16(%r12), %eax
	movq	_INT_MIN@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpl	(%r14), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_33
## %bb.26:
	movl	20(%r12), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	movl	%ecx, %edx
	subl	%eax, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ebx
	jae	LBB0_29
## %bb.27:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	addl	%ebx, %ebx
	incl	%eax
	cmpl	%edx, %ebx
	jb	LBB0_28
LBB0_29:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%ecx, %edx
	cmpl	%edx, %ebx
	jbe	LBB0_32
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	shrl	%ebx
	decl	%eax
	cmpl	%edx, %ebx
	ja	LBB0_30
LBB0_32:
	movl	%eax, 16(%r12)
	jmp	LBB0_36
LBB0_5:
	movl	%ecx, %edi
	andl	$-2, %edi
	leaq	24(%r8), %rax
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdx
	addq	$32, %rax
	cmpq	%rdx, %rdi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -24(%rax)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -8(%rax)
	jne	LBB0_10
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	-16(%rax), %esi
	cmpq	$0, -8(%rax)
	jne	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addl	(%rax), %esi
	jmp	LBB0_10
LBB0_20:
	movl	8(%r12), %eax
LBB0_21:
	incl	%eax
	movq	_MAX_URBS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, 8(%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_pending_output_urbs      ## TAILCALL
LBB0_33:
	movl	16(%r12), %ecx
	testl	%ecx, %ecx
	js	LBB0_35
## %bb.34:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	jmp	LBB0_36
LBB0_35:
	negb	%cl
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %ebx
LBB0_36:
	movl	20(%r12), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	subl	%ecx, %eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	jb	LBB0_38
## %bb.37:
	xorl	%edi, %edi
	cmpl	24(%r12), %ebx
	setbe	%dil
LBB0_38:
	callq	_likely
	testq	%rax, %rax
	je	LBB0_39
## %bb.41:
	leaq	32(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%ebx, 28(%r12)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_39:
	movl	(%r14), %eax
	movl	%eax, 16(%r12)
LBB0_40:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_URBS,4,2                   ## @MAX_URBS
	.comm	_INT_MIN,4,2                    ## @INT_MIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_usb_handle_sync_urb        ; -- Begin function snd_usb_handle_sync_urb
	.p2align	2
_snd_usb_handle_sync_urb:               ; @snd_usb_handle_sync_urb
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
	cmp	x0, x1
	cset	w0, eq
	bl	_snd_BUG_ON
	mov	x0, x19
	bl	_snd_usb_endpoint_implict_feedback_sink
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x22, [x20, #16]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.3:
	mov	w9, #0
	ldr	x10, [x20]
	add	x10, x10, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #16
	subs	x8, x8, #1
	b.eq	LBB0_14
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cbnz	x11, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x10]
	add	w9, w11, w9
	b	LBB0_4
LBB0_7:
	ldr	x8, [x20]
	ldr	x9, [x8]
	cbnz	x9, LBB0_33
; %bb.8:
	ldr	w8, [x8, #8]
	cmp	w8, #3
	b.lt	LBB0_33
; %bb.9:
	ldr	w0, [x20, #8]
	bl	_le32_to_cpup
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	mov	w9, #268435455
	mov	w10, #16777215
	cmp	w8, #3
	csel	w8, w10, w9, eq
	ands	w21, w8, w0
	b.eq	LBB0_33
; %bb.10:
	ldr	w8, [x19, #16]
Lloh0:
	adrp	x20, _INT_MIN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MIN@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_23
; %bb.11:
	ldr	w9, [x19, #20]
	add	w8, w9, #3
	cmp	w9, #0
	csel	w8, w8, w9, lt
	sub	w10, w9, w8, asr #2
	cmp	w21, w10
	b.hs	LBB0_24
; %bb.12:
	mov	w8, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	w21, w21, #1
	add	w8, w8, #1
	cmp	w21, w10
	b.lo	LBB0_13
	b	LBB0_25
LBB0_14:
	cbz	w9, LBB0_33
; %bb.15:
	add	x21, x19, #32
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x10, [x19, #40]
	ldr	w9, [x19, #8]
	ldr	w8, [x22]
	sbfiz	x11, x9, #4, #32
	str	w8, [x10, x11]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.16:
	mov	x8, #0
	sxtw	x9, w9
	ldr	x11, [x20]
	add	x9, x10, x9, lsl #4
	ldr	x9, [x9, #8]
	add	x10, x11, #8
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w11, [x10]
	ldr	w12, [x19, #12]
	sdiv	w11, w11, w12
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	str	w11, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x22]
	add	x10, x10, #16
	cmp	x8, x11
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cbz	x11, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w11, #0
	b	LBB0_18
LBB0_21:
	ldr	w9, [x19, #8]
LBB0_22:
	add	w8, w9, #1
Lloh2:
	adrp	x9, _MAX_URBS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_URBS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_pending_output_urbs
LBB0_23:
	ldr	w8, [x19, #16]
	neg	w9, w8
	lsr	w9, w21, w9
	lsl	w10, w21, w8
	tst	w8, #0x80000000
	csel	w21, w9, w10, ne
	b	LBB0_28
LBB0_24:
	mov	w8, #0
LBB0_25:
	cmp	w9, #0
	cinc	w10, w9, lt
	add	w9, w9, w10, asr #1
	cmp	w21, w9
	b.ls	LBB0_27
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	lsr	w21, w21, #1
	sub	w8, w8, #1
	cmp	w21, w9
	b.hi	LBB0_26
LBB0_27:
	str	w8, [x19, #16]
LBB0_28:
	ldr	w8, [x19, #20]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	sub	w8, w8, w9, asr #3
	cmp	w21, w8
	b.hs	LBB0_31
; %bb.29:
	mov	w0, #0
	bl	_likely
	cbz	x0, LBB0_32
LBB0_30:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	w21, [x19, #28]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_31:
	ldr	w8, [x19, #24]
	cmp	w21, w8
	cset	w0, ls
	bl	_likely
	cbnz	x0, LBB0_30
LBB0_32:
	ldr	w8, [x20]
	str	w8, [x19, #16]
LBB0_33:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_URBS,4,2                   ; @MAX_URBS
	.comm	_INT_MIN,4,2                    ; @INT_MIN
.subsections_via_symbols
