	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_rcmm_encode
_ir_rcmm_encode:                        ## @ir_rcmm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %eax
	movq	%rdx, -16(%rbp)
	cmpl	$130, %edi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %edi
	je	LBB0_5
## %bb.2:
	cmpl	$128, %edi
	jne	LBB0_7
## %bb.3:
	leaq	-16(%rbp), %rdi
	movl	%ecx, %esi
	movl	$32, %edx
	jmp	LBB0_4
LBB0_6:
	leaq	-16(%rbp), %rdi
	movl	%ecx, %esi
	movl	$12, %edx
	jmp	LBB0_4
LBB0_5:
	leaq	-16(%rbp), %rdi
	movl	%ecx, %esi
	movl	$24, %edx
LBB0_4:
	movl	%eax, %ecx
	callq	_ir_rcmm_rawencoder
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	-16(%rbp), %rcx
	subq	%rbx, %rcx
	shrq	$2, %rcx
	testl	%eax, %eax
	cmovsl	%eax, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_rcmm_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_rcmm_encode
_ir_rcmm_encode:                        ; @ir_rcmm_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, x2
	mov	x8, x1
	str	x2, [sp, #8]
	cmp	w0, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #128
	b.ne	LBB0_7
; %bb.3:
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #32
	b	LBB0_6
LBB0_4:
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #12
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	mov	x1, x3
	mov	w2, #24
LBB0_6:
	mov	x3, x8
	bl	_ir_rcmm_rawencoder
	b	LBB0_8
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ir_rcmm_encode
.subsections_via_symbols
