	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_playback2_trigger
_snd_es18xx_playback2_trigger:          ## @snd_es18xx_playback2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	addl	$-130, %edx
	cmpl	$1, %edx
	ja	LBB0_7
## %bb.2:
	movl	(%rdi), %eax
	movq	_DAC1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.3:
	orl	%eax, %ecx
	movl	%ecx, (%rdi)
	movl	$184, %esi
	movl	$5, %edx
	callq	_snd_es18xx_write
	jmp	LBB0_8
LBB0_4:
	movl	(%rdi), %eax
	movq	_DAC1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_5
## %bb.6:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rdi)
	xorl	%ebx, %ebx
	movl	$184, %esi
	xorl	%edx, %edx
	callq	_snd_es18xx_write
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DAC1,4,2                       ## @DAC1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_snd_es18xx_playback2_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_playback2_trigger
_snd_es18xx_playback2_trigger:          ; @snd_es18xx_playback2_trigger
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w2, #128
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	sub	w8, w2, #130
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DAC1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DAC1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.3:
	orr	w8, w9, w8
	str	w8, [x0]
	mov	w1, #184
	mov	w2, #5
	b	LBB0_6
LBB0_4:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _DAC1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DAC1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	bic	w8, w8, w9
	str	w8, [x0]
	mov	w1, #184
	mov	w2, #0
LBB0_6:
	bl	_snd_es18xx_write
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DAC1,4,2                       ; @DAC1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_snd_es18xx_playback2_trigger
.subsections_via_symbols
