	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mpu401_uart_input_trigger
_snd_mpu401_uart_input_trigger:         ## @snd_mpu401_uart_input_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	testl	%esi, %esi
	je	LBB0_7
## %bb.1:
	movq	_MPU401_MODE_BIT_INPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	$65, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r14
	movq	%r15, %rdi
	callq	_MPU401D
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r14
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_3
## %bb.4:
	cmpq	$0, (%r15)
	jns	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_snd_mpu401_uart_add_timer
LBB0_6:
	leaq	12(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_snd_mpu401_uart_input_read
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	cmpq	$0, (%r15)
	jns	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_snd_mpu401_uart_remove_timer
LBB0_9:
	movq	_MPU401_MODE_BIT_INPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r15
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU401_MODE_BIT_INPUT_TRIGGER,4,2 ## @MPU401_MODE_BIT_INPUT_TRIGGER
	.no_dead_strip	_snd_mpu401_uart_input_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_mpu401_uart_input_trigger
_snd_mpu401_uart_input_trigger:         ; @snd_mpu401_uart_input_trigger
	.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
	ldr	x8, [x0]
	ldr	x19, [x8]
	cbz	w1, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _MPU401_MODE_BIT_INPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPU401_MODE_BIT_INPUT_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_and_set_bit
	cbnz	w0, LBB0_6
; %bb.2:
	mov	w20, #65
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #16]
	mov	x0, x19
	bl	_MPU401D
	mov	x1, x0
	mov	x0, x19
	blr	x21
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_3
; %bb.4:
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_mpu401_uart_add_timer
LBB0_6:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_snd_mpu401_uart_input_read
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
LBB0_7:
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #1
	bl	_snd_mpu401_uart_remove_timer
LBB0_9:
Lloh3:
	adrp	x8, _MPU401_MODE_BIT_INPUT_TRIGGER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPU401_MODE_BIT_INPUT_TRIGGER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	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
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU401_MODE_BIT_INPUT_TRIGGER,4,2 ; @MPU401_MODE_BIT_INPUT_TRIGGER
	.no_dead_strip	_snd_mpu401_uart_input_trigger
.subsections_via_symbols
