	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpn
_rpn:                                   ## @rpn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rcx), %rax
	movq	_SNDRV_MIDI_MODE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.1:
	movq	(%rdx), %rsi
	movq	_MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi,%rax,4), %ecx
	shll	$8, %ecx
	movq	_MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	(%rsi,%rax,4), %ecx
	movq	_MIDI_CTL_MSB_DATA_ENTRY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rsi,%rax,4), %eax
	shll	$7, %eax
	movq	_MIDI_CTL_LSB_DATA_ENTRY@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	orl	(%rsi,%rdi,4), %eax
	cmpl	$2, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$1, %ecx
	je	LBB0_5
## %bb.3:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.4:
	movl	%eax, 8(%rdx)
	popq	%rbp
	retq
LBB0_6:
	addl	$-8192, %eax                    ## imm = 0xE000
	movl	%eax, 16(%rdx)
LBB0_7:
	popq	%rbp
	retq
LBB0_5:
	addl	$-8192, %eax                    ## imm = 0xE000
	movl	%eax, 12(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_MIDI_MODE_NONE,8,3       ## @SNDRV_MIDI_MODE_NONE
	.comm	_MIDI_CTL_REGIST_PARM_NUM_MSB,8,3 ## @MIDI_CTL_REGIST_PARM_NUM_MSB
	.comm	_MIDI_CTL_REGIST_PARM_NUM_LSB,8,3 ## @MIDI_CTL_REGIST_PARM_NUM_LSB
	.comm	_MIDI_CTL_MSB_DATA_ENTRY,8,3    ## @MIDI_CTL_MSB_DATA_ENTRY
	.comm	_MIDI_CTL_LSB_DATA_ENTRY,8,3    ## @MIDI_CTL_LSB_DATA_ENTRY
	.no_dead_strip	_rpn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpn
_rpn:                                   ; @rpn
	.cfi_startproc
; %bb.0:
	ldr	x8, [x3]
Lloh0:
	adrp	x9, _SNDRV_MIDI_MODE_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_MIDI_MODE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIDI_CTL_REGIST_PARM_NUM_MSB@GOTPAGEOFF]
	ldr	x10, [x2]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x10, x8, lsl #2]
Lloh6:
	adrp	x9, _MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIDI_CTL_REGIST_PARM_NUM_LSB@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x10, x9, lsl #2]
Lloh9:
	adrp	x11, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MIDI_CTL_MSB_DATA_ENTRY@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	ldr	w11, [x10, x11, lsl #2]
Lloh12:
	adrp	x12, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MIDI_CTL_LSB_DATA_ENTRY@GOTPAGEOFF]
	orr	w9, w9, w8, lsl #8
Lloh14:
	ldr	x8, [x12]
	ldr	w8, [x10, x8, lsl #2]
	orr	w8, w8, w11, lsl #7
	cmp	w9, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w9, LBB0_6
; %bb.4:
	str	w8, [x2, #8]
	ret
LBB0_5:
	sub	w8, w8, #2, lsl #12             ; =8192
	str	w8, [x2, #16]
LBB0_6:
	ret
LBB0_7:
	sub	w8, w8, #2, lsl #12             ; =8192
	str	w8, [x2, #12]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_MIDI_MODE_NONE,8,3       ; @SNDRV_MIDI_MODE_NONE
	.comm	_MIDI_CTL_REGIST_PARM_NUM_MSB,8,3 ; @MIDI_CTL_REGIST_PARM_NUM_MSB
	.comm	_MIDI_CTL_REGIST_PARM_NUM_LSB,8,3 ; @MIDI_CTL_REGIST_PARM_NUM_LSB
	.comm	_MIDI_CTL_MSB_DATA_ENTRY,8,3    ; @MIDI_CTL_MSB_DATA_ENTRY
	.comm	_MIDI_CTL_LSB_DATA_ENTRY,8,3    ; @MIDI_CTL_LSB_DATA_ENTRY
	.no_dead_strip	_rpn
.subsections_via_symbols
