	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu1010_fpga_read          ## -- Begin function snd_emu1010_fpga_read
	.p2align	4, 0x90
_snd_emu1010_fpga_read:                 ## @snd_emu1010_fpga_read
	.cfi_startproc
## %bb.0:
	movl	$1, %eax
	cmpl	$63, %esi
	jg	LBB0_2
## %bb.1:
	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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	addl	$64, %ebx
	callq	_spin_lock_irqsave
	movq	_A_IOCFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_outl
	movl	$10, %edi
	callq	_udelay
	orl	$128, %ebx
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_outl
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	8(%r15), %rdi
	callq	_inl
	shrl	$8, %eax
	andl	$127, %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_IOCFG,8,3                    ## @A_IOCFG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_emu1010_fpga_read          ; -- Begin function snd_emu1010_fpga_read
	.p2align	2
_snd_emu1010_fpga_read:                 ; @snd_emu1010_fpga_read
	.cfi_startproc
; %bb.0:
	cmp	w1, #63
	b.le	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
	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, x2
	mov	x19, x0
	add	w21, w1, #64
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _A_IOCFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A_IOCFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x21
	bl	_outl
	mov	w0, #10
	bl	_udelay
	orr	w0, w21, #0x80
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_outl
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inl
	ubfx	w8, w0, #8, #7
	str	w8, [x20]
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_A_IOCFG,8,3                    ; @A_IOCFG
.subsections_via_symbols
