	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_ep1_command_reply_dispatch
_usb_ep1_command_reply_dispatch:        ## @usb_ep1_command_reply_dispatch
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_14
## %bb.2:
	movq	(%rbx), %r14
	movb	(%r14), %al
	addb	$-128, %al
	cmpb	$5, %al
	ja	LBB0_12
## %bb.3:
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	32(%r15), %r12d
	movq	_USB_VID_NATIVEINSTRUMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_USB_PID_AUDIO8DJ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_USB_ID
	cmpl	%eax, %r12d
	jne	LBB0_12
## %bb.8:
	movl	8(%rbx), %edx
	cmpl	$9, %edx
	jb	LBB0_10
## %bb.9:
	movl	$8, 8(%rbx)
	movl	$8, %edx
LBB0_10:
	movq	24(%r15), %rdi
	incq	%r14
	movq	%r14, %rsi
	callq	_memcpy
	jmp	LBB0_11
LBB0_14:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log                            ## TAILCALL
LBB0_4:
	leaq	40(%r15), %rdi
	incq	%r14
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	60(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 60(%r15)
	movl	56(%r15), %edx
	movl	52(%r15), %ecx
	movl	48(%r15), %r8d
	movl	40(%r15), %esi
	movl	44(%r15), %r9d
	movl	%esi, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_debug
	incl	36(%r15)
	jmp	LBB0_11
LBB0_6:
	movzbl	1(%r14), %esi
	movzbl	2(%r14), %ecx
	addq	$3, %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_snd_usb_caiaq_midi_handle_input
	jmp	LBB0_12
LBB0_5:
	movb	1(%r14), %al
	movb	%al, (%r15)
LBB0_11:
	leaq	16(%r15), %rdi
	callq	_wake_up
LBB0_12:
	movq	$0, 8(%r15)
	addq	$8, %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log                            ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received EP1 urb->status = %i\n"

L_.str.1:                               ## @.str.1
	.asciz	"device spec (firmware %d): audio: %d in, %d out, MIDI: %d in, %d out, data alignment %d\n"

	.comm	_USB_VID_NATIVEINSTRUMENTS,4,2  ## @USB_VID_NATIVEINSTRUMENTS
	.comm	_USB_PID_AUDIO8DJ,4,2           ## @USB_PID_AUDIO8DJ
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"unable to submit urb. OOM!?\n"

	.no_dead_strip	_usb_ep1_command_reply_dispatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_ep1_command_reply_dispatch
_usb_ep1_command_reply_dispatch:        ; @usb_ep1_command_reply_dispatch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	x8, x19, [x0, #16]
	cmp	x8, #0
	ccmp	x19, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log
	b	LBB0_14
LBB0_2:
	mov	x20, x0
	ldr	x21, [x0]
	ldrb	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.3:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w22, [x19, #32]
Lloh4:
	adrp	x8, _USB_VID_NATIVEINSTRUMENTS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_VID_NATIVEINSTRUMENTS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _USB_PID_AUDIO8DJ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_PID_AUDIO8DJ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_USB_ID
	cmp	w22, w0
	b.ne	LBB0_13
; %bb.5:
	ldr	w2, [x20, #8]
	cmp	w2, #9
	b.lo	LBB0_7
; %bb.6:
	mov	w2, #8
	str	w2, [x20, #8]
LBB0_7:
	ldr	x0, [x19, #24]
	add	x1, x21, #1
	bl	_memcpy
	b	LBB0_9
LBB0_8:
	add	x0, x19, #40
	add	x1, x21, #1
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19, #60]
	bl	_le16_to_cpu
	mov	x1, x0
	str	w0, [x19, #60]
	ldp	w3, w2, [x19, #52]
	ldp	w5, w4, [x19, #44]
	ldr	w6, [x19, #40]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_debug
	ldr	w8, [x19, #36]
	add	w8, w8, #1
	str	w8, [x19, #36]
LBB0_9:
	add	x0, x19, #16
	b	LBB0_12
LBB0_10:
	ldrb	w1, [x21, #1]
	add	x2, x21, #3
	ldrb	w3, [x21, #2]
	mov	x0, x19
	bl	_snd_usb_caiaq_midi_handle_input
	b	LBB0_13
LBB0_11:
	ldrb	w8, [x21, #1]
	mov	x0, x19
	strb	w8, [x0], #16
LBB0_12:
	bl	_wake_up
LBB0_13:
	str	xzr, [x19, #8]!
Lloh12:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	tbnz	w0, #31, LBB0_15
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_log
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received EP1 urb->status = %i\n"

l_.str.1:                               ; @.str.1
	.asciz	"device spec (firmware %d): audio: %d in, %d out, MIDI: %d in, %d out, data alignment %d\n"

	.comm	_USB_VID_NATIVEINSTRUMENTS,4,2  ; @USB_VID_NATIVEINSTRUMENTS
	.comm	_USB_PID_AUDIO8DJ,4,2           ; @USB_PID_AUDIO8DJ
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"unable to submit urb. OOM!?\n"

	.no_dead_strip	_usb_ep1_command_reply_dispatch
.subsections_via_symbols
