	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_key_pvr2000
_get_key_pvr2000:                       ## @get_key_pvr2000
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	$16, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testb	$-128, %bl
	je	LBB0_7
## %bb.3:
	movl	(%r14), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movzbl	%al, %r14d
	movzbl	%bl, %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_RC_PROTO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%r14d, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movl	$1, %r13d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_dprintk
LBB0_7:
	movl	%r13d, %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	"read error\n"

L_.str.1:                               ## @.str.1
	.asciz	"IR Key/Flags: (0x%02x/0x%02x)\n"

	.comm	_RC_PROTO_UNKNOWN,4,2           ## @RC_PROTO_UNKNOWN
	.no_dead_strip	_get_key_pvr2000
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_key_pvr2000
_get_key_pvr2000:                       ; @get_key_pvr2000
	.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
	mov	x23, x0
	ldr	w0, [x0]
	mov	w1, #16
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x22, x0
	tbz	w0, #7, LBB0_5
; %bb.2:
	ldr	w0, [x23]
	mov	w1, #0
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.3:
	and	w23, w0, #0xff
	and	w8, w22, #0xff
	stp	x23, x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x8, _RC_PROTO_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RC_PROTO_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x21]
	str	w23, [x20]
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read error\n"

l_.str.1:                               ; @.str.1
	.asciz	"IR Key/Flags: (0x%02x/0x%02x)\n"

	.comm	_RC_PROTO_UNKNOWN,4,2           ; @RC_PROTO_UNKNOWN
	.no_dead_strip	_get_key_pvr2000
.subsections_via_symbols
