	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mtpav_output_trigger
_snd_mtpav_output_trigger:              ## @snd_mtpav_output_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	%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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	16(%rbx), %r14
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.1:
	movl	(%r14,%r13,4), %eax
	movq	_MTPAV_MODE_OUTPUT_TRIGGERED@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rdx
	leaq	1(%rdx), %rsi
	movq	%rsi, (%rbx)
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_snd_mtpav_add_output_timer
	movl	(%r12), %ecx
	movl	(%r14,%r13,4), %eax
LBB0_4:
	orl	%ecx, %eax
	movl	%eax, (%r14,%r13,4)
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_mtpav_output_write         ## TAILCALL
LBB0_6:
	movq	_MTPAV_MODE_OUTPUT_TRIGGERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14,%r13,4)
	decq	(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_snd_mtpav_remove_output_timer
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTPAV_MODE_OUTPUT_TRIGGERED,4,2 ## @MTPAV_MODE_OUTPUT_TRIGGERED
	.no_dead_strip	_snd_mtpav_output_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mtpav_output_trigger
_snd_mtpav_output_trigger:              ; @snd_mtpav_output_trigger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	ldp	x24, x8, [x0]
	ldr	x21, [x8]
	ldr	x23, [x21, #16]
	add	x19, x21, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	cbz	w22, LBB0_6
; %bb.1:
	ldr	w8, [x23, x24, lsl #2]
Lloh0:
	adrp	x22, _MTPAV_MODE_OUTPUT_TRIGGERED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MTPAV_MODE_OUTPUT_TRIGGERED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x10, [x21]
	add	x11, x10, #1
	str	x11, [x21]
	cbnz	x10, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_snd_mtpav_add_output_timer
	ldr	w9, [x22]
	ldr	w8, [x23, x24, lsl #2]
LBB0_4:
	orr	w8, w8, w9
	str	w8, [x23, x24, lsl #2]
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_snd_mtpav_output_write
LBB0_6:
Lloh2:
	adrp	x8, _MTPAV_MODE_OUTPUT_TRIGGERED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MTPAV_MODE_OUTPUT_TRIGGERED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	x9, x24, #2
	ldr	w10, [x23, x9]
	bic	w8, w10, w8
	str	w8, [x23, x9]
	ldr	x8, [x21]
	subs	x8, x8, #1
	str	x8, [x21]
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_snd_mtpav_remove_output_timer
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MTPAV_MODE_OUTPUT_TRIGGERED,4,2 ; @MTPAV_MODE_OUTPUT_TRIGGERED
	.no_dead_strip	_snd_mtpav_output_trigger
.subsections_via_symbols
