	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1938_playback1_trigger
_snd_es1938_playback1_trigger:          ## @snd_es1938_playback1_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	addl	$-130, %ebx
	cmpl	$1, %ebx
	ja	LBB0_4
## %bb.2:
	movq	_ESSSB_IREG_AUDIO2CONTROL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$146, %edx
	callq	_snd_es1938_mixer_write
	movl	$10, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$147, %edx
	callq	_snd_es1938_mixer_write
	movq	_AUDIO2MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SLIO_REG
	movl	$10, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_DAC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_AUDIO2MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_SLIO_REG
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_outb
	movq	_ESSSB_IREG_AUDIO2CONTROL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_es1938_mixer_write
	movq	_DAC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESSSB_IREG_AUDIO2CONTROL1,4,2  ## @ESSSB_IREG_AUDIO2CONTROL1
	.comm	_AUDIO2MODE,4,2                 ## @AUDIO2MODE
	.comm	_DAC2,4,2                       ## @DAC2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_es1938_playback1_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1938_playback1_trigger
_snd_es1938_playback1_trigger:          ; @snd_es1938_playback1_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	sub	w8, w20, #128
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w20, #130
	cmp	w8, #1
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x20, _ESSSB_IREG_AUDIO2CONTROL1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ESSSB_IREG_AUDIO2CONTROL1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #146
	bl	_snd_es1938_mixer_write
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #147
	bl	_snd_es1938_mixer_write
Lloh2:
	adrp	x8, _AUDIO2MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUDIO2MODE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SLIO_REG
	mov	x1, x0
	mov	w0, #10
	bl	_outb
	mov	w0, #0
Lloh5:
	adrp	x8, _DAC2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAC2@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _AUDIO2MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUDIO2MODE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SLIO_REG
	mov	x1, x0
	mov	w0, #0
	bl	_outb
Lloh11:
	adrp	x8, _ESSSB_IREG_AUDIO2CONTROL1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ESSSB_IREG_AUDIO2CONTROL1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_es1938_mixer_write
	mov	w0, #0
Lloh14:
	adrp	x8, _DAC2@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DAC2@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ESSSB_IREG_AUDIO2CONTROL1,4,2  ; @ESSSB_IREG_AUDIO2CONTROL1
	.comm	_AUDIO2MODE,4,2                 ; @AUDIO2MODE
	.comm	_DAC2,4,2                       ; @DAC2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_es1938_playback1_trigger
.subsections_via_symbols
