	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl3_timer1_start
_snd_opl3_timer1_start:                 ## @snd_opl3_timer1_start
	.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, %r15
	callq	_snd_timer_chip
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_OPL3_TIMER1_START@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	(%r12), %al
	movq	_OPL3_TIMER1_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %bl
	notb	%bl
	andb	%al, %bl
	xorl	%eax, %eax
	movb	(%r15), %cl
	subb	%cl, %al
	movb	%bl, (%r12)
	movq	_OPL3_LEFT@GOTPCREL(%rip), %r15
	movq	_OPL3_REG_TIMER1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%r15), %esi
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	*8(%r12)
	movq	_OPL3_REG_TIMER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15), %esi
	movzbl	%bl, %edx
	movq	%r12, %rdi
	callq	*8(%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPL3_TIMER1_START,1,0          ## @OPL3_TIMER1_START
	.comm	_OPL3_TIMER1_MASK,1,0           ## @OPL3_TIMER1_MASK
	.comm	_OPL3_LEFT,4,2                  ## @OPL3_LEFT
	.comm	_OPL3_REG_TIMER1,4,2            ## @OPL3_REG_TIMER1
	.comm	_OPL3_REG_TIMER_CONTROL,4,2     ## @OPL3_REG_TIMER_CONTROL
	.no_dead_strip	_snd_opl3_timer1_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl3_timer1_start
_snd_opl3_timer1_start:                 ; @snd_opl3_timer1_start
	.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
	bl	_snd_timer_chip
	mov	x20, x0
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldrb	w8, [x19]
Lloh0:
	adrp	x9, _OPL3_TIMER1_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPL3_TIMER1_START@GOTPAGEOFF]
	ldrb	w10, [x20]
	ldrb	w9, [x9]
	orr	w9, w9, w10
Lloh2:
	adrp	x10, _OPL3_TIMER1_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OPL3_TIMER1_MASK@GOTPAGEOFF]
	ldrb	w10, [x10]
	bic	w19, w9, w10
	strb	w19, [x20]
	ldr	x9, [x20, #8]
Lloh4:
	adrp	x22, _OPL3_LEFT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _OPL3_LEFT@GOTPAGEOFF]
	ldr	w10, [x22]
Lloh6:
	adrp	x11, _OPL3_REG_TIMER1@GOTPAGE
Lloh7:
	ldr	x11, [x11, _OPL3_REG_TIMER1@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w1, w11, w10
	neg	w8, w8
	and	w2, w8, #0xff
	mov	x0, x20
	blr	x9
	ldr	x8, [x20, #8]
	ldr	w9, [x22]
Lloh9:
	adrp	x10, _OPL3_REG_TIMER_CONTROL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _OPL3_REG_TIMER_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w1, w10, w9
	and	w2, w19, #0xff
	mov	x0, x20
	blr	x8
	mov	x0, x21
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OPL3_TIMER1_START,1,0          ; @OPL3_TIMER1_START
	.comm	_OPL3_TIMER1_MASK,1,0           ; @OPL3_TIMER1_MASK
	.comm	_OPL3_LEFT,4,2                  ; @OPL3_LEFT
	.comm	_OPL3_REG_TIMER1,4,2            ; @OPL3_REG_TIMER1
	.comm	_OPL3_REG_TIMER_CONTROL,4,2     ; @OPL3_REG_TIMER_CONTROL
	.no_dead_strip	_snd_opl3_timer1_start
.subsections_via_symbols
