	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usbmidi_out_urb_complete
_snd_usbmidi_out_urb_complete:          ## @snd_usbmidi_out_urb_complete
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	(%rbx), %r12
	leaq	16(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	subl	24(%r12), %ebx
	shrb	$3, %bl
	movl	$-2, %r13d
	movl	%ebx, %ecx
	roll	%cl, %r13d
	andl	%r13d, (%r12)
	movl	4(%r12), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	andl	%r13d, 4(%r12)
	leaq	20(%r12), %rdi
	callq	_wake_up
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	jns	LBB0_6
## %bb.3:
	callq	_snd_usbmidi_urb_error
	testl	%eax, %eax
	js	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_usbmidi_do_output          ## TAILCALL
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_5
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r12), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_ERROR_DELAY_JIFFIES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ERROR_DELAY_JIFFIES,8,3        ## @ERROR_DELAY_JIFFIES
	.no_dead_strip	_snd_usbmidi_out_urb_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usbmidi_out_urb_complete
_snd_usbmidi_out_urb_complete:          ; @snd_usbmidi_out_urb_complete
	.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, x0
	ldr	x22, [x0, #8]
	ldr	x19, [x22]
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #24]
	sub	x8, x22, x8
	lsr	x8, x8, #3
	mov	w9, #1
	lsl	w22, w9, w8
	ldp	w8, w0, [x19]
	bic	w8, w8, w22
	str	w8, [x19]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mvn	w8, w22
	ldr	w9, [x19, #4]
	and	w8, w9, w8
	str	w8, [x19, #4]
	add	x0, x19, #20
	bl	_wake_up
LBB0_2:
	mov	x0, x21
	bl	_spin_unlock
	ldr	x0, [x20]
	tbz	x0, #63, LBB0_4
; %bb.3:
	bl	_snd_usbmidi_urb_error
	tbnz	w0, #31, LBB0_5
LBB0_4:
	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	_snd_usbmidi_do_output
LBB0_5:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	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
LBB0_7:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ERROR_DELAY_JIFFIES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ERROR_DELAY_JIFFIES@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_mod_timer
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ERROR_DELAY_JIFFIES,8,3        ; @ERROR_DELAY_JIFFIES
	.no_dead_strip	_snd_usbmidi_out_urb_complete
.subsections_via_symbols
