	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_opl4_read_memory           ## -- Begin function snd_opl4_read_memory
	.p2align	4, 0x90
_snd_opl4_read_memory:                  ## @snd_opl4_read_memory
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	_OPL4_REG_MEMORY_CONFIGURATION@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_snd_opl4_read
	movl	%eax, %r12d
	movl	(%r14), %esi
	movq	_OPL4_MODE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%r12d, %edx
	movq	%rbx, %rdi
	callq	_snd_opl4_write
	movq	_OPL4_REG_MEMORY_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	sarl	$16, %edx
	movq	%rbx, %rdi
	callq	_snd_opl4_write
	movq	_OPL4_REG_MEMORY_ADDRESS_MID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_snd_opl4_write
	movq	_OPL4_REG_MEMORY_ADDRESS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_snd_opl4_write
	movq	%rbx, %rdi
	callq	_snd_opl4_wait
	movq	_OPL4_REG_MEMORY_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_outb
	movq	%rbx, %rdi
	callq	_snd_opl4_wait
	movq	8(%rbx), %rdi
	incq	%rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_insb
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_snd_opl4_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OPL4_REG_MEMORY_CONFIGURATION,4,2 ## @OPL4_REG_MEMORY_CONFIGURATION
	.comm	_OPL4_MODE_BIT,4,2              ## @OPL4_MODE_BIT
	.comm	_OPL4_REG_MEMORY_ADDRESS_HIGH,4,2 ## @OPL4_REG_MEMORY_ADDRESS_HIGH
	.comm	_OPL4_REG_MEMORY_ADDRESS_MID,4,2 ## @OPL4_REG_MEMORY_ADDRESS_MID
	.comm	_OPL4_REG_MEMORY_ADDRESS_LOW,4,2 ## @OPL4_REG_MEMORY_ADDRESS_LOW
	.comm	_OPL4_REG_MEMORY_DATA,4,2       ## @OPL4_REG_MEMORY_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_opl4_read_memory           ; -- Begin function snd_opl4_read_memory
	.p2align	2
_snd_opl4_read_memory:                  ; @snd_opl4_read_memory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x24, _OPL4_REG_MEMORY_CONFIGURATION@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OPL4_REG_MEMORY_CONFIGURATION@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_opl4_read
	mov	x22, x0
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _OPL4_MODE_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPL4_MODE_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_snd_opl4_write
Lloh5:
	adrp	x8, _OPL4_REG_MEMORY_ADDRESS_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPL4_REG_MEMORY_ADDRESS_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	asr	w2, w23, #16
	mov	x0, x19
	bl	_snd_opl4_write
Lloh8:
	adrp	x8, _OPL4_REG_MEMORY_ADDRESS_MID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPL4_REG_MEMORY_ADDRESS_MID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	asr	w2, w23, #8
	mov	x0, x19
	bl	_snd_opl4_write
Lloh11:
	adrp	x8, _OPL4_REG_MEMORY_ADDRESS_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPL4_REG_MEMORY_ADDRESS_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_snd_opl4_write
	mov	x0, x19
	bl	_snd_opl4_wait
Lloh14:
	adrp	x8, _OPL4_REG_MEMORY_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OPL4_REG_MEMORY_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_outb
	mov	x0, x19
	bl	_snd_opl4_wait
	ldr	x8, [x19, #8]
	add	x0, x8, #1
	mov	x1, x21
	mov	x2, x20
	bl	_insb
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x22
	bl	_snd_opl4_write
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OPL4_REG_MEMORY_CONFIGURATION,4,2 ; @OPL4_REG_MEMORY_CONFIGURATION
	.comm	_OPL4_MODE_BIT,4,2              ; @OPL4_MODE_BIT
	.comm	_OPL4_REG_MEMORY_ADDRESS_HIGH,4,2 ; @OPL4_REG_MEMORY_ADDRESS_HIGH
	.comm	_OPL4_REG_MEMORY_ADDRESS_MID,4,2 ; @OPL4_REG_MEMORY_ADDRESS_MID
	.comm	_OPL4_REG_MEMORY_ADDRESS_LOW,4,2 ; @OPL4_REG_MEMORY_ADDRESS_LOW
	.comm	_OPL4_REG_MEMORY_DATA,4,2       ; @OPL4_REG_MEMORY_DATA
.subsections_via_symbols
