	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_raw_cir                ## -- Begin function picolcd_raw_cir
	.p2align	4, 0x90
_picolcd_raw_cir:                       ## @picolcd_raw_cir
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %r13
	movq	$0, -48(%rbp)
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	$0, 4(%r13)
	je	LBB0_2
## %bb.1:
	movq	_PICOLCD_CIR_SHUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.4:
	movl	(%r14), %edi
	decl	%r15d
	movl	%r15d, %esi
	callq	_min
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	movl	$1, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r14,%rbx,4), %eax
	shll	$8, %eax
	orl	(%r14,%rbx,4), %eax
	movl	%eax, %ecx
	andl	$32768, %ecx                    ## imm = 0x8000
	movl	%ecx, %edx
	shrl	$15, %edx
	movl	$65536, %edi                    ## imm = 0x10000
	subl	%eax, %edi
	testl	%ecx, %ecx
	movl	%edx, -48(%rbp)
	cmovel	%eax, %edi
	callq	_US_TO_NS
                                        ## kill: def $eax killed $eax def $rax
	leal	-15000000(%rax), %ecx
	cmpl	$15000001, %eax                 ## imm = 0xE4E1C1
	cmovll	%eax, %ecx
	cmpq	$1, %rbx
	cmovnel	%eax, %ecx
	movl	%ecx, -44(%rbp)
	movl	4(%r13), %edi
	movq	%r12, %rsi
	callq	_ir_raw_event_store
	addq	$2, %rbx
	cmpl	%r15d, %ebx
	jl	LBB0_6
LBB0_7:
	movl	4(%r13), %edi
	callq	_ir_raw_event_handle
LBB0_8:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICOLCD_CIR_SHUN,4,2           ## @PICOLCD_CIR_SHUN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_raw_cir                ; -- Begin function picolcd_raw_cir
	.p2align	2
_picolcd_raw_cir:                       ; @picolcd_raw_cir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x22, x0, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PICOLCD_CIR_SHUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PICOLCD_CIR_SHUN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_8
LBB0_3:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	subs	w1, w21, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w0, [x20]
	bl	_min
	cmp	w0, #2
	b.lt	LBB0_7
; %bb.5:
	mov	x21, x0
	mov	x22, #0
	mov	w23, #65536
	mov	w24, #57792
	movk	w24, #228, lsl #16
	mov	w25, #7744
	movk	w25, #65307, lsl #16
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x22, lsl #2
	ldp	w9, w8, [x8]
	orr	w8, w8, w9, lsl #8
	sub	w9, w23, w8
	ands	w10, w8, #0x8000
	lsr	w10, w10, #15
	str	w10, [sp, #8]
	csel	w0, w8, w9, eq
	bl	_US_TO_NS
	cmp	w0, w24
	ccmp	x22, #0, #0, gt
	add	w8, w0, w25
	csel	w8, w8, w0, eq
	str	w8, [sp, #12]
	ldr	w0, [x19, #4]
	add	x1, sp, #8
	bl	_ir_raw_event_store
	add	x22, x22, #2
	add	w8, w22, #1
	cmp	w8, w21
	b.lt	LBB0_6
LBB0_7:
	ldr	w0, [x19, #4]
	bl	_ir_raw_event_handle
LBB0_8:
	mov	w0, #1
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PICOLCD_CIR_SHUN,4,2           ; @PICOLCD_CIR_SHUN
.subsections_via_symbols
