	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_midi_input_event
_snd_midi_input_event:                  ## @snd_midi_input_event
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	testq	%r15, %r15
	je	LBB0_13
## %bb.2:
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jle	LBB0_13
## %bb.3:
	leaq	-96(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jle	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_snd_rawmidi_kernel_read
	testq	%rax, %rax
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_snd_midi_event_encode
	testq	%rax, %rax
	js	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	leaq	-64(%rbp), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	subq	%r14, %r13
	movq	-96(%rbp), %rax
	movq	_SNDRV_SEQ_EVENT_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	4(%r15), %eax
	movl	%eax, -84(%rbp)
	movq	_SNDRV_SEQ_ADDRESS_SUBSCRIBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_snd_seq_kernel_client_dispatch
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	testq	%r13, %r13
	jle	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	addq	%r14, %rbx
	movq	8(%r15), %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_snd_midi_event_encode
	movq	%rax, %r14
	testq	%rax, %rax
	jns	LBB0_8
	jmp	LBB0_12
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_SEQ_EVENT_NONE,8,3       ## @SNDRV_SEQ_EVENT_NONE
	.comm	_SNDRV_SEQ_ADDRESS_SUBSCRIBERS,4,2 ## @SNDRV_SEQ_ADDRESS_SUBSCRIBERS
	.no_dead_strip	_snd_midi_input_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_midi_input_event
_snd_midi_input_event:                  ; @snd_midi_input_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0]
	ldr	x24, [x23, #8]
	cbz	x24, LBB0_13
; %bb.2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.3:
Lloh3:
	adrp	x25, _SNDRV_SEQ_EVENT_NONE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SNDRV_SEQ_EVENT_NONE@GOTPAGEOFF]
Lloh5:
	adrp	x26, _SNDRV_SEQ_ADDRESS_SUBSCRIBERS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SNDRV_SEQ_ADDRESS_SUBSCRIBERS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cmp	x8, #0
	b.le	LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #16
	bl	_snd_rawmidi_kernel_read
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	ldr	x0, [x24, #8]
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #24
	add	x3, sp, #8
	mov	x2, x20
	bl	_snd_midi_event_encode
	tbnz	x0, #63, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	add	x21, sp, #24
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x20, x20, x22
	ldr	x8, [sp, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w8, [x24, #4]
	ldr	w9, [x26]
	stp	w9, w8, [sp, #16]
	ldr	w0, [x24]
	add	x1, sp, #8
	mov	w2, #1
	mov	w3, #0
	bl	_snd_seq_kernel_client_dispatch
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	cmp	x20, #1
	b.lt	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	add	x21, x21, x22
	ldr	x0, [x24, #8]
	add	x3, sp, #8
	mov	x1, x21
	mov	x2, x20
	bl	_snd_midi_event_encode
	mov	x22, x0
	tbz	x0, #63, LBB0_9
	b	LBB0_4
LBB0_13:
	ldr	x8, [sp, #40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_SEQ_EVENT_NONE,8,3       ; @SNDRV_SEQ_EVENT_NONE
	.comm	_SNDRV_SEQ_ADDRESS_SUBSCRIBERS,4,2 ; @SNDRV_SEQ_ADDRESS_SUBSCRIBERS
	.no_dead_strip	_snd_midi_input_event
.subsections_via_symbols
