	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb6fire_control_streaming_update
_usb6fire_control_streaming_update:     ## @usb6fire_control_streaming_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_DIGITAL_THRU_ONLY_SAMPLERATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb6fire_control_set_rate
	movq	8(%rbx), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
LBB0_5:
	movq	(%r14), %rax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	setne	%dl
	xorl	%ecx, %ecx
	cmpq	$0, (%rbx)
	setne	%cl
	leal	(%rdx,%rcx,8), %r8d
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIGITAL_THRU_ONLY_SAMPLERATE,4,2 ## @DIGITAL_THRU_ONLY_SAMPLERATE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_usb6fire_control_streaming_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb6fire_control_streaming_update
_usb6fire_control_streaming_update:     ; @usb6fire_control_streaming_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	cbz	x19, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _DIGITAL_THRU_ONLY_SAMPLERATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIGITAL_THRU_ONLY_SAMPLERATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_usb6fire_control_set_rate
	ldr	x8, [x20, #8]
LBB0_4:
	ldr	x5, [x19]
	cmp	x8, #0
	cset	w4, ne
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	bfi	w4, w8, #3, #1
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x5
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DIGITAL_THRU_ONLY_SAMPLERATE,4,2 ; @DIGITAL_THRU_ONLY_SAMPLERATE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_usb6fire_control_streaming_update
.subsections_via_symbols
