	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_put_spatializer_enable
_snd_es18xx_put_spatializer_enable:     ## @snd_es18xx_put_spatializer_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	(%rbx), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	setne	%bl
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_snd_es18xx_mixer_read
	movl	%eax, %r12d
	andl	$12, %r12d
	leal	4(,%rbx,8), %r15d
	cmpl	%r15d, %r12d
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edx
	andl	$-8, %edx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_snd_es18xx_mixer_write
	movq	%r14, %rdi
	movl	$80, %esi
	movl	%r15d, %edx
	callq	_snd_es18xx_mixer_write
LBB0_2:
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	setne	%al
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_es18xx_put_spatializer_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_put_spatializer_enable
_snd_es18xx_put_spatializer_enable:     ; @snd_es18xx_put_spatializer_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x20, [x8]
	mov	w1, #80
	bl	_snd_es18xx_mixer_read
	and	w21, w0, #0xc
	cmp	x20, #0
	mov	w8, #12
	mov	w9, #4
	csel	w20, w9, w8, eq
	cmp	w21, w20
	b.eq	LBB0_2
; %bb.1:
	and	w2, w20, #0x8
	mov	x0, x19
	mov	w1, #80
	bl	_snd_es18xx_mixer_write
	mov	x0, x19
	mov	w1, #80
	mov	x2, x20
	bl	_snd_es18xx_mixer_write
LBB0_2:
	cmp	w21, w20
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_es18xx_put_spatializer_enable
.subsections_via_symbols
