	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mpu401_uart_output_trigger
_snd_mpu401_uart_output_trigger:        ## @snd_mpu401_uart_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movq	_MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_set_bit
	movq	_MPU401_INFO_TX_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_snd_mpu401_uart_add_timer
LBB0_3:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_snd_mpu401_uart_output_write
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movq	_MPU401_INFO_TX_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_snd_mpu401_uart_remove_timer
LBB0_6:
	movq	_MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rbx
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clear_bit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU401_MODE_BIT_OUTPUT_TRIGGER,4,2 ## @MPU401_MODE_BIT_OUTPUT_TRIGGER
	.comm	_MPU401_INFO_TX_IRQ,4,2         ## @MPU401_INFO_TX_IRQ
	.no_dead_strip	_snd_mpu401_uart_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_mpu401_uart_output_trigger
_snd_mpu401_uart_output_trigger:        ; @snd_mpu401_uart_output_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
	ldr	x8, [x0]
	ldr	x19, [x8]
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MPU401_INFO_TX_IRQ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPU401_INFO_TX_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_snd_mpu401_uart_add_timer
LBB0_3:
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_snd_mpu401_uart_output_write
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_4:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _MPU401_INFO_TX_IRQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MPU401_INFO_TX_IRQ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_snd_mpu401_uart_remove_timer
LBB0_6:
Lloh9:
	adrp	x8, _MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MPU401_MODE_BIT_OUTPUT_TRIGGER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clear_bit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU401_MODE_BIT_OUTPUT_TRIGGER,4,2 ; @MPU401_MODE_BIT_OUTPUT_TRIGGER
	.comm	_MPU401_INFO_TX_IRQ,4,2         ; @MPU401_INFO_TX_IRQ
	.no_dead_strip	_snd_mpu401_uart_output_trigger
.subsections_via_symbols
