	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_xonar_u1_switch_put
_snd_xonar_u1_switch_put:               ## @snd_xonar_u1_switch_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movl	(%rax), %r15d
	movq	(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	movl	%r15d, %eax
	andl	$-3, %eax
	leal	(%rax,%rcx,2), %r12d
	movl	%r12d, -36(%rbp)
	movq	8(%r14), %rax
	movl	(%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
	leaq	-36(%rbp), %r10
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$8, %edx
	movl	$50, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	pushq	%r10
	callq	_snd_usb_ctl_msg
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	setne	%al
	movl	-36(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_xonar_u1_switch_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_xonar_u1_switch_put
_snd_xonar_u1_switch_put:               ; @snd_xonar_u1_switch_put
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w21, [x0]
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	mov	x22, x21
	bfi	w22, w8, #1, #1
	str	w22, [sp, #12]
	ldr	x8, [x0, #8]
	ldr	w20, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _USB_RECIP_OTHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_RECIP_OTHER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x6, sp, #12
	mov	x0, x20
	mov	w2, #8
	mov	w4, #50
	mov	w5, #0
	mov	w7, #1
	bl	_snd_usb_ctl_msg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	cmp	w22, w21
	cset	w0, ne
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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_xonar_u1_switch_put
.subsections_via_symbols
