	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmidi_handle_report1
_pcmidi_handle_report1:                 ## @pcmidi_handle_report1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rsi), %eax
	movl	8(%rsi), %ebx
	shll	$16, %eax
	shll	$8, %ebx
	orl	%eax, %ebx
	orl	12(%rsi), %ebx
	movq	8(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dbg_hid
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpl	$16384, %ebx                    ## imm = 0x4000
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %eax
	leal	-1(%rax), %ecx
	cmpl	$-1, %eax
	movl	$-2, %edx
	cmovgel	%ecx, %edx
	movl	%edx, (%r15)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dbg_hid
	jmp	LBB0_6
LBB0_3:
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	cmpl	$4, %ebx
	jne	LBB0_7
## %bb.5:
	xorb	$1, 4(%r15)
LBB0_6:
	movl	$1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcmidi mode: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"pcmidi mode: %d octave: %d\n"

	.no_dead_strip	_pcmidi_handle_report1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmidi_handle_report1
_pcmidi_handle_report1:                 ; @pcmidi_handle_report1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldp	w8, w9, [x1, #4]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	ldr	w9, [x1, #12]
	orr	w20, w8, w9
	ldr	x1, [x0, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_3
; %bb.1:
	cmp	w20, #4, lsl #12                ; =16384
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	sub	w9, w8, #1
	cmn	w8, #2
	mov	w8, #-2
	csel	w8, w9, w8, gt
	str	w8, [x19]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg_hid
	b	LBB0_6
LBB0_3:
	cmp	x1, #0
	ccmp	w20, #4, #0, ne
	b.eq	LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldr	w8, [x19, #4]
	eor	w8, w8, #0x1
	str	w8, [x19, #4]
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcmidi mode: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"pcmidi mode: %d octave: %d\n"

	.no_dead_strip	_pcmidi_handle_report1
.subsections_via_symbols
