	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function em28xx_get_key_em_haup
LCPI0_0:
	.long	128                             ## 0x80
	.long	512                             ## 0x200
	.long	32                              ## 0x20
	.long	8                               ## 0x8
LCPI0_1:
	.long	2048                            ## 0x800
	.long	4096                            ## 0x1000
	.long	1024                            ## 0x400
	.long	512                             ## 0x200
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_em28xx_get_key_em_haup
	.p2align	4, 0x90
_em28xx_get_key_em_haup:                ## @em28xx_get_key_em_haup
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	leaq	-26(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_master_recv
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movzbl	-25(%rbp), %eax
	cmpl	$255, %eax
	je	LBB0_3
## %bb.4:
	movb	%al, (%rbx)
	movzbl	-26(%rbp), %ecx
	movl	%ecx, %edx
	rolb	$4, %dl
	movl	%edx, %ebx
	andb	$51, %bl
	shlb	$2, %bl
	shrb	$2, %dl
	andb	$51, %dl
	orb	%bl, %dl
	movl	%edx, %ebx
	andb	$84, %bl
	addb	%bl, %bl
	shrb	%dl
	andb	$84, %dl
	orb	%bl, %dl
	shrb	$2, %dl
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pmaddwd	LCPI0_0(%rip), %xmm0
	movzbl	%dl, %edx
	pand	LCPI0_1(%rip), %xmm0
	movl	%eax, %esi
	addl	%eax, %esi
	andl	$256, %esi                      ## imm = 0x100
	orl	%edx, %esi
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ebx
	orl	%esi, %ebx
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_i2cdprintk
	movl	%ebx, (%r15)
	movl	%ebx, (%r14)
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ir hauppauge (em2840): code=0x%02x (rcv=0x%02x%02x)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function em28xx_get_key_em_haup
lCPI0_0:
	.long	7                               ; 0x7
	.long	9                               ; 0x9
	.long	5                               ; 0x5
	.long	3                               ; 0x3
lCPI0_1:
	.long	2048                            ; 0x800
	.long	4096                            ; 0x1000
	.long	1024                            ; 0x400
	.long	512                             ; 0x200
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_em28xx_get_key_em_haup
	.p2align	2
_em28xx_get_key_em_haup:                ; @em28xx_get_key_em_haup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	add	x1, sp, #14
	mov	w2, #2
	bl	_i2c_master_recv
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	ldrb	w2, [sp, #15]
	cmp	w2, #255
	b.eq	LBB0_4
; %bb.2:
	strb	w2, [x21]
	ldrb	w3, [sp, #14]
	rbit	w8, w3
	dup.4s	v0, w2
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
Lloh2:
	adrp	x9, lCPI0_1@PAGE
Lloh3:
	ldr	q1, [x9, lCPI0_1@PAGEOFF]
	and.16b	v0, v0, v1
	lsl	w9, w2, #1
	and	w9, w9, #0x100
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	orr	w9, w10, w9
	orr	w21, w9, w8, lsr #26
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_i2cdprintk
	str	w21, [x20]
	str	w21, [x19]
	mov	w0, #1
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ir hauppauge (em2840): code=0x%02x (rcv=0x%02x%02x)\n"

.subsections_via_symbols
