	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_pwm_irq
_do_pwm_irq:                            ## @do_pwm_irq
	.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
	movl	%esi, %ebx
	movq	_P32XI_PWM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_p32x_trigger_irq
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_P32XP_RTP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 96(%rax)
	je	LBB0_1
## %bb.2:
	movq	_P32X_EVENT_PWM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pwm_cycles@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$32, %rcx
	shrq	$63, %rax
	leal	(%rcx,%rax), %edx
	incl	%edx
	movl	%ebx, %edi
	callq	_p32x_event_schedule
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_p32x_dreq1_trigger             ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P32XI_PWM,4,2                  ## @P32XI_PWM
	.comm	_Pico32x,8,3                    ## @Pico32x
	.comm	_P32XP_RTP,4,2                  ## @P32XP_RTP
	.comm	_P32X_EVENT_PWM,4,2             ## @P32X_EVENT_PWM
	.comm	_pwm_cycles,4,2                 ## @pwm_cycles
	.no_dead_strip	_do_pwm_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_pwm_irq
_do_pwm_irq:                            ; @do_pwm_irq
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _P32XI_PWM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P32XI_PWM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_p32x_trigger_irq
Lloh3:
	adrp	x8, _Pico32x@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Pico32x@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, #96]
Lloh6:
	adrp	x9, _P32XP_RTP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _P32XP_RTP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _P32X_EVENT_PWM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _P32X_EVENT_PWM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _pwm_cycles@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pwm_cycles@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	add	w2, w8, #1
	mov	x0, x19
	bl	_p32x_event_schedule
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_p32x_dreq1_trigger
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P32XI_PWM,4,2                  ; @P32XI_PWM
	.comm	_Pico32x,8,3                    ; @Pico32x
	.comm	_P32XP_RTP,4,2                  ; @P32XP_RTP
	.comm	_P32X_EVENT_PWM,4,2             ; @P32X_EVENT_PWM
	.comm	_pwm_cycles,4,2                 ; @pwm_cycles
	.no_dead_strip	_do_pwm_irq
.subsections_via_symbols
