	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m68kspkr_event
_m68kspkr_event:                        ## @m68kspkr_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	_EV_SND@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	movl	$1000, %eax                     ## imm = 0x3E8
	cmovel	%ecx, %eax
	movl	%eax, %ecx
LBB0_4:
	leal	-21(%rcx), %eax
	xorl	%ebx, %ebx
	movl	$0, %edi
	cmpl	$32745, %eax                    ## imm = 0x7FE9
	ja	LBB0_6
## %bb.5:
	movl	$1193182, %eax                  ## imm = 0x1234DE
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edi
LBB0_6:
	movl	$-1, %esi
	callq	_mach_beep
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SND,4,2                     ## @EV_SND
	.no_dead_strip	_m68kspkr_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m68kspkr_event
_m68kspkr_event:                        ; @m68kspkr_event
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _EV_SND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_6
; %bb.1:
	cmp	w2, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #129
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #1000
	cmp	w3, #0
	csel	w3, wzr, w8, eq
LBB0_4:
	sub	w8, w3, #21
	mov	w9, #32745
	cmp	w8, w9
	b.hi	LBB0_7
; %bb.5:
	mov	w8, #13534
	movk	w8, #18, lsl #16
	udiv	w0, w8, w3
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #0
LBB0_8:
	mov	w1, #-1
	bl	_mach_beep
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SND,4,2                     ; @EV_SND
	.no_dead_strip	_m68kspkr_event
.subsections_via_symbols
