	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_gpr_ctl_put
_snd_emu10k1_gpr_ctl_put:               ## @snd_emu10k1_gpr_ctl_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, %r14
	movq	%rdi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movq	(%r15), %r13
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	8(%r12), %rsi
	movq	_onoff_table@GOTPCREL(%rip), %rax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	movl	%ecx, %ecx
	movl	(%rax,%rcx,4), %ecx
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_19
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %eax
	movl	4(%r13), %ecx
	movl	8(%r13), %edx
	cmpl	%ecx, %eax
	cmoval	%eax, %ecx
	cmpl	%edx, %ecx
	cmovael	%edx, %ecx
	movq	16(%r13), %rax
	cmpl	(%rax,%rbx,4), %ecx
	movl	$1, %edx
	cmovnel	%edx, %r15d
	movl	%ecx, (%rax,%rbx,4)
	movl	24(%r13), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_18
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	28(%r13), %rax
	imull	$-858993459, %eax, %edx         ## imm = 0xCCCCCCCD
	addl	$429496729, %edx                ## imm = 0x19999999
	cmpl	$858993458, %edx                ## imm = 0x33333332
	ja	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$33, %rax
	addl	%edx, %eax
	cmpl	(%r13), %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	8(%r12), %rsi
	movl	%ecx, %r14d
	movq	_treble_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	addl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_treble_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rbx,%rcx,2), %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_treble_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	8(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_treble_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	12(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rbx,%rcx,4), %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_treble_table@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	8(%r12), %rsi
	movq	_db_table@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	8(%r12), %rsi
	jmp	LBB0_17
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	28(%r13), %rax
	imull	$-858993459, %eax, %edx         ## imm = 0xCCCCCCCD
	addl	$429496729, %edx                ## imm = 0x19999999
	cmpl	$858993458, %edx                ## imm = 0x33333332
	ja	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$33, %rax
	addl	%edx, %eax
	cmpl	(%r13), %eax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	addq	8(%r12), %rsi
	movl	%ecx, %r14d
	movq	_bass_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	addl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_bass_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	4(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rbx,%rcx,2), %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_bass_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	8(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_bass_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	12(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_emu10k1_ptr_write
	movq	32(%r13), %rax
	movl	(%r13), %ecx
	leal	(%rbx,%rcx,4), %ecx
	movq	(%rax,%rcx,8), %rsi
	addq	8(%r12), %rsi
	movq	_bass_table@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	16(%rax), %ecx
	jmp	LBB0_17
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_14:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_19:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_db_table,8,3                   ## @db_table
	.comm	_EIO,4,2                        ## @EIO
	.comm	_bass_table,8,3                 ## @bass_table
	.comm	_treble_table,8,3               ## @treble_table
	.comm	_onoff_table,8,3                ## @onoff_table
	.no_dead_strip	_snd_emu10k1_gpr_ctl_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_gpr_ctl_put
_snd_emu10k1_gpr_ctl_put:               ; @snd_emu10k1_gpr_ctl_put
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x22, [x21]
	bl	_spin_lock_irqsave
	ldr	w8, [x22]
	cbz	w8, LBB0_18
; %bb.1:
	mov	x23, #0
	mov	w21, #0
	mov	w24, #26215
	movk	w24, #26214, lsl #16
Lloh0:
	adrp	x25, _treble_table@GOTPAGE
Lloh1:
	ldr	x25, [x25, _treble_table@GOTPAGEOFF]
Lloh2:
	adrp	x28, _bass_table@GOTPAGE
Lloh3:
	ldr	x28, [x28, _bass_table@GOTPAGEOFF]
Lloh4:
	adrp	x26, lJTI0_0@PAGE
Lloh5:
	add	x26, x26, lJTI0_0@PAGEOFF
	b	LBB0_7
LBB0_2:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	ldr	x9, [x9, x23, lsl #3]
	add	x1, x9, x8
Lloh6:
	adrp	x8, _onoff_table@GOTPAGE
Lloh7:
	ldr	x8, [x8, _onoff_table@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8]
	ldr	w3, [x8, w3, uxtw #2]
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	w2, #0
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_snd_emu10k1_ptr_write
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x23, x23, #1
	ldr	w8, [x22]
	cmp	x23, x8
	b.hs	LBB0_20
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x9, x23, #2
	ldr	w8, [x8, x9]
	ldp	w10, w11, [x22, #4]
	cmp	w8, w10
	csel	w8, w8, w10, hi
	cmp	w8, w11
	csel	w3, w8, w11, lo
	ldr	x8, [x22, #16]
	ldr	w10, [x8, x9]
	cmp	w3, w10
	csinc	w21, w21, wzr, eq
	str	w3, [x8, x9]
	ldr	w8, [x22, #24]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #28]
	smull	x8, w9, w24
	lsr	x10, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w10
	add	w10, w8, w8, lsl #2
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	ldr	x9, [x9, x23, lsl #3]
	add	x1, x9, x8
	ldr	x8, [x25]
	lsl	x27, x3, #3
	ldr	x8, [x8, x27]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x25]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9, lsl #1
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x25]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w9, w9, lsl #1
	add	w9, w23, w9
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x25]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9, lsl #2
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x25]
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	ldr	x9, [x9, x23, lsl #3]
	add	x1, x9, x8
Lloh8:
	adrp	x8, _db_table@GOTPAGE
Lloh9:
	ldr	x8, [x8, _db_table@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	ldr	x9, [x9, x23, lsl #3]
	add	x1, x9, x8
	mov	x0, x19
	mov	w2, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22, #28]
	smull	x8, w9, w24
	lsr	x10, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w10
	add	w10, w8, w8, lsl #2
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22, #32]
	ldr	x9, [x9, x23, lsl #3]
	add	x1, x9, x8
	ldr	x8, [x28]
	lsl	x27, x3, #3
	ldr	x8, [x8, x27]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x28]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9, lsl #1
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x28]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w9, w9, lsl #1
	add	w9, w23, w9
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x28]
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #12]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_emu10k1_ptr_write
	ldr	x8, [x22, #32]
	ldr	w9, [x22]
	add	w9, w23, w9, lsl #2
	ldr	x8, [x8, w9, uxtw #3]
	ldr	x9, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x28]
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8, x27]
	ldr	w3, [x8, #16]
	b	LBB0_4
LBB0_18:
	mov	w21, #0
	b	LBB0_20
LBB0_19:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_20:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_db_table,8,3                   ; @db_table
	.comm	_EIO,4,2                        ; @EIO
	.comm	_bass_table,8,3                 ; @bass_table
	.comm	_treble_table,8,3               ; @treble_table
	.comm	_onoff_table,8,3                ; @onoff_table
	.no_dead_strip	_snd_emu10k1_gpr_ctl_put
.subsections_via_symbols
