	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pas_audio_trigger
_pas_audio_trigger:                     ## @pas_audio_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
	movl	%esi, %ebx
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_open_mode@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_PCM_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$3978, %edi                     ## imm = 0xF8A
	callq	_pas_read
	orl	$80, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_PCM_ENABLE_INPUT@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	$3978, %edi                     ## imm = 0xF8A
	callq	_pas_read
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	andl	$-81, %eax
	orl	$64, %eax
	jmp	LBB0_5
LBB0_4:
	andl	$-65, %eax
LBB0_5:
	movl	%eax, %edi
	movl	$3978, %esi                     ## imm = 0xF8A
	callq	_pas_write
	movq	_pas_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pas_lock,4,2                   ## @pas_lock
	.comm	_open_mode,4,2                  ## @open_mode
	.comm	_PCM_ENABLE_OUTPUT,4,2          ## @PCM_ENABLE_OUTPUT
	.comm	_PCM_ENABLE_INPUT,4,2           ## @PCM_ENABLE_INPUT
	.no_dead_strip	_pas_audio_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pas_audio_trigger
_pas_audio_trigger:                     ; @pas_audio_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	x19, x1
Lloh0:
	adrp	x0, _pas_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _open_mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _open_mode@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh5:
	adrp	x9, _PCM_ENABLE_OUTPUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCM_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #3978
	bl	_pas_read
	mov	w8, #80
	orr	w0, w0, w8
	b	LBB0_5
LBB0_2:
Lloh8:
	adrp	x9, _PCM_ENABLE_INPUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCM_ENABLE_INPUT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w19, w9, w8
	mov	w0, #3978
	bl	_pas_read
	cbz	w19, LBB0_4
; %bb.3:
	and	w8, w0, #0xffffffef
	orr	w0, w8, #0x40
	b	LBB0_5
LBB0_4:
	and	w0, w0, #0xffffffbf
LBB0_5:
	mov	w1, #3978
	bl	_pas_write
Lloh11:
	adrp	x0, _pas_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _pas_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_pas_lock,4,2                   ; @pas_lock
	.comm	_open_mode,4,2                  ; @open_mode
	.comm	_PCM_ENABLE_OUTPUT,4,2          ; @PCM_ENABLE_OUTPUT
	.comm	_PCM_ENABLE_INPUT,4,2           ; @PCM_ENABLE_INPUT
	.no_dead_strip	_pas_audio_trigger
.subsections_via_symbols
