	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_sanyo_encode
_ir_sanyo_encode:                       ## @ir_sanyo_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, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdx, -48(%rbp)
	movl	%esi, %edi
	sarl	$8, %edi
	callq	_bitrev16
	movl	%eax, %ebx
	andl	$-8, %ebx
	shll	$26, %ebx
	movl	%r12d, %r13d
	notl	%r13d
	movl	%r13d, %edi
	sarl	$8, %edi
	callq	_bitrev16
	shll	$13, %eax
	andl	$536805376, %eax                ## imm = 0x1FFF0000
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_bitrev8
	shll	$8, %eax
	movzwl	%ax, %r12d
	orl	%ebx, %r12d
	movl	%r13d, %edi
	callq	_bitrev8
	movzbl	%al, %r8d
	orl	%r12d, %r8d
	movq	_SANYO_NBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ir_sanyo_timings@GOTPCREL(%rip), %rdx
	leaq	-48(%rbp), %rdi
	movl	%r14d, %esi
	callq	_ir_raw_gen_pd
	movq	-48(%rbp), %rcx
	subq	%r15, %rcx
	shrq	$2, %rcx
	testl	%eax, %eax
	cmovnsl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ir_sanyo_timings,4,2           ## @ir_sanyo_timings
	.comm	_SANYO_NBITS,4,2                ## @SANYO_NBITS
	.no_dead_strip	_ir_sanyo_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_sanyo_encode
_ir_sanyo_encode:                       ; @ir_sanyo_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	x19, x3
	mov	x20, x2
	mov	x21, x1
	str	x2, [sp, #8]
	asr	w0, w1, #8
	bl	_bitrev16
	lsl	w22, w0, #26
	mvn	w23, w21
	asr	w0, w23, #8
	bl	_bitrev16
	lsl	w8, w0, #13
	bfxil	w22, w8, #0, #29
	mov	x0, x21
	bl	_bitrev8
	bfi	w22, w0, #8, #8
	mov	x0, x23
	bl	_bitrev8
	bfxil	w22, w0, #0, #8
Lloh0:
	adrp	x8, _SANYO_NBITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SANYO_NBITS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _ir_sanyo_timings@GOTPAGE
Lloh4:
	ldr	x2, [x2, _ir_sanyo_timings@GOTPAGEOFF]
	add	x0, sp, #8
	mov	x1, x19
	mov	x4, x22
	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, #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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ir_sanyo_timings,4,2           ; @ir_sanyo_timings
	.comm	_SANYO_NBITS,4,2                ; @SANYO_NBITS
	.no_dead_strip	_ir_sanyo_encode
.subsections_via_symbols
