	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_usbmidi_do_output
_snd_usbmidi_do_output:                 ## @snd_usbmidi_do_output
	.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, %r12
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r12), %rax
	cmpq	$0, 16(%rax)
	jne	LBB0_12
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	movl	4(%r12), %edx
	movq	_OUTPUT_URBS@GOTPCREL(%rip), %r15
	movl	%eax, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %r13d
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r14d
	movl	%r13d, %ecx
	shll	%cl, %r14d
	btl	%r13d, %edx
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rax
	movl	%r13d, %ecx
	movq	(%rax,%rcx,8), %rbx
	movq	$0, (%rbx)
	movq	16(%r12), %rax
	movq	8(%rax), %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*(%rax)
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dump_urb
	movq	16(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_usbmidi_submit_urb
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	orl	4(%r12), %r14d
	movl	%r14d, 4(%r12)
	movl	(%r12), %eax
	movl	%r14d, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	cmpl	(%r15), %r13d
	jb	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_10:
	movl	%r13d, %eax
LBB0_11:
	movl	%eax, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_OUTPUT_URBS,4,2                ## @OUTPUT_URBS
	.no_dead_strip	_snd_usbmidi_do_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_usbmidi_do_output
_snd_usbmidi_do_output:                 ; @snd_usbmidi_do_output
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_9
; %bb.1:
	ldp	w8, w9, [x20]
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	w23, #1
Lloh2:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	adrp	x25, _OUTPUT_URBS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _OUTPUT_URBS@GOTPAGEOFF]
	mov	x26, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w26, #1
	ldr	w11, [x25]
	cmp	w10, w11
	csinc	w26, wzr, w26, hs
	cmp	w26, w8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w27, w23, w26
	tst	w9, w27
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20, #16]
	ldr	x22, [x8, w26, uxtw #3]
	str	xzr, [x22]
	ldr	x8, [x9, #8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	ldr	x2, [x22]
	cbz	x2, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22, #12]
	mov	x0, x21
	bl	_dump_urb
	ldr	x8, [x20, #16]
	ldr	w8, [x8]
	str	w8, [x22, #8]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_snd_usbmidi_submit_urb
	tbnz	x0, #63, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w8, w9, [x20]
	orr	w9, w9, w27
	str	w9, [x20, #4]
	b	LBB0_2
LBB0_7:
	mov	x8, x26
LBB0_8:
	str	w8, [x20]
LBB0_9:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_OUTPUT_URBS,4,2                ; @OUTPUT_URBS
	.no_dead_strip	_snd_usbmidi_do_output
.subsections_via_symbols
