	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sscape_coproc_open
_sscape_coproc_open:                    ## @sscape_coproc_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_COPR_MIDI@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_devc@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_set_mt32
	movl	(%r14), %edi
	callq	_verify_mpu
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COPR_MIDI,4,2                  ## @COPR_MIDI
	.comm	_devc,4,2                       ## @devc
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sscape_coproc_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sscape_coproc_open
_sscape_coproc_open:                    ; @sscape_coproc_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _COPR_MIDI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COPR_MIDI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _devc@GOTPAGE
Lloh4:
	ldr	x19, [x19, _devc@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #0
	bl	_set_mt32
	ldr	w0, [x19]
	bl	_verify_mpu
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_COPR_MIDI,4,2                  ; @COPR_MIDI
	.comm	_devc,4,2                       ; @devc
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sscape_coproc_open
.subsections_via_symbols
