	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_mtpav_input_open
_snd_mtpav_input_open:                  ## @snd_mtpav_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%r15), %r12
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_MTPAV_MODE_INPUT_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$4, %rbx
	orl	%eax, 8(%r12,%rbx)
	movq	%r14, (%r12,%rbx)
	movl	4(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r15)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CREG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SIGC_INTEN@GOTPCREL(%rip), %rax
	movq	_SIGC_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_snd_mtpav_mputreg
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTPAV_MODE_INPUT_OPENED,4,2    ## @MTPAV_MODE_INPUT_OPENED
	.comm	_CREG,4,2                       ## @CREG
	.comm	_SIGC_INTEN,4,2                 ## @SIGC_INTEN
	.comm	_SIGC_WRITE,4,2                 ## @SIGC_WRITE
	.no_dead_strip	_snd_mtpav_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_mtpav_input_open
_snd_mtpav_input_open:                  ; @snd_mtpav_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
	ldp	x21, x8, [x0]
	ldr	x19, [x8]
	ldr	x22, [x19, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _MTPAV_MODE_INPUT_OPENED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTPAV_MODE_INPUT_OPENED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x9, x22, x21, lsl #4
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	str	x20, [x9]
	ldr	w8, [x19, #4]
	add	w9, w8, #1
	str	w9, [x19, #4]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CREG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CREG@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SIGC_INTEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIGC_INTEN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _SIGC_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIGC_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_snd_mtpav_mputreg
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MTPAV_MODE_INPUT_OPENED,4,2    ; @MTPAV_MODE_INPUT_OPENED
	.comm	_CREG,4,2                       ; @CREG
	.comm	_SIGC_INTEN,4,2                 ; @SIGC_INTEN
	.comm	_SIGC_WRITE,4,2                 ; @SIGC_WRITE
	.no_dead_strip	_snd_mtpav_input_open
.subsections_via_symbols
