	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mpu401_uart_input_open
_snd_mpu401_uart_input_open:            ## @snd_mpu401_uart_input_open
	.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, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_9
LBB0_2:
	movq	_MPU401_MODE_BIT_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_snd_mpu401_do_reset
	testq	%rax, %rax
	js	LBB0_5
LBB0_4:
	movq	%r14, 24(%rbx)
	movq	_MPU401_MODE_BIT_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU401_MODE_BIT_OUTPUT,4,2     ## @MPU401_MODE_BIT_OUTPUT
	.comm	_MPU401_MODE_BIT_INPUT,4,2      ## @MPU401_MODE_BIT_INPUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_mpu401_uart_input_open
.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_open
_snd_mpu401_uart_input_open:            ; @snd_mpu401_uart_input_open
	.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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _MPU401_MODE_BIT_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPU401_MODE_BIT_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_snd_mpu401_do_reset
	tbnz	x0, #63, LBB0_6
LBB0_4:
	str	x20, [x19, #24]
Lloh3:
	adrp	x8, _MPU401_MODE_BIT_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPU401_MODE_BIT_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	w0, #0
LBB0_5:
	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
	ret
LBB0_6:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU401_MODE_BIT_OUTPUT,4,2     ; @MPU401_MODE_BIT_OUTPUT
	.comm	_MPU401_MODE_BIT_INPUT,4,2      ; @MPU401_MODE_BIT_INPUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_mpu401_uart_input_open
.subsections_via_symbols
