	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function control_put
_control_put:                           ## @control_put
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movl	(%rax), %edi
	callq	_caiaqdev
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movq	_EP1_CMD_WRITE_IO@GOTPCREL(%rip), %rax
	movq	16(%r14), %r15
	movq	_USB_VID_NATIVEINSTRUMENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_USB_PID_TRAKTORKONTROLX1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	(%rax), %r13d
	callq	_USB_ID
	cmpq	%rax, %r15
	movq	_EP1_CMD_DIMM_LEDS@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r15d
	cmovnel	%r13d, %r15d
	movq	_CNT_INTVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.1:
	notl	%eax
	andl	%eax, %ebx
	movq	(%r14), %rax
	movslq	%ebx, %rcx
	movl	%r12d, (%rax,%rcx,4)
	movq	16(%r14), %r13
	movq	_USB_VID_NATIVEINSTRUMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_USB_PID_TRAKTORKONTROLS4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_USB_ID
	cmpq	%rax, %r13
	jne	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movl	%ebx, (%rax)
	movl	%r12d, 4(%rax)
	movl	24(%r14), %ebx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_usb_sndbulkpipe
	movq	8(%r14), %rdx
	leaq	-44(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$8, %ecx
	movl	$200, %r9d
	callq	_usb_bulk_msg
	jmp	LBB0_8
LBB0_4:
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rdx
	leal	7(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	orl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_7
LBB0_3:
	movq	(%r14), %rdx
	jmp	LBB0_7
LBB0_6:
	notl	%eax
	movq	(%r14), %rdx
	leal	7(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rcx
	andl	%eax, (%rdx,%rcx,4)
LBB0_7:
	movzbl	%r15b, %esi
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_snd_usb_caiaq_send_command
LBB0_8:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EP1_CMD_WRITE_IO,1,0           ## @EP1_CMD_WRITE_IO
	.comm	_USB_VID_NATIVEINSTRUMENTS,4,2  ## @USB_VID_NATIVEINSTRUMENTS
	.comm	_USB_PID_TRAKTORKONTROLX1,4,2   ## @USB_PID_TRAKTORKONTROLX1
	.comm	_EP1_CMD_DIMM_LEDS,1,0          ## @EP1_CMD_DIMM_LEDS
	.comm	_CNT_INTVAL,4,2                 ## @CNT_INTVAL
	.comm	_USB_PID_TRAKTORKONTROLS4,4,2   ## @USB_PID_TRAKTORKONTROLS4
	.no_dead_strip	_control_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function control_put
_control_put:                           ; @control_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	ldr	w0, [x0]
	bl	_caiaqdev
	mov	x19, x0
	ldr	w22, [x21]
	ldr	x8, [x20]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _EP1_CMD_WRITE_IO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EP1_CMD_WRITE_IO@GOTPAGEOFF]
Lloh2:
	adrp	x23, _USB_VID_NATIVEINSTRUMENTS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _USB_VID_NATIVEINSTRUMENTS@GOTPAGEOFF]
	ldr	x20, [x0, #16]
	ldr	w0, [x23]
Lloh4:
	adrp	x9, _USB_PID_TRAKTORKONTROLX1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _USB_PID_TRAKTORKONTROLX1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	ldrb	w24, [x8]
	bl	_USB_ID
Lloh7:
	adrp	x8, _EP1_CMD_DIMM_LEDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EP1_CMD_DIMM_LEDS@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	x20, x0
	csel	w20, w8, w24, eq
Lloh9:
	adrp	x8, _CNT_INTVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CNT_INTVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	bic	w22, w22, w8
	ldr	x8, [x19]
	str	w21, [x8, w22, sxtw #2]
	ldr	x24, [x19, #16]
	ldr	w0, [x23]
Lloh12:
	adrp	x8, _USB_PID_TRAKTORKONTROLS4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_PID_TRAKTORKONTROLS4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_USB_ID
	cmp	x24, x0
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	stp	w22, w21, [x8]
	ldr	w20, [x19, #24]
	mov	x0, x20
	mov	w1, #8
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	x2, [x19, #8]
	add	x4, sp, #12
	mov	x0, x20
	mov	w3, #8
	mov	w5, #200
	bl	_usb_bulk_msg
	b	LBB0_9
LBB0_3:
	and	w8, w22, #0x7
	mov	w9, #1
	lsl	w8, w9, w8
	cbz	w21, LBB0_6
; %bb.4:
	ldr	x2, [x19]
	add	w9, w22, #7
	cmp	w22, #0
	csel	w9, w9, w22, lt
	asr	w9, w9, #3
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x2, x9]
	orr	w8, w10, w8
	b	LBB0_7
LBB0_5:
	ldr	x2, [x19]
	b	LBB0_8
LBB0_6:
	ldr	x2, [x19]
	add	w9, w22, #7
	cmp	w22, #0
	csel	w9, w9, w22, lt
	asr	w9, w9, #3
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x2, x9]
	bic	w8, w10, w8
LBB0_7:
	str	w8, [x2, x9]
LBB0_8:
	and	w1, w20, #0xff
	mov	x0, x19
	mov	w3, #8
	bl	_snd_usb_caiaq_send_command
LBB0_9:
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EP1_CMD_WRITE_IO,1,0           ; @EP1_CMD_WRITE_IO
	.comm	_USB_VID_NATIVEINSTRUMENTS,4,2  ; @USB_VID_NATIVEINSTRUMENTS
	.comm	_USB_PID_TRAKTORKONTROLX1,4,2   ; @USB_PID_TRAKTORKONTROLX1
	.comm	_EP1_CMD_DIMM_LEDS,1,0          ; @EP1_CMD_DIMM_LEDS
	.comm	_CNT_INTVAL,4,2                 ; @CNT_INTVAL
	.comm	_USB_PID_TRAKTORKONTROLS4,4,2   ; @USB_PID_TRAKTORKONTROLS4
	.no_dead_strip	_control_put
.subsections_via_symbols
