	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_send_routing_get
_snd_emu10k1_send_routing_get:          ## @snd_emu10k1_send_routing_get
	.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
	movq	%rax, %r14
	movq	16(%rax), %r13
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	%rax, %rbx
	movq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13,%rbx,8), %r8
	movq	(%r15), %r15
	movq	(%r8), %rdi
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	testq	%r12, %r12
	setne	%dl
	movl	$15, %esi
	movl	$63, %eax
	cmovel	%esi, %eax
	leaq	4(,%rdx,4), %r10
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdx
	subq	%rdi, %rdx
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.2:
	movl	%r10d, %ecx
	andl	$-8, %ecx
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	movq	%r9, %rbx
	andq	$-2, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%r15,%rsi,4)
	movdqu	%xmm2, 16(%r15,%rsi,4)
	movdqu	32(%rdi,%rsi,4), %xmm1
	movdqu	48(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 32(%r15,%rsi,4)
	movdqu	%xmm2, 48(%r15,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rbx
	jne	LBB0_4
## %bb.5:
	testb	$1, %r9b
	jne	LBB0_7
	jmp	LBB0_9
LBB0_6:
	xorl	%esi, %esi
	testb	$1, %r9b
	je	LBB0_9
LBB0_7:
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%r15,%rsi,4)
	movdqu	%xmm2, 16(%r15,%rsi,4)
	jmp	LBB0_9
LBB0_8:
	movl	(%rdi,%rcx,4), %edx
	andl	%eax, %edx
	movl	%edx, (%r15,%rcx,4)
	movl	4(%rdi,%rcx,4), %edx
	andl	%eax, %edx
	movl	%edx, 4(%r15,%rcx,4)
	movl	8(%rdi,%rcx,4), %edx
	andl	%eax, %edx
	movl	%edx, 8(%r15,%rcx,4)
	movl	12(%rdi,%rcx,4), %edx
	andl	%eax, %edx
	movl	%edx, 12(%r15,%rcx,4)
	addq	$4, %rcx
LBB0_9:
	cmpq	%rcx, %r10
	jne	LBB0_8
## %bb.10:
	movq	8(%r8), %rdi
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	leaq	(%r15,%r10,4), %rcx
	subq	%rdi, %rcx
	cmpq	$32, %rcx
	jae	LBB0_14
LBB0_13:
	xorl	%ecx, %ecx
LBB0_20:
	leaq	(%r15,%r10,4), %rdx
	addq	$12, %rdx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %esi
	andl	%eax, %esi
	movl	%esi, -12(%rdx,%rcx,4)
	movl	4(%rdi,%rcx,4), %esi
	andl	%eax, %esi
	movl	%esi, -8(%rdx,%rcx,4)
	movl	8(%rdi,%rcx,4), %esi
	andl	%eax, %esi
	movl	%esi, -4(%rdx,%rcx,4)
	movl	12(%rdi,%rcx,4), %esi
	andl	%eax, %esi
	movl	%esi, (%rdx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_21
LBB0_22:
	leaq	(%r10,%r10), %r9
	movq	16(%r8), %rsi
	testq	%r12, %r12
	je	LBB0_25
## %bb.23:
	leaq	(%r15,%r10,8), %rcx
	subq	%rsi, %rcx
	cmpq	$32, %rcx
	jae	LBB0_26
LBB0_25:
	xorl	%ecx, %ecx
LBB0_32:
	leaq	(%r15,%r9,4), %rdx
	addq	$12, %rdx
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edi
	andl	%eax, %edi
	movl	%edi, -12(%rdx,%rcx,4)
	movl	4(%rsi,%rcx,4), %edi
	andl	%eax, %edi
	movl	%edi, -8(%rdx,%rcx,4)
	movl	8(%rsi,%rcx,4), %edi
	andl	%eax, %edi
	movl	%edi, -4(%rdx,%rcx,4)
	movl	12(%rsi,%rcx,4), %edi
	andl	%eax, %edi
	movl	%edi, (%rdx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_33
LBB0_34:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	%r10d, %ecx
	andl	$-8, %ecx
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_35
## %bb.15:
	movq	%r9, %rbx
	andq	$-2, %rbx
	leaq	(%r15,%r10,4), %r11
	addq	$48, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movq	%rsi, %rdx
	orq	%r10, %rdx
	movdqu	%xmm1, (%r15,%rdx,4)
	movdqu	%xmm2, 16(%r15,%rdx,4)
	movdqu	32(%rdi,%rsi,4), %xmm1
	movdqu	48(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, -16(%r11,%rsi,4)
	movdqu	%xmm2, (%r11,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rbx
	jne	LBB0_16
## %bb.17:
	testb	$1, %r9b
	je	LBB0_19
LBB0_18:
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	addq	%r10, %rsi
	movdqu	%xmm1, (%r15,%rsi,4)
	movdqu	%xmm2, 16(%r15,%rsi,4)
LBB0_19:
	cmpq	%rcx, %r10
	je	LBB0_22
	jmp	LBB0_20
LBB0_26:
	movl	%r10d, %ecx
	andl	$-8, %ecx
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_36
## %bb.27:
	movq	%r8, %rbx
	andq	$-2, %rbx
	leaq	(%r15,%r9,4), %rdx
	addq	$48, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdi,4), %xmm1
	movdqu	16(%rsi,%rdi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, -48(%rdx,%rdi,4)
	movdqu	%xmm2, -32(%rdx,%rdi,4)
	movdqu	32(%rsi,%rdi,4), %xmm1
	movdqu	48(%rsi,%rdi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, -16(%rdx,%rdi,4)
	movdqu	%xmm2, (%rdx,%rdi,4)
	addq	$16, %rdi
	addq	$-2, %rbx
	jne	LBB0_28
## %bb.29:
	testb	$1, %r8b
	je	LBB0_31
LBB0_30:
	movdqu	(%rsi,%rdi,4), %xmm1
	movdqu	16(%rsi,%rdi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	addq	%r9, %rdi
	movdqu	%xmm1, (%r15,%rdi,4)
	movdqu	%xmm2, 16(%r15,%rdi,4)
LBB0_31:
	cmpq	%rcx, %r10
	je	LBB0_34
	jmp	LBB0_32
LBB0_35:
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_18
	jmp	LBB0_19
LBB0_36:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_30
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_emu10k1_send_routing_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_send_routing_get
_snd_emu10k1_send_routing_get:          ; @snd_emu10k1_send_routing_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x22, [x0, #16]
	add	x1, x20, #8
	mov	x0, x21
	bl	_snd_ctl_get_ioffidx
	mov	x21, x0
	ldr	x23, [x19, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	w9, #63
	mov	w10, #15
	mov	w8, #8
	mov	w11, #4
	cmp	x23, #0
	csel	x8, x11, x8, eq
	csel	w9, w10, w9, eq
	ldr	x11, [x22, x21, lsl #3]
	ldr	x10, [x20]
	ldr	x12, [x11]
	mov	x13, x8
	mov	x14, x10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x12], #4
	and	w15, w15, w9
	str	w15, [x14], #4
	subs	x13, x13, #1
	b.ne	LBB0_1
; %bb.2:
	ldr	x12, [x11, #8]
	add	x13, x10, x8, lsl #2
	mov	x14, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x12], #4
	and	w15, w15, w9
	str	w15, [x13], #4
	subs	x14, x14, #1
	b.ne	LBB0_3
; %bb.4:
	ldr	x11, [x11, #16]
	add	x10, x10, x8, lsl #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	and	w12, w12, w9
	str	w12, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_emu10k1_send_routing_get
.subsections_via_symbols
