	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ics_put_double
_snd_ics_put_double:                    ## @snd_ics_put_double
	.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, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r12
	movzbl	(%rbx), %r15d
	movq	(%r14), %rax
	movb	(%rax), %bl
	movb	4(%rax), %r14b
	andb	$127, %bl
	andb	$127, %r14b
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r12), %rax
	movq	(%rax,%r15,8), %rdx
	movb	(%rdx), %cl
	movb	1(%rdx), %al
	movb	%bl, (%rdx)
	movq	24(%r12), %rdx
	movq	(%rdx,%r15,8), %rdx
	movb	%r14b, 1(%rdx)
	cmpq	$0, 16(%r12)
	movl	%r14d, %esi
	movl	%ebx, %r13d
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%r12)
	movl	%r14d, %esi
	movl	%ebx, %r13d
	je	LBB0_3
## %bb.2:
	movq	_SNDRV_ICS_GF1_DEV@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r15d
	sete	%dil
	movq	_SNDRV_ICS_MASTER_DEV@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %r15d
	sete	%dl
	orb	%dil, %dl
	movzbl	%bl, %r13d
	movzbl	%r14b, %edx
	movl	%edx, %esi
	cmovnel	%r13d, %esi
	cmovnel	%edx, %r13d
LBB0_3:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorb	%cl, %bl
	xorb	%al, %r14b
	xorl	%eax, %eax
	orb	%bl, %r14b
	setne	%al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	(,%r15,8), %ebx
	movq	_MIXCNTRLPORT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	%bl, %r15d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_MIXDATAPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movl	$1, %edi
	movl	%eax, %esi
	callq	_outb
	leal	2(%r15), %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_MIXDATAPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	%r13b, %edi
	movl	%eax, %esi
	callq	_outb
	leal	1(%r15), %ebx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	%bl, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_MIXDATAPORT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movl	$2, %edi
	movl	%eax, %esi
	callq	_outb
	orb	$3, %r15b
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	%r15b, %edi
	movl	%eax, %esi
	callq	_outb
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_GUSP
	movzbl	-44(%rbp), %edi                 ## 1-byte Folded Reload
	movl	%eax, %esi
	callq	_outb
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_ICS_GF1_DEV,4,2          ## @SNDRV_ICS_GF1_DEV
	.comm	_SNDRV_ICS_MASTER_DEV,4,2       ## @SNDRV_ICS_MASTER_DEV
	.comm	_MIXCNTRLPORT,4,2               ## @MIXCNTRLPORT
	.comm	_MIXDATAPORT,4,2                ## @MIXDATAPORT
	.no_dead_strip	_snd_ics_put_double
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ics_put_double
_snd_ics_put_double:                    ; @snd_ics_put_double
	.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
	ldrb	w23, [x21]
	ldr	x8, [x20]
	ldrb	w9, [x8]
	and	w21, w9, #0x7f
	mov	x22, x21
	ldrb	w8, [x8, #4]
	and	w24, w8, #0x7f
	mov	x20, x24
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	lsl	x10, x23, #3
	ldr	x11, [x8, x10]
	ldrb	w8, [x11]
	ldrb	w9, [x11, #1]
	strb	w21, [x11]
	ldr	x11, [x19, #24]
	ldr	x10, [x11, x10]
	strb	w24, [x10, #1]
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_3
; %bb.2:
Lloh0:
	adrp	x10, _SNDRV_ICS_GF1_DEV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SNDRV_ICS_GF1_DEV@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w23, w10
Lloh3:
	adrp	x10, _SNDRV_ICS_MASTER_DEV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SNDRV_ICS_MASTER_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ccmp	w23, w10, #4, ne
	csel	w20, w21, w24, eq
	csel	w22, w24, w21, eq
LBB0_3:
	cmp	w21, w8
	ccmp	w24, w9, #0, eq
	cset	w21, ne
Lloh6:
	adrp	x24, _MIXCNTRLPORT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _MIXCNTRLPORT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	ubfiz	w0, w23, #3, #5
	bl	_outb
Lloh8:
	adrp	x25, _MIXDATAPORT@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MIXDATAPORT@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	w26, #1
	mov	w0, #1
	bl	_outb
	mov	w27, #2
	bfi	w27, w23, #3, #8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	and	w0, w27, #0xfe
	bl	_outb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	x0, x22
	bl	_outb
	bfi	w26, w23, #3, #8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	and	w0, w26, #0xff
	bl	_outb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	w0, #2
	bl	_outb
	mov	w22, #3
	bfi	w22, w23, #3, #8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	and	w0, w22, #0xff
	bl	_outb
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GUSP
	mov	x1, x0
	mov	x0, x20
	bl	_outb
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_ICS_GF1_DEV,4,2          ; @SNDRV_ICS_GF1_DEV
	.comm	_SNDRV_ICS_MASTER_DEV,4,2       ; @SNDRV_ICS_MASTER_DEV
	.comm	_MIXCNTRLPORT,4,2               ; @MIXCNTRLPORT
	.comm	_MIXDATAPORT,4,2                ; @MIXDATAPORT
	.no_dead_strip	_snd_ics_put_double
.subsections_via_symbols
