	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function beep_linear_tone
_beep_linear_tone:                      ## @beep_linear_tone
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%esi, %esi
	jle	LBB0_4
## %bb.1:
	imull	$1000, %esi, %edi               ## imm = 0x3E8
	movq	_DIGBEEP_HZ_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	subl	%edx, %edi
	movq	_DIGBEEP_HZ_STEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	addl	%edi, %ecx
	js	LBB0_4
## %bb.2:
	movq	_DIGBEEP_HZ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%edx, %edi
	movl	$1, %eax
	cmpl	%edi, %ecx
	jge	LBB0_4
## %bb.3:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	movl	$255, %eax
	subl	%ecx, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DIGBEEP_HZ_MIN,4,2             ## @DIGBEEP_HZ_MIN
	.comm	_DIGBEEP_HZ_STEP,4,2            ## @DIGBEEP_HZ_STEP
	.comm	_DIGBEEP_HZ_MAX,4,2             ## @DIGBEEP_HZ_MAX
	.no_dead_strip	_beep_linear_tone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function beep_linear_tone
_beep_linear_tone:                      ; @beep_linear_tone
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, #1000
Lloh0:
	adrp	x8, _DIGBEEP_HZ_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIGBEEP_HZ_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w10, w8
	madd	w10, w1, w9, w10
Lloh3:
	adrp	x9, _DIGBEEP_HZ_STEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIGBEEP_HZ_STEP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w11, w9, lt
	adds	w10, w10, w11, asr #1
	b.mi	LBB0_4
; %bb.2:
Lloh6:
	adrp	x11, _DIGBEEP_HZ_MAX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DIGBEEP_HZ_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	sub	w8, w11, w8
	cmp	w10, w8
	b.ge	LBB0_5
; %bb.3:
	sdiv	w8, w10, w9
	mov	w9, #255
	sub	w0, w9, w8
	ret
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DIGBEEP_HZ_MIN,4,2             ; @DIGBEEP_HZ_MIN
	.comm	_DIGBEEP_HZ_STEP,4,2            ; @DIGBEEP_HZ_STEP
	.comm	_DIGBEEP_HZ_MAX,4,2             ; @DIGBEEP_HZ_MAX
	.no_dead_strip	_beep_linear_tone
.subsections_via_symbols
