	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_audigy2nx_led_put
_snd_audigy2nx_led_put:                 ## @snd_audigy2nx_led_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
	subq	$24, %rsp
	.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
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	(%rax), %r15d
	cmpl	$2, %r15d
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movslq	(%rbx), %rdx
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpl	(%rax,%rdx,4), %r15d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	(%rcx), %rbx
	movl	$1054, %edi                     ## imm = 0x41E
	movl	$12354, %esi                    ## imm = 0x3042
	callq	_USB_ID
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movl	8(%rax), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%r8d, %r8d
	testl	%r15d, %r15d
	sete	%r8b
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$36, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
LBB0_4:
	movq	8(%r14), %rax
	movq	(%rax), %r13
	movl	$1054, %edi                     ## imm = 0x41E
	movl	$12511, %esi                    ## imm = 0x30DF
	callq	_USB_ID
	movq	%rax, %r12
	movq	8(%r14), %rax
	movl	8(%rax), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	cmpq	%r12, %r13
	jne	LBB0_6
## %bb.5:
	xorl	%r8d, %r8d
	testl	%r15d, %r15d
	sete	%r8b
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$36, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leal	2(%r12), %r9d
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$36, %edx
	movl	%r15d, %r8d
	pushq	$0
	pushq	$0
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %cl
	movq	(%r14), %rax
	movl	%r15d, (%rax,%r12,4)
	movl	%ecx, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ## @USB_RECIP_OTHER
	.no_dead_strip	_snd_audigy2nx_led_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_audigy2nx_led_put
_snd_audigy2nx_led_put:                 ; @snd_audigy2nx_led_put
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	ldr	x8, [x20]
	ldr	w20, [x8]
	cmp	w20, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldrsw	x23, [x21]
	ldp	x8, x9, [x0]
	ldr	w8, [x8, x23, lsl #2]
	cmp	w20, w8
	cset	w24, ne
	ldr	x21, [x9]
	mov	w0, #1054
	mov	w1, #12354
	bl	_USB_ID
Lloh3:
	adrp	x26, _USB_DIR_OUT@GOTPAGE
Lloh4:
	ldr	x26, [x26, _USB_DIR_OUT@GOTPAGEOFF]
Lloh5:
	adrp	x27, _USB_TYPE_VENDOR@GOTPAGE
Lloh6:
	ldr	x27, [x27, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh7:
	adrp	x25, _USB_RECIP_OTHER@GOTPAGE
Lloh8:
	ldr	x25, [x25, _USB_RECIP_OTHER@GOTPAGEOFF]
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w21, [x8, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
	cmp	w20, #0
	cset	w4, eq
	mov	x0, x21
	mov	w2, #36
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_snd_usb_ctl_msg
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x28, [x8]
	mov	w0, #1054
	mov	w1, #12511
	bl	_USB_ID
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	w21, [x8, #8]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
	cmp	x28, x22
	b.ne	LBB0_6
; %bb.5:
	cmp	w20, #0
	cset	w4, eq
	mov	x0, x21
	mov	w2, #36
	mov	w5, #0
	b	LBB0_7
LBB0_6:
	add	w5, w23, #2
	mov	x0, x21
	mov	w2, #36
	mov	x4, x20
LBB0_7:
	mov	x6, #0
	mov	w7, #0
	bl	_snd_usb_ctl_msg
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	str	w20, [x8, x23, lsl #2]
	mov	x0, x24
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,4,2            ; @USB_RECIP_OTHER
	.no_dead_strip	_snd_audigy2nx_led_put
.subsections_via_symbols
