	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_parse_rc5
_wbcir_parse_rc5:                       ## @wbcir_parse_rc5
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$1, %esi
	callq	_get_bits
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wbcir_get_rc5bits
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wbcir_get_rc5bits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_wbcir_get_rc5bits
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_wbcir_get_rc5bits
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_5:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	sete	%cl
	shll	$6, %ecx
	movl	%r12d, %r13d
	shll	$7, %r13d
	orl	%ecx, %eax
	orl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wbcir_keydown                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC5 - Invalid start bit\n"

L_.str.1:                               ## @.str.1
	.asciz	"RC5 - Invalid message\n"

L_.str.2:                               ## @.str.2
	.asciz	"IR-RC5 ad %u cm %u t %u s %u\n"

	.no_dead_strip	_wbcir_parse_rc5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_parse_rc5
_wbcir_parse_rc5:                       ; @wbcir_parse_rc5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #1
	bl	_get_bits
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_wbcir_get_rc5bits
	mov	x22, x0
	mov	x0, x19
	mov	w1, #1
	bl	_wbcir_get_rc5bits
	mov	x21, x0
	mov	x0, x19
	mov	w1, #5
	bl	_wbcir_get_rc5bits
	mov	x23, x0
	mov	x0, x19
	mov	w1, #6
	bl	_wbcir_get_rc5bits
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_dbg
LBB0_5:
	cmp	w22, #0
	cset	w8, eq
	orr	w8, w0, w8, lsl #6
	orr	w22, w8, w23, lsl #7
	stp	x23, x8, [sp]
	stp	x21, x22, [sp, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_wbcir_keydown
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC5 - Invalid start bit\n"

l_.str.1:                               ; @.str.1
	.asciz	"RC5 - Invalid message\n"

l_.str.2:                               ; @.str.2
	.asciz	"IR-RC5 ad %u cm %u t %u s %u\n"

	.no_dead_strip	_wbcir_parse_rc5
.subsections_via_symbols
