	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_rc5_timer_end
_bttv_rc5_timer_end:                    ## @bttv_rc5_timer_end
	.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	_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	20(%rbx), %esi
	movl	%eax, %edi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_us
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, (%rbx)
	cmpl	$27999, %eax                    ## imm = 0x6D5F
	jg	LBB0_2
## %bb.1:
	cmpl	%ecx, %eax
	jg	LBB0_2
## %bb.8:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_2:
	movl	8(%rbx), %esi
	cmpl	$19, 4(%rbx)
	jg	LBB0_3
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_3:
	movb	12(%rbx), %cl
	shll	%cl, %esi
	orl	$1, %esi
	movl	%esi, 8(%rbx)
	movl	%esi, %edi
	callq	_bttv_rc5_decode
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_RC5_TOGGLE
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_RC5_ADDR
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_RC5_INSTR
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_RC5_START
	cmpl	$3, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.5:
	addl	$64, %r12d
LBB0_6:
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_RC_SCANCODE_RC5
	movl	%eax, %r15d
	movl	16(%rbx), %edi
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_rc_keydown
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_timer,4,2                      ## @timer
	.comm	_USEC_PER_SEC,4,2               ## @USEC_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious timer_end\n"

L_.str.1:                               ## @.str.1
	.asciz	"short code: %x\n"

	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
L_.str.2:                               ## @.str.2
	.asciz	"scancode %x, toggle %x\n"

	.comm	_ir,8,3                         ## @ir
	.no_dead_strip	_bttv_rc5_timer_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_rc5_timer_end
_bttv_rc5_timer_end:                    ; @bttv_rc5_timer_end
	.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
Lloh0:
	adrp	x8, _timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	bl	_ktime_get
	ldr	w1, [x19, #20]
	bl	_ktime_sub
	bl	_ktime_to_us
Lloh3:
	adrp	x8, _USEC_PER_SEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USEC_PER_SEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	wzr, [x19]
	mov	w9, #27999
	cmp	w0, w9
	ccmp	w0, w8, #0, le
	b.le	LBB0_3
; %bb.1:
	ldp	w9, w8, [x19, #4]
	cmp	w9, #19
	b.gt	LBB0_4
; %bb.2:
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_dprintk
LBB0_4:
	ldr	w9, [x19, #12]
	lsl	w8, w8, w9
	orr	w0, w8, #0x1
	str	w0, [x19, #8]
	bl	_bttv_rc5_decode
	mov	x23, x0
	bl	_RC5_TOGGLE
	mov	x20, x0
	mov	x0, x23
	bl	_RC5_ADDR
	mov	x21, x0
	mov	x0, x23
	bl	_RC5_INSTR
	mov	x22, x0
	mov	x0, x23
	bl	_RC5_START
	cmp	w0, #3
	b.eq	LBB0_7
; %bb.5:
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.6:
	add	w22, w22, #64
LBB0_7:
	mov	x0, x21
	mov	x1, x22
	bl	_RC_SCANCODE_RC5
	mov	x21, x0
	ldr	w0, [x19, #16]
Lloh10:
	adrp	x8, _RC_PROTO_RC5@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RC_PROTO_RC5@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, x20
	bl	_rc_keydown
	stp	x21, x20, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_dprintk
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_timer,4,2                      ; @timer
	.comm	_USEC_PER_SEC,4,2               ; @USEC_PER_SEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious timer_end\n"

l_.str.1:                               ; @.str.1
	.asciz	"short code: %x\n"

	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
l_.str.2:                               ; @.str.2
	.asciz	"scancode %x, toggle %x\n"

	.comm	_ir,8,3                         ; @ir
	.no_dead_strip	_bttv_rc5_timer_end
.subsections_via_symbols
