	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_nec_encode
_ir_nec_encode:                         ## @ir_nec_encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rdx, -24(%rbp)
	callq	_ir_nec_scancode_to_raw
	movq	_NEC_NBITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ir_nec_timings@GOTPCREL(%rip), %rdx
	leaq	-24(%rbp), %rdi
	movl	%r14d, %esi
	movl	%eax, %r8d
	callq	_ir_raw_gen_pd
	movq	-24(%rbp), %rcx
	subq	%rbx, %rcx
	shrq	$2, %rcx
	testl	%eax, %eax
	cmovnsl	%ecx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ir_nec_timings,4,2             ## @ir_nec_timings
	.comm	_NEC_NBITS,4,2                  ## @NEC_NBITS
	.no_dead_strip	_ir_nec_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_nec_encode
_ir_nec_encode:                         ; @ir_nec_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	str	x2, [sp, #8]
	bl	_ir_nec_scancode_to_raw
	mov	x4, x0
Lloh0:
	adrp	x8, _NEC_NBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NEC_NBITS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _ir_nec_timings@GOTPAGE
Lloh4:
	ldr	x2, [x2, _ir_nec_timings@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x1, x19
	bl	_ir_raw_gen_pd
	ldr	x8, [sp, #8]
	sub	x8, x8, x20
	lsr	x8, x8, #2
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ir_nec_timings,4,2             ; @ir_nec_timings
	.comm	_NEC_NBITS,4,2                  ; @NEC_NBITS
	.no_dead_strip	_ir_nec_encode
.subsections_via_symbols
