	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MIDIbuf_poll                   ## -- Begin function MIDIbuf_poll
	.p2align	4, 0x90
_MIDIbuf_poll:                          ## @MIDIbuf_poll
	.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	%rdx, %r14
	movq	%rsi, %r15
	sarl	$4, %edi
	movq	_input_sleeper@GOTPCREL(%rip), %rax
	movslq	%edi, %r12
	leaq	(,%r12,4), %r13
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_poll_wait
	movq	_midi_in_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	callq	_DATA_AVAIL
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %ebx
	movq	_midi_sleeper@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
	movq	_midi_out_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	callq	_SPACE_AVAIL
	movq	_POLLOUT@GOTPCREL(%rip), %rdx
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%eax, %eax
	movl	$0, %eax
	cmovnel	%eax, %ecx
	orl	%ebx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_input_sleeper,8,3              ## @input_sleeper
	.comm	_midi_in_buf,8,3                ## @midi_in_buf
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_midi_sleeper,8,3               ## @midi_sleeper
	.comm	_midi_out_buf,8,3               ## @midi_out_buf
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MIDIbuf_poll                   ; -- Begin function MIDIbuf_poll
	.p2align	2
_MIDIbuf_poll:                          ; @MIDIbuf_poll
	.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	x19, x2
	mov	x20, x1
	asr	w8, w0, #4
Lloh0:
	adrp	x9, _input_sleeper@GOTPAGE
Lloh1:
	ldr	x9, [x9, _input_sleeper@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sbfiz	x21, x8, #2, #32
	add	x1, x9, x21
	mov	x0, x20
	bl	_poll_wait
Lloh3:
	adrp	x8, _midi_in_buf@GOTPAGE
Lloh4:
	ldr	x8, [x8, _midi_in_buf@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_DATA_AVAIL
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	x0, #0
	csel	w22, wzr, w8, eq
Lloh12:
	adrp	x8, _midi_sleeper@GOTPAGE
Lloh13:
	ldr	x8, [x8, _midi_sleeper@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
Lloh15:
	adrp	x8, _midi_out_buf@GOTPAGE
Lloh16:
	ldr	x8, [x8, _midi_out_buf@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	w0, [x8, x21]
	bl	_SPACE_AVAIL
Lloh18:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	orr	w0, w8, w22
	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 AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_input_sleeper,8,3              ; @input_sleeper
	.comm	_midi_in_buf,8,3                ; @midi_in_buf
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_midi_sleeper,8,3               ; @midi_sleeper
	.comm	_midi_out_buf,8,3               ; @midi_out_buf
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
.subsections_via_symbols
