	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound                          ## -- Begin function sound
	.p2align	4, 0x90
_sound:                                 ## @sound
	.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
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	$1193046, %eax                  ## imm = 0x123456
	xorl	%edx, %edx
	idivl	%edi
	movl	%eax, %ebx
	movl	$67, %edi
	movl	$182, %esi
	callq	_WRITE_PORT_UCHAR
	movzbl	%bl, %esi
	movl	$66, %edi
	callq	_WRITE_PORT_UCHAR
	sarl	$8, %ebx
	movl	$66, %edi
	movl	%ebx, %esi
	callq	_WRITE_PORT_UCHAR
	movl	$97, %edi
	callq	_READ_PORT_UCHAR
	orl	$3, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$97, %edi
	callq	_READ_PORT_UCHAR
	andl	$-4, %eax
LBB0_3:
	movl	$97, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_WRITE_PORT_UCHAR               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sound                          ; -- Begin function sound
	.p2align	2
_sound:                                 ; @sound
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #13398
	movk	w8, #18, lsl #16
	sdiv	w19, w8, w0
	mov	w0, #67
	mov	w1, #182
	bl	_WRITE_PORT_UCHAR
	and	w1, w19, #0xff
	mov	w0, #66
	bl	_WRITE_PORT_UCHAR
	asr	w1, w19, #8
	mov	w0, #66
	bl	_WRITE_PORT_UCHAR
	mov	w0, #97
	bl	_READ_PORT_UCHAR
	orr	w1, w0, #0x3
	b	LBB0_3
LBB0_2:
	mov	w0, #97
	bl	_READ_PORT_UCHAR
	and	w1, w0, #0xfffffffc
LBB0_3:
	mov	w0, #97
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WRITE_PORT_UCHAR
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
