	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_send_routing_put
_snd_emu10k1_send_routing_put:          ## @snd_emu10k1_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movq	%rax, %r14
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	setne	%bl
	movl	$15, %eax
	movl	$63, %r13d
	cmovel	%eax, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	(%r12), %r9
	shlq	$4, %r14
	leaq	(%r10,%r14), %r15
	movq	(%r10,%r14), %r8
	leaq	4(,%rbx,4), %rcx
	movq	(%r8), %rdx
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$2, %rax
	cmpq	%rax, %rcx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rax,4), %edi
	andl	%r13d, %edi
	cmpl	%edi, (%rdx,%rax,4)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, (%rdx,%rax,4)
	movl	$1, %r12d
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r9,%rax,4), %edi
	andl	%r13d, %edi
	cmpl	%edi, 4(%rdx,%rax,4)
	je	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, 4(%rdx,%rax,4)
	movl	$1, %r12d
	jmp	LBB0_1
LBB0_6:
	movq	8(%r8), %rax
	leaq	(%r9,%rcx,4), %rdi
	addq	$4, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$2, %rbx
	cmpq	%rbx, %rcx
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi,%rbx,4), %esi
	andl	%r13d, %esi
	cmpl	%esi, (%rax,%rbx,4)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, (%rax,%rbx,4)
	movl	$1, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rdi,%rbx,4), %esi
	andl	%r13d, %esi
	cmpl	%esi, 4(%rax,%rbx,4)
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%esi, 4(%rax,%rbx,4)
	movl	$1, %r12d
	jmp	LBB0_7
LBB0_12:
	movq	16(%r8), %rdi
	leaq	(%r9,%rcx,8), %r8
	negq	%rcx
	xorl	%ebx, %ebx
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	incq	%rbx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%r8,%rbx,4), %esi
	andl	%r13d, %esi
	cmpl	%esi, -4(%rdi,%rbx,4)
	jne	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	(%rcx,%rbx), %rsi
	incq	%rsi
	incq	%rbx
	cmpq	$1, %rsi
	jne	LBB0_14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%esi, -4(%rdi,%rbx,4)
	movl	$1, %r12d
	movq	%rcx, %rsi
	addq	%rbx, %rsi
	jne	LBB0_13
	jmp	LBB0_17
LBB0_16:
	testl	%r12d, %r12d
	je	LBB0_21
LBB0_17:
	movq	8(%r10,%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.18:
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.19:
	cmpq	$0, 8(%rcx)
	movl	(%rsi), %esi
	je	LBB0_23
## %bb.20:
	addq	%r10, %r14
	addq	$8, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_update_emu10k1_fxrt
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movq	16(%rax), %rdx
	jmp	LBB0_24
LBB0_21:
	xorl	%r12d, %r12d
LBB0_22:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_23:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_24:
	movq	%rbx, %rdi
	callq	_update_emu10k1_fxrt
LBB0_25:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_emu10k1_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_send_routing_put
_snd_emu10k1_send_routing_put:          ; @snd_emu10k1_send_routing_put
	.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	x22, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x23, [x0, #16]
	add	x1, x22, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x21, x0
	ldr	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	x24, #0
	csel	x9, x12, x9, eq
	csel	w10, w11, w10, eq
	ldr	x11, [x22]
	add	x22, x23, x21, lsl #4
	ldr	x12, [x22]
	ldr	x2, [x12]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x14, x8, #2
	ldr	w13, [x11, x14]
	and	w13, w13, w10
	ldr	w14, [x2, x14]
	cmp	w14, w13
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w13, [x2, x8, lsl #2]
	mov	w20, #1
	b	LBB0_1
LBB0_4:
	mov	x13, #0
	ldr	x8, [x12, #8]
	add	x14, x11, x9, lsl #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x13, x13, #1
	cmp	x9, x13
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x16, x13, #2
	ldr	w15, [x14, x16]
	and	w15, w15, w10
	ldr	w16, [x8, x16]
	cmp	w16, w15
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	w15, [x8, x13, lsl #2]
	mov	w20, #1
	b	LBB0_5
LBB0_8:
	mov	x13, #0
	ldr	x12, [x12, #16]
	sub	x14, x9, #1
	add	x11, x11, x9, lsl #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x16, x13, #2
	ldr	w15, [x11, x16]
	and	w15, w15, w10
	ldr	w16, [x12, x16]
	cmp	w16, w15
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x13, x13, #1
	cmp	x9, x13
	b.ne	LBB0_9
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	w15, [x12, x13, lsl #2]
	add	x15, x13, #1
	mov	w20, #1
	cmp	x14, x13
	mov	x13, x15
	b.ne	LBB0_9
	b	LBB0_13
LBB0_12:
	cbz	w20, LBB0_18
LBB0_13:
	add	x21, x23, x21, lsl #4
	ldr	x9, [x21, #8]!
	cbz	x9, LBB0_18
; %bb.14:
	ldr	x9, [x9]
	ldr	x10, [x9]
	cbz	x10, LBB0_18
; %bb.15:
	ldr	x9, [x9, #8]
	ldr	w1, [x10]
	cbz	x9, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x2, x8
	bl	_update_emu10k1_fxrt
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	x2, [x8, #16]
LBB0_17:
	mov	x0, x19
	bl	_update_emu10k1_fxrt
LBB0_18:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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_put
.subsections_via_symbols
