	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_rc6_encode
_ir_rc6_encode:                         ## @ir_rc6_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	%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, %r12d
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdx, -48(%rbp)
	movq	_RC_PROTO_RC6_0@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_ir_rc6_timings@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	_RC6_HEADER_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movl	$8, %r8d
	callq	_ir_raw_gen_manchester
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	shrq	$2, %rax
	movl	%r12d, %esi
	subl	%eax, %esi
	movq	(%rbx), %rdx
	addq	$4, %rdx
	leaq	-48(%rbp), %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ir_raw_gen_manchester
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	shrq	$2, %rax
	subl	%eax, %r12d
	movq	(%rbx), %rdx
	addq	$8, %rdx
	movq	_RC6_0_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_9
LBB0_4:
	movl	%edi, %ebx
	addl	$-128, %ebx
	cmpl	$4, %ebx
	jae	LBB0_5
## %bb.6:
	movq	_ir_rc6_timings@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	_RC6_HEADER_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movl	$14, %r8d
	callq	_ir_raw_gen_manchester
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	shrq	$2, %rax
	movl	%r12d, %esi
	subl	%eax, %esi
	movq	(%r13), %rdx
	addq	$4, %rdx
	leaq	-48(%rbp), %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_ir_raw_gen_manchester
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movslq	%ebx, %rax
	leaq	L_switch.table.ir_rc6_encode(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	shrq	$2, %rax
	subl	%eax, %r12d
	movq	(%r13), %rdx
	addq	$8, %rdx
LBB0_9:
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movl	%r14d, %r8d
	callq	_ir_raw_gen_manchester
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	subq	%r15, %rax
	shrq	$2, %rax
	jmp	LBB0_11
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_PROTO_RC6_0,4,2             ## @RC_PROTO_RC6_0
	.comm	_ir_rc6_timings,8,3             ## @ir_rc6_timings
	.comm	_RC6_HEADER_NBITS,4,2           ## @RC6_HEADER_NBITS
	.comm	_RC6_0_NBITS,4,2                ## @RC6_0_NBITS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_rc6_encode
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ir_rc6_encode
L_switch.table.ir_rc6_encode:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	24                              ## 0x18
	.long	20                              ## 0x14

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_rc6_encode
_ir_rc6_encode:                         ; @ir_rc6_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	str	x2, [sp, #8]
Lloh0:
	adrp	x8, _RC_PROTO_RC6_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_PROTO_RC6_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x22, _ir_rc6_timings@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ir_rc6_timings@GOTPAGEOFF]
	ldr	x2, [x22]
Lloh5:
	adrp	x8, _RC6_HEADER_NBITS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC6_HEADER_NBITS@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	w4, #8
	bl	_ir_raw_gen_manchester
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x8, x8, #2
	sub	w1, w21, w8
	ldr	x8, [x22]
	add	x2, x8, #4
	add	x0, sp, #8
	mov	w3, #1
	mov	w4, #0
	bl	_ir_raw_gen_manchester
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x8, x8, #2
	sub	w1, w21, w8
	ldr	x8, [x22]
	add	x2, x8, #8
Lloh8:
	adrp	x8, _RC6_0_NBITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC6_0_NBITS@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	b	LBB0_8
LBB0_4:
	sub	w23, w0, #128
	cmp	w23, #4
	b.hs	LBB0_10
; %bb.5:
Lloh11:
	adrp	x22, _ir_rc6_timings@GOTPAGE
Lloh12:
	ldr	x22, [x22, _ir_rc6_timings@GOTPAGEOFF]
	ldr	x2, [x22]
Lloh13:
	adrp	x8, _RC6_HEADER_NBITS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RC6_HEADER_NBITS@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	w4, #14
	bl	_ir_raw_gen_manchester
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x8, x8, #2
	sub	w1, w21, w8
	ldr	x8, [x22]
	add	x2, x8, #4
	add	x0, sp, #8
	mov	w3, #1
	mov	w4, #0
	bl	_ir_raw_gen_manchester
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.7:
Lloh16:
	adrp	x8, l_switch.table.ir_rc6_encode@PAGE
Lloh17:
	add	x8, x8, l_switch.table.ir_rc6_encode@PAGEOFF
	ldr	w3, [x8, w23, sxtw #2]
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x8, x8, #2
	sub	w1, w21, w8
	ldr	x8, [x22]
	add	x2, x8, #8
LBB0_8:
	add	x0, sp, #8
	mov	x4, x20
	bl	_ir_raw_gen_manchester
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	x8, [sp, #8]
	sub	x8, x8, x19
	lsr	x0, x8, #2
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_PROTO_RC6_0,4,2             ; @RC_PROTO_RC6_0
	.comm	_ir_rc6_timings,8,3             ; @ir_rc6_timings
	.comm	_RC6_HEADER_NBITS,4,2           ; @RC6_HEADER_NBITS
	.comm	_RC6_0_NBITS,4,2                ; @RC6_0_NBITS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ir_rc6_encode
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ir_rc6_encode
l_switch.table.ir_rc6_encode:
	.long	32                              ; 0x20
	.long	32                              ; 0x20
	.long	24                              ; 0x18
	.long	20                              ; 0x14

.subsections_via_symbols
