	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p32x_pwm_read16                ## -- Begin function p32x_pwm_read16
	.p2align	4, 0x90
_p32x_pwm_read16:                       ## @p32x_pwm_read16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%edi, %ebx
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_consume_fifo
	andl	$14, %ebx
	xorl	%r15d, %r15d
	cmpl	$8, %ebx
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	shrl	%ecx
	orl	$24, %ecx
	movl	(%rax,%rcx,4), %r15d
	jmp	LBB0_10
LBB0_7:
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movl	4(%rax), %eax
	testl	%eax, %eax
	je	LBB0_8
LBB0_5:
	cmpl	$3, %eax
	jne	LBB0_10
## %bb.6:
	movq	_P32XP_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_5
LBB0_8:
	movq	_P32XP_EMPTY@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
LBB0_10:
	movq	_EL_PWM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Pico32x@GOTPCREL(%rip), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r9d
	movl	4(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	callq	_elprintf
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_3
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_Pico32x,16,3                   ## @Pico32x
	.comm	_P32XP_FULL,4,2                 ## @P32XP_FULL
	.comm	_P32XP_EMPTY,4,2                ## @P32XP_EMPTY
	.comm	_EL_PWM,4,2                     ## @EL_PWM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pwm: %u: r16 %02x %04x (p %d %d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p32x_pwm_read16                ; -- Begin function p32x_pwm_read16
	.p2align	2
_p32x_pwm_read16:                       ; @p32x_pwm_read16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_consume_fifo
	mov	w20, #0
	and	w3, w21, #0xe
Lloh0:
	adrp	x8, _Pico32x@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico32x@GOTPAGEOFF]
	cmp	w3, #8
	b.hi	LBB0_11
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x3]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x9, [x8]
	lsr	w10, w3, #1
	orr	w10, w10, #0x18
	ldr	w20, [x9, w10, uxtw #2]
	b	LBB0_11
LBB0_3:
	ldr	x9, [x8, #8]
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_9
; %bb.4:
	cmp	w9, #3
	b.ne	LBB0_8
LBB0_5:
Lloh4:
	adrp	x9, _P32XP_FULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _P32XP_FULL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	cbz	w9, LBB0_9
; %bb.7:
	cmp	w9, #3
	b.eq	LBB0_5
LBB0_8:
	mov	w20, #0
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x9, _P32XP_EMPTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _P32XP_EMPTY@GOTPAGEOFF]
LBB0_10:
	ldr	w20, [x9]
LBB0_11:
Lloh8:
	adrp	x9, _EL_PWM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EL_PWM@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	ldr	x8, [x8, #8]
	ldp	w5, w6, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x20
	bl	_elprintf
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_Pico32x,16,3                   ; @Pico32x
	.comm	_P32XP_FULL,4,2                 ; @P32XP_FULL
	.comm	_P32XP_EMPTY,4,2                ; @P32XP_EMPTY
	.comm	_EL_PWM,4,2                     ; @EL_PWM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pwm: %u: r16 %02x %04x (p %d %d)"

.subsections_via_symbols
