	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PWM_RR_TO_REG
_PWM_RR_TO_REG:                         ## @PWM_RR_TO_REG
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PWM_RR@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%r8), %eax
	movl	4(%r8), %r10d
	leal	(%rax,%r10), %ecx
	incl	%ecx
                                        ## kill: def $eax killed $eax killed $rax def $rax
	addl	%r10d, %eax
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	xorl	%eax, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.1:
	movl	8(%r8), %r9d
	movl	%r10d, %eax
	addl	%r9d, %eax
	leal	(%r10,%r9), %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	movl	$1, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.2:
	movl	12(%r8), %r10d
	movl	%r9d, %eax
	addl	%r10d, %eax
	leal	(%r9,%r10), %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	movl	$2, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.3:
	movl	16(%r8), %r9d
	movl	%r10d, %eax
	addl	%r9d, %eax
	leal	(%r10,%r9), %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	movl	$3, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.4:
	movl	20(%r8), %r10d
	movl	%r9d, %eax
	addl	%r10d, %eax
	leal	(%r9,%r10), %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	movl	$4, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.5:
	movl	24(%r8), %r9d
	movl	%r10d, %eax
	addl	%r9d, %eax
	leal	(%r10,%r9), %ecx
	incl	%ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	movl	$5, %eax
	cmpl	%edi, %ecx
	jl	LBB0_7
## %bb.6:
	movl	28(%r8), %eax
	movl	%r9d, %ecx
	addl	%eax, %ecx
	addl	%r9d, %eax
	incl	%eax
	shrl	$31, %eax
	addl	%eax, %ecx
	incl	%ecx
	sarl	%ecx
	xorl	%eax, %eax
	cmpl	%edi, %ecx
	setl	%al
	xorl	$7, %eax
LBB0_7:
	cmpl	$1, %esi
	jne	LBB0_9
## %bb.8:
	andl	$143, %edx
	shll	$4, %eax
	jmp	LBB0_10
LBB0_9:
	andl	$248, %edx
LBB0_10:
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWM_RR,8,3                     ## @PWM_RR
	.no_dead_strip	_PWM_RR_TO_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PWM_RR_TO_REG
_PWM_RR_TO_REG:                         ; @PWM_RR_TO_REG
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PWM_RR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PWM_RR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	w10, w9, [x8]
	add	w10, w10, w9
	add	w11, w10, #1
	add	w12, w10, #2
	cmp	w11, #0
	csinc	w10, w12, w10, lt
	cmp	w0, w10, asr #1
	b.le	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_13
LBB0_2:
	ldr	w10, [x8, #8]
	add	w9, w9, w10
	add	w11, w9, #1
	add	w12, w9, #2
	cmp	w11, #0
	csinc	w9, w12, w9, lt
	cmp	w0, w9, asr #1
	b.le	LBB0_4
; %bb.3:
	mov	w8, #1
	b	LBB0_13
LBB0_4:
	ldr	w9, [x8, #12]
	add	w10, w10, w9
	add	w11, w10, #1
	add	w12, w10, #2
	cmp	w11, #0
	csinc	w10, w12, w10, lt
	cmp	w0, w10, asr #1
	b.le	LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_13
LBB0_6:
	ldr	w10, [x8, #16]
	add	w9, w9, w10
	add	w11, w9, #1
	add	w12, w9, #2
	cmp	w11, #0
	csinc	w9, w12, w9, lt
	cmp	w0, w9, asr #1
	b.le	LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_13
LBB0_8:
	ldr	w9, [x8, #20]
	add	w10, w10, w9
	add	w11, w10, #1
	add	w12, w10, #2
	cmp	w11, #0
	csinc	w10, w12, w10, lt
	cmp	w0, w10, asr #1
	b.le	LBB0_10
; %bb.9:
	mov	w8, #4
	b	LBB0_13
LBB0_10:
	ldr	w10, [x8, #24]
	add	w9, w9, w10
	add	w11, w9, #1
	add	w12, w9, #2
	cmp	w11, #0
	csinc	w9, w12, w9, lt
	cmp	w0, w9, asr #1
	b.le	LBB0_12
; %bb.11:
	mov	w8, #5
	b	LBB0_13
LBB0_12:
	ldr	w8, [x8, #28]
	add	w8, w10, w8
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	cmp	w0, w8, asr #1
	mov	w8, #6
	cinc	w8, w8, le
LBB0_13:
	and	w9, w2, #0xf8
	orr	w9, w8, w9
	mov	w10, #143
	and	w10, w2, w10
	orr	w8, w10, w8, lsl #4
	cmp	w1, #1
	csel	w0, w9, w8, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWM_RR,8,3                     ; @PWM_RR
	.no_dead_strip	_PWM_RR_TO_REG
.subsections_via_symbols
