	.file	"extr_qmk_midi.c_usb_send_func.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usb_send_func, @function
usb_send_func:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edi, edx
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR [rsp], edx
	mov	DWORD PTR 4[rsp], ecx
	mov	DWORD PTR 8[rsp], r8d
	call	midi_packet_length@PLT
	cmp	rax, QWORD PTR UNDEFINED[rip]
	je	.L14
	mov	eax, ebp
	and	eax, 240
	add	eax, -128
	cmp	eax, 1
	jbe	.L15
	mov	esi, ebp
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
.L8:
	mov	rdi, rsp
	call	send_midi_packet@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR SYS_COMMON_2[rip]
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	r13d, 2
	je	.L3
	cmp	r13d, 3
	je	.L4
	cmp	r13d, 1
	jne	.L1
	cmp	DWORD PTR SYSEX_END[rip], ebp
	je	.L17
.L7:
	mov	esi, DWORD PTR SYSEX_START_OR_CONT[rip]
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	DWORD PTR SYSEX_END[rip], r12d
	jne	.L7
	mov	esi, DWORD PTR SYSEX_ENDS_IN_3[rip]
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	DWORD PTR SYSEX_END[rip], ebx
	jne	.L7
	mov	esi, DWORD PTR SYSEX_ENDS_IN_2[rip]
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR SYSEX_ENDS_IN_1[rip]
	xor	edi, edi
	call	MIDI_EVENT@PLT
	mov	QWORD PTR 16[rsp], rax
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	usb_send_func, .-usb_send_func
	.comm	UNDEFINED,8,8
	.comm	SYS_COMMON_3,4,4
	.comm	SYS_COMMON_2,4,4
	.comm	SYSEX_START_OR_CONT,4,4
	.comm	SYSEX_ENDS_IN_3,4,4
	.comm	SYSEX_ENDS_IN_2,4,4
	.comm	SYSEX_ENDS_IN_1,4,4
	.comm	SYSEX_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_qmk_midi.c_usb_send_func.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_send_func, %function
usb_send_func:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #28
	stmib	sp, {r2, r3}
	ldr	r7, [sp, #48]
	mov	r5, r3
	ldr	r3, .L17
	mov	r0, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r4, r2
	mov	r6, r1
	str	r7, [sp, #12]
	bl	midi_packet_length
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L14
	and	r3, r4, #240
	sub	r3, r3, #128
	cmp	r3, #1
	ldrls	r3, .L17+8
	movls	r0, #0
	movhi	r1, r4
	movhi	r0, #0
	ldrls	r1, [r3]
	bl	MIDI_EVENT
	str	r0, [sp, #16]
.L8:
	add	r0, sp, #4
	bl	send_midi_packet
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	cmp	r6, #2
	beq	.L3
	cmp	r6, #3
	beq	.L4
	cmp	r6, #1
	bne	.L1
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L16
.L7:
	ldr	r3, .L17+16
	mov	r0, #0
	ldr	r1, [r3]
	bl	MIDI_EVENT
	str	r0, [sp, #16]
	b	.L8
.L4:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L7
	ldr	r3, .L17+20
	mov	r0, #0
	ldr	r1, [r3]
	bl	MIDI_EVENT
	str	r0, [sp, #16]
	b	.L8
.L3:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	cmp	r3, r5
	bne	.L7
	ldr	r3, .L17+24
	mov	r0, #0
	ldr	r1, [r3]
	bl	MIDI_EVENT
	str	r0, [sp, #16]
	b	.L8
.L16:
	ldr	r3, .L17+28
	mov	r0, #0
	ldr	r1, [r3]
	bl	MIDI_EVENT
	str	r0, [sp, #16]
	b	.L8
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	UNDEFINED
	.word	SYS_COMMON_2
	.word	SYSEX_END
	.word	SYSEX_START_OR_CONT
	.word	SYSEX_ENDS_IN_3
	.word	SYSEX_ENDS_IN_2
	.word	SYSEX_ENDS_IN_1
	.size	usb_send_func, .-usb_send_func
	.comm	UNDEFINED,4,4
	.comm	SYS_COMMON_3,4,4
	.comm	SYS_COMMON_2,4,4
	.comm	SYSEX_START_OR_CONT,4,4
	.comm	SYSEX_ENDS_IN_3,4,4
	.comm	SYSEX_ENDS_IN_2,4,4
	.comm	SYSEX_ENDS_IN_1,4,4
	.comm	SYSEX_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
