	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_cir               ## -- Begin function picolcd_init_cir
	.p2align	4, 0x90
_picolcd_init_cir:                      ## @picolcd_init_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RC_DRIVER_IR_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 64(%rax)
	movq	_RC_PROTO_BIT_ALL_IR_DECODER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_picolcd_cir_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_picolcd_cir_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	8(%r14), %rax
	movl	24(%rax), %ecx
	movl	%ecx, 44(%rbx)
	movl	20(%rax), %ecx
	movl	%ecx, 40(%rbx)
	movups	4(%rax), %xmm0
	movups	%xmm0, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	_PICOLCD_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_RC_MAP_RC6_MCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$100, %edi
	callq	_MS_TO_NS
	movl	%eax, 4(%rbx)
	movl	$1, %edi
	callq	_US_TO_NS
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rc_free_device
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_DRIVER_IR_RAW,4,2           ## @RC_DRIVER_IR_RAW
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ## @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_picolcd_cir_open,4,2           ## @picolcd_cir_open
	.comm	_picolcd_cir_close,4,2          ## @picolcd_cir_close
	.comm	_PICOLCD_NAME,4,2               ## @PICOLCD_NAME
	.comm	_RC_MAP_RC6_MCE,4,2             ## @RC_MAP_RC6_MCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_picolcd_init_cir               ; -- Begin function picolcd_init_cir
	.p2align	2
_picolcd_init_cir:                      ; @picolcd_init_cir
	.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, x0
Lloh0:
	adrp	x8, _RC_DRIVER_IR_RAW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_DRIVER_IR_RAW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #64]
Lloh3:
	adrp	x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_PROTO_BIT_ALL_IR_DECODER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #56]
Lloh6:
	adrp	x8, _picolcd_cir_open@GOTPAGE
Lloh7:
	ldr	x8, [x8, _picolcd_cir_open@GOTPAGEOFF]
Lloh8:
	adrp	x9, _picolcd_cir_close@GOTPAGE
Lloh9:
	ldr	x9, [x9, _picolcd_cir_close@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	ldr	x8, [x19, #8]
	ldur	d0, [x8, #20]
	str	d0, [x0, #40]
	ldur	q0, [x8, #4]
	stur	q0, [x0, #24]
	str	x8, [x0, #16]
Lloh12:
	adrp	x8, _PICOLCD_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PICOLCD_NAME@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _RC_MAP_RC6_MCE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RC_MAP_RC6_MCE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	mov	w0, #100
	bl	_MS_TO_NS
	str	w0, [x20, #4]
	mov	w0, #1
	bl	_US_TO_NS
	str	w0, [x20]
	mov	x0, x20
	bl	_rc_register_device
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_rc_free_device
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	str	x20, [x19]
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_DRIVER_IR_RAW,4,2           ; @RC_DRIVER_IR_RAW
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RC_PROTO_BIT_ALL_IR_DECODER,4,2 ; @RC_PROTO_BIT_ALL_IR_DECODER
	.comm	_picolcd_cir_open,4,2           ; @picolcd_cir_open
	.comm	_picolcd_cir_close,4,2          ; @picolcd_cir_close
	.comm	_PICOLCD_NAME,4,2               ; @PICOLCD_NAME
	.comm	_RC_MAP_RC6_MCE,4,2             ; @RC_MAP_RC6_MCE
.subsections_via_symbols
