	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_ptr_read           ## -- Begin function snd_emu10k1_ptr_read
	.p2align	4, 0x90
_snd_emu10k1_ptr_read:                  ## @snd_emu10k1_ptr_read
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	jne	LBB0_1
## %bb.2:
	movq	_PTR_ADDRESS_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_A_PTR_ADDRESS_MASK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	%r15d, %ecx
	shll	$16, %ecx
	andl	(%rax), %ecx
	movq	_PTR_CHANNELNUM_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	orl	%ecx, %ebx
	cmpl	$16777216, %r15d                ## imm = 0x1000000
	jae	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_outl
	movq	_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_inl
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_4:
	movl	%r15d, %ecx
	shrl	$24, %ecx
	shrl	$16, %r15d
	movl	$-1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	notl	%r12d
	movl	%r15d, %ecx
	shll	%cl, %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	callq	_outl
	movq	_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_inl
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	andl	%r12d, %ebx
	movl	%r15d, %ecx
	shrl	%cl, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_PTR_ADDRESS_MASK,4,2         ## @A_PTR_ADDRESS_MASK
	.comm	_PTR_ADDRESS_MASK,4,2           ## @PTR_ADDRESS_MASK
	.comm	_PTR_CHANNELNUM_MASK,4,2        ## @PTR_CHANNELNUM_MASK
	.comm	_PTR,8,3                        ## @PTR
	.comm	_DATA,8,3                       ## @DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu10k1_ptr_read           ; -- Begin function snd_emu10k1_ptr_read
	.p2align	2
_snd_emu10k1_ptr_read:                  ; @snd_emu10k1_ptr_read
	.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	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _A_PTR_ADDRESS_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _A_PTR_ADDRESS_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PTR_ADDRESS_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PTR_ADDRESS_MASK@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	and	w8, w8, w1, lsl #16
Lloh4:
	adrp	x9, _PTR_CHANNELNUM_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PTR_CHANNELNUM_MASK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	and	w9, w9, w2
	orr	w20, w8, w9
	lsr	w8, w1, #24
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _PTR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PTR@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outl
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _DATA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DATA@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	b	LBB0_3
LBB0_2:
	lsr	w21, w1, #16
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	lsl	w22, w8, w21
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _PTR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PTR@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outl
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _DATA@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DATA@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	and	w8, w20, w22
	lsr	w0, w8, w21
LBB0_3:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_A_PTR_ADDRESS_MASK,4,2         ; @A_PTR_ADDRESS_MASK
	.comm	_PTR_ADDRESS_MASK,4,2           ; @PTR_ADDRESS_MASK
	.comm	_PTR_CHANNELNUM_MASK,4,2        ; @PTR_CHANNELNUM_MASK
	.comm	_PTR,8,3                        ; @PTR
	.comm	_DATA,8,3                       ; @DATA
.subsections_via_symbols
