	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_rc5_decode
_bttv_rc5_decode:                       ## @bttv_rc5_decode
	.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	%edi, %r14d
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.1:
	movl	%r14d, %eax
	shrl	$2, %eax
	xorl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	movl	$2, %ebx
LBB0_3:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.4:
	movl	%r14d, %ecx
	shrl	$4, %ecx
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.5:
	orl	$1, %ebx
LBB0_6:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.7:
	movl	%r14d, %eax
	shrl	$6, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_9
## %bb.8:
	orl	$1, %ebx
LBB0_9:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.10:
	movl	%r14d, %ecx
	shrl	$8, %ecx
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.11:
	orl	$1, %ebx
LBB0_12:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.13:
	movl	%r14d, %eax
	shrl	$10, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_15
## %bb.14:
	orl	$1, %ebx
LBB0_15:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.16:
	movl	%r14d, %ecx
	shrl	$12, %ecx
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.17:
	orl	$1, %ebx
LBB0_18:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.19:
	movl	%r14d, %eax
	shrl	$14, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_21
## %bb.20:
	orl	$1, %ebx
LBB0_21:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.22:
	movl	%r14d, %ecx
	shrl	$16, %ecx
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_24
## %bb.23:
	orl	$1, %ebx
LBB0_24:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.25:
	movl	%r14d, %eax
	shrl	$18, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_27
## %bb.26:
	orl	$1, %ebx
LBB0_27:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.28:
	movl	%r14d, %ecx
	shrl	$20, %ecx
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_30
## %bb.29:
	orl	$1, %ebx
LBB0_30:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.31:
	movl	%r14d, %eax
	shrl	$22, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_33
## %bb.32:
	orl	$1, %ebx
LBB0_33:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.34:
	movl	%r14d, %ecx
	shrl	$24, %ecx
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_36
## %bb.35:
	orl	$1, %ebx
LBB0_36:
	andl	$3, %ecx
	cmpl	$3, %ecx
	je	LBB0_44
## %bb.37:
	movl	%r14d, %eax
	shrl	$26, %eax
	addl	%ebx, %ebx
	cmpl	$1, %ecx
	jne	LBB0_39
## %bb.38:
	orl	$1, %ebx
LBB0_39:
	andl	$3, %eax
	cmpl	$3, %eax
	je	LBB0_44
## %bb.40:
	addl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_42
## %bb.41:
	orl	$1, %ebx
LBB0_42:
	movl	%ebx, %edi
	callq	_RC5_START
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_RC5_TOGGLE
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_RC5_ADDR
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_RC5_INSTR
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_43
LBB0_44:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_43:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rc5_decode(%x) bad code\n"

L_.str.1:                               ## @.str.1
	.asciz	"code=%x, rc5=%x, start=%x, toggle=%x, address=%x, instr=%x\n"

	.no_dead_strip	_bttv_rc5_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_rc5_decode
_bttv_rc5_decode:                       ; @bttv_rc5_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	and	w8, w0, #0x3
	cmp	w8, #3
	b.eq	LBB0_33
; %bb.1:
	mov	w9, #2
	cmp	w8, #1
	csel	w8, wzr, w9, ne
	ubfx	w9, w19, #2, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.2:
	orr	w10, w8, #0x1
	cmp	w9, #1
	csel	w9, w8, w10, ne
	ubfx	w8, w19, #4, #2
	cmp	w8, #3
	b.eq	LBB0_33
; %bb.3:
	lsl	w9, w9, #1
	orr	w10, w9, #0x1
	cmp	w8, #1
	csel	w9, w9, w10, ne
	ubfx	w8, w19, #6, #2
	cmp	w8, #3
	b.eq	LBB0_33
; %bb.4:
	lsl	w9, w9, #1
	orr	w10, w9, #0x1
	cmp	w8, #1
	csel	w8, w9, w10, ne
	ubfx	w9, w19, #8, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.5:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.6:
	orr	w8, w8, #0x1
LBB0_7:
	ubfx	w9, w19, #10, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.8:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_10
; %bb.9:
	orr	w8, w8, #0x1
LBB0_10:
	ubfx	w9, w19, #12, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.11:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_13
; %bb.12:
	orr	w8, w8, #0x1
LBB0_13:
	ubfx	w9, w19, #14, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.14:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_16
; %bb.15:
	orr	w8, w8, #0x1
LBB0_16:
	ubfx	w9, w19, #16, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.17:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_19
; %bb.18:
	orr	w8, w8, #0x1
LBB0_19:
	ubfx	w9, w19, #18, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.20:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_22
; %bb.21:
	orr	w8, w8, #0x1
LBB0_22:
	ubfx	w9, w19, #20, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.23:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_25
; %bb.24:
	orr	w8, w8, #0x1
LBB0_25:
	ubfx	w9, w19, #22, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.26:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_28
; %bb.27:
	orr	w8, w8, #0x1
LBB0_28:
	ubfx	w9, w19, #24, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.29:
	lsl	w8, w8, #1
	cmp	w9, #1
	b.ne	LBB0_31
; %bb.30:
	orr	w8, w8, #0x1
LBB0_31:
	ubfx	w9, w19, #26, #2
	cmp	w9, #3
	b.eq	LBB0_33
; %bb.32:
	lsl	w8, w8, #1
	orr	w10, w8, #0x1
	cmp	w9, #1
	csel	w20, w8, w10, ne
	mov	x0, x20
	bl	_RC5_START
	mov	x21, x0
	mov	x0, x20
	bl	_RC5_TOGGLE
	mov	x22, x0
	mov	x0, x20
	bl	_RC5_ADDR
	mov	x23, x0
	mov	x0, x20
	bl	_RC5_INSTR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #24]
	stp	x21, x22, [sp, #8]
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	b	LBB0_34
LBB0_33:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dprintk
	mov	w20, #0
LBB0_34:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rc5_decode(%x) bad code\n"

l_.str.1:                               ; @.str.1
	.asciz	"code=%x, rc5=%x, start=%x, toggle=%x, address=%x, instr=%x\n"

	.no_dead_strip	_bttv_rc5_decode
.subsections_via_symbols
