	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vortex_adb_setsrc
_vortex_adb_setsrc:                     ## @vortex_adb_setsrc
	.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
	movl	%ecx, %r15d
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movl	%edx, %edi
	movl	$48000, %esi                    ## imm = 0xBB80
	jmp	LBB0_3
LBB0_2:
	movl	$48000, %edi                    ## imm = 0xBB80
	movl	%edx, %esi
LBB0_3:
	callq	_SRC_RATIO
	movl	%eax, %r12d
	movq	_NR_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movslq	%ebx, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r14,8), %rcx
	movq	_VORTEX_RESOURCE_SRC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	btl	%ebx, %ecx
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	pushq	%r15
	pushq	%r12
	pushq	$1
	pushq	%r15
	callq	_vortex_src_setupchannel
	addq	$32, %rsp
	movq	_NR_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_SRC,4,2                     ## @NR_SRC
	.comm	_VORTEX_RESOURCE_SRC,8,3        ## @VORTEX_RESOURCE_SRC
	.no_dead_strip	_vortex_adb_setsrc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vortex_adb_setsrc
_vortex_adb_setsrc:                     ; @vortex_adb_setsrc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x23, x1
	mov	x20, x0
	ldr	x24, [x0]
	cbz	w3, LBB0_2
; %bb.1:
	mov	x0, x2
	mov	w1, #48000
	b	LBB0_3
LBB0_2:
	mov	w0, #48000
	mov	x1, x2
LBB0_3:
	bl	_SRC_RATIO
	mov	x21, x0
Lloh0:
	adrp	x25, _NR_SRC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NR_SRC@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w22, #0
	sxtw	x23, w23
Lloh2:
	adrp	x26, _VORTEX_RESOURCE_SRC@GOTPAGE
Lloh3:
	ldr	x26, [x26, _VORTEX_RESOURCE_SRC@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24, x23, lsl #3]
	ldr	x10, [x26]
	ldr	w9, [x9, x10, lsl #2]
	lsr	w9, w9, w22
	tbz	w9, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stp	w21, w19, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	mov	w4, #0
	mov	x5, x22
	mov	x6, x19
	mov	w7, #1
	bl	_vortex_src_setupchannel
	ldr	w8, [x25]
	b	LBB0_5
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_SRC,4,2                     ; @NR_SRC
	.comm	_VORTEX_RESOURCE_SRC,8,3        ; @VORTEX_RESOURCE_SRC
	.no_dead_strip	_vortex_adb_setsrc
.subsections_via_symbols
