	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_sample
_convert_sample:                        ## @convert_sample
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_pwm_cycles@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edi, %ecx
	cmovbl	%ecx, %eax
	shrl	%ecx
	subl	%ecx, %eax
	movq	_pwm_mult@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm_cycles,4,2                 ## @pwm_cycles
	.comm	_pwm_mult,4,2                   ## @pwm_mult
	.no_dead_strip	_convert_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_sample
_convert_sample:                        ; @convert_sample
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _pwm_cycles@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pwm_cycles@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	csel	w9, w8, w0, lo
	sub	w8, w9, w8, lsr #1
Lloh3:
	adrp	x9, _pwm_mult@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pwm_mult@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w0, w8, w9
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm_cycles,4,2                 ; @pwm_cycles
	.comm	_pwm_mult,4,2                   ; @pwm_mult
	.no_dead_strip	_convert_sample
.subsections_via_symbols
