	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_efx_send_routing_put
_snd_emu10k1_efx_send_routing_put:      ## @snd_emu10k1_efx_send_routing_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
	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
	leaq	8(%r15), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	16(%r14), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r13
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	sete	%bl
	movl	$15, %eax
	movl	$63, %r12d
	cmovel	%eax, %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	(%r15), %rcx
	movq	%r13, %r8
	shlq	$4, %r8
	movq	(%r10,%r8), %rax
	movq	(%rax), %rdx
	shll	$2, %ebx
	orq	$-8, %rbx
	xorl	%esi, %esi
	movb	$1, %dil
	xorl	%r15d, %r15d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	incq	%rsi
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rcx,%rsi,4), %eax
	andl	%r12d, %eax
	cmpl	%eax, -4(%rdx,%rsi,4)
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	leaq	(%rbx,%rsi), %rax
	incq	%rax
	incq	%rsi
	cmpq	$1, %rax
	jne	LBB0_2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, -4(%rdx,%rsi,4)
	movl	$1, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rax
	addq	%rsi, %rax
	jne	LBB0_1
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	testb	$1, %dil
	jne	LBB0_9
LBB0_5:
	movq	8(%r10,%r8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_update_emu10k1_fxrt
LBB0_8:
	movl	%r15d, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_emu10k1_efx_send_routing_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_efx_send_routing_put
_snd_emu10k1_efx_send_routing_put:      ; @snd_emu10k1_efx_send_routing_put
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x1, x21, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x22, x0
	sxtw	x23, w22
	ldp	x25, x24, [x19, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x8, #0
	mov	w20, #0
	mov	w10, #63
	mov	w11, #15
	mov	w9, #8
	mov	w12, #4
	cmp	x25, #0
	csel	x9, x12, x9, eq
	csel	w10, w11, w10, eq
	ldr	x11, [x21]
	sbfiz	x12, x22, #4, #32
	ldr	x12, [x24, x12]
	ldr	x2, [x12]
	sub	x12, x9, #1
	mov	w13, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x15, x8, #2
	ldr	w14, [x11, x15]
	and	w14, w14, w10
	ldr	w15, [x2, x15]
	cmp	w15, w14
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w13, #0
	str	w14, [x2, x8, lsl #2]
	add	x14, x8, #1
	mov	w20, #1
	cmp	x12, x8
	mov	x8, x14
	b.ne	LBB0_1
	b	LBB0_6
LBB0_4:
	tbz	w13, #0, LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_9
LBB0_6:
	add	x8, x24, x23, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_update_emu10k1_fxrt
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_emu10k1_efx_send_routing_put
.subsections_via_symbols
