	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_handle_key
_ir_handle_key:                         ## @ir_handle_key
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	callq	_bttv_gpio_read
	movl	%eax, %r12d
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	cmpl	%r12d, (%rbx)
	jne	LBB0_2
## %bb.10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r12d, (%rbx)
LBB0_3:
	movl	24(%rbx), %esi
	movl	%r12d, %edi
	callq	_ir_extract_bits
	cmpq	$0, 16(%rbx)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rdx, %rcx
	movl	%eax, %r15d
	movl	4(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r8
	cmoveq	%rax, %r8
	movl	8(%rbx), %edx
	andl	%r12d, %edx
	leaq	L_.str.5(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_dprintk
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	andl	%r12d, %eax
	jne	LBB0_11
LBB0_5:
	movl	8(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	andl	%r12d, %eax
	jne	LBB0_7
LBB0_11:
	movl	12(%rbx), %edi
	movq	_RC_PROTO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keydown_notimeout           ## TAILCALL
LBB0_7:
	movq	(%r14), %rax
	movq	_BTTV_BOARD_WINFAST2000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	12(%rbx), %edi
	movq	_RC_PROTO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	callq	_rc_keydown_notimeout
LBB0_9:
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keyup                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq gpio=0x%x code=%d | %s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"poll"

L_.str.2:                               ## @.str.2
	.asciz	"irq"

L_.str.3:                               ## @.str.3
	.asciz	" down"

L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	" up"

	.comm	_RC_PROTO_UNKNOWN,4,2           ## @RC_PROTO_UNKNOWN
	.comm	_BTTV_BOARD_WINFAST2000,8,3     ## @BTTV_BOARD_WINFAST2000
	.no_dead_strip	_ir_handle_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_handle_key
_ir_handle_key:                         ; @ir_handle_key
	.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, x0
	ldr	x22, [x0, #8]
	bl	_bttv_gpio_read
	mov	x21, x0
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w8, [x22]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.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
	ret
LBB0_3:
	str	w21, [x22]
LBB0_4:
	ldr	w1, [x22, #24]
	mov	x0, x21
	bl	_ir_extract_bits
	mov	x20, x0
	ldr	x8, [x22, #16]
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x3, x10, x9, eq
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh6:
	adrp	x9, l_.str.4@PAGE
Lloh7:
	add	x9, x9, l_.str.4@PAGEOFF
	ldp	w10, w11, [x22, #4]
	tst	w10, w21
	csel	x4, x9, x8, eq
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
	tst	w11, w21
	csel	x5, x9, x8, eq
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_dprintk
	ldr	w8, [x22, #4]
	and	w9, w8, w21
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_8
; %bb.6:
	and	w8, w8, w21
	cbnz	w8, LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _RC_PROTO_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RC_PROTO_UNKNOWN@GOTPAGEOFF]
	ldr	w0, [x22, #12]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	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_notimeout
LBB0_8:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _BTTV_BOARD_WINFAST2000@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BTTV_BOARD_WINFAST2000@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	w0, [x22, #12]
Lloh18:
	adrp	x8, _RC_PROTO_UNKNOWN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RC_PROTO_UNKNOWN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #0
	bl	_rc_keydown_notimeout
LBB0_10:
	ldr	w0, [x22, #12]
	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_keyup
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq gpio=0x%x code=%d | %s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"poll"

l_.str.2:                               ; @.str.2
	.asciz	"irq"

l_.str.3:                               ; @.str.3
	.asciz	" down"

l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	" up"

	.comm	_RC_PROTO_UNKNOWN,4,2           ; @RC_PROTO_UNKNOWN
	.comm	_BTTV_BOARD_WINFAST2000,8,3     ; @BTTV_BOARD_WINFAST2000
	.no_dead_strip	_ir_handle_key
.subsections_via_symbols
