	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rawmidi_poll
_snd_rawmidi_poll:                      ## @snd_rawmidi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %r15
	movl	$1, %esi
	callq	_snd_rawmidi_input_trigger
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_poll_wait
LBB0_2:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_poll_wait
LBB0_4:
	movq	8(%r12), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	callq	_snd_rawmidi_ready
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_7:
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.8:
	callq	_snd_rawmidi_ready
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.no_dead_strip	_snd_rawmidi_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rawmidi_poll
_snd_rawmidi_poll:                      ; @snd_rawmidi_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, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x21, [x0]
	mov	w1, #1
	bl	_snd_rawmidi_input_trigger
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_poll_wait
LBB0_2:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_poll_wait
LBB0_4:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_snd_rawmidi_ready
	cbz	x0, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _POLLIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w19, w9, w8
	ldr	x0, [x22]
	cbnz	x0, LBB0_8
	b	LBB0_10
LBB0_7:
	mov	w19, #0
	ldr	x0, [x22]
	cbz	x0, LBB0_10
LBB0_8:
	bl	_snd_rawmidi_ready
	cbz	x0, LBB0_10
; %bb.9:
Lloh6:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.no_dead_strip	_snd_rawmidi_poll
.subsections_via_symbols
