	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_ir_handler              ## -- Begin function av7110_ir_handler
	.p2align	4, 0x90
_av7110_ir_handler:                     ## @av7110_ir_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%r15d, %edx
	callq	_dprintk
	testq	%r14, %r14
	je	LBB0_10
## %bb.1:
	movl	(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_8
## %bb.2:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$130, %edx
	jne	LBB0_7
## %bb.4:
	movl	%r15d, %esi
	andl	$63, %esi
	movl	%r15d, %edi
	shrl	$6, %edi
	andl	$31, %edi
	jmp	LBB0_5
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	%r15d, %edx
	andl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	movq	_RC_PROTO_RCMM32@GOTPCREL(%rip), %rax
	movl	$32768, %edi                    ## imm = 0x8000
	jmp	LBB0_9
LBB0_6:
	movl	%r15d, %eax
	andl	$63, %eax
	movl	%r15d, %esi
	shrl	$6, %esi
	movl	%esi, %edi
	andl	$31, %edi
	andl	$64, %esi
	orl	%eax, %esi
	xorl	$64, %esi
LBB0_5:
	callq	_RC_SCANCODE_RC5
	movl	%eax, %edx
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rax
	movl	$2048, %edi                     ## imm = 0x800
LBB0_9:
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	testl	%r15d, %edi
	setne	%cl
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keydown                     ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ir command = %08x\n"

	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
	.comm	_RC_PROTO_RCMM32,4,2            ## @RC_PROTO_RCMM32
L_.str.1:                               ## @.str.1
	.asciz	"unknown ir config %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av7110_ir_handler              ; -- Begin function av7110_ir_handler
	.p2align	2
_av7110_ir_handler:                     ; @av7110_ir_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x19
	bl	_dprintk
	cbz	x20, LBB0_5
; %bb.1:
	ldr	w2, [x21]
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w2, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w2, #130
	b.ne	LBB0_10
; %bb.4:
	and	w1, w19, #0x3f
	ubfx	w0, w19, #6, #5
	b	LBB0_8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	and	w2, w19, #0xffff7fff
Lloh2:
	adrp	x8, _RC_PROTO_RCMM32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RC_PROTO_RCMM32@GOTPAGEOFF]
	mov	w9, #32768
	b	LBB0_9
LBB0_7:
	lsr	w8, w19, #6
	ubfx	w0, w19, #6, #5
	and	w8, w8, #0x40
	bfxil	w8, w19, #0, #6
	eor	w1, w8, #0x40
LBB0_8:
	bl	_RC_SCANCODE_RC5
	mov	x2, x0
Lloh4:
	adrp	x8, _RC_PROTO_RC5@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RC_PROTO_RC5@GOTPAGEOFF]
	mov	w9, #2048
LBB0_9:
	ldr	w1, [x8]
	tst	w9, w19
	cset	w3, ne
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rc_keydown
LBB0_10:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dprintk
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ir command = %08x\n"

	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
	.comm	_RC_PROTO_RCMM32,4,2            ; @RC_PROTO_RCMM32
l_.str.1:                               ; @.str.1
	.asciz	"unknown ir config %d\n"

.subsections_via_symbols
