	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtt200u_rc_query
_dtt200u_rc_query:                      ## @dtt200u_rc_query
	.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	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_mutex_lock
	movq	_GET_RC_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	movl	$1, %edx
	movl	$5, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	(%r15), %rcx
	movl	(%rcx), %eax
	cmpl	$2, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:
	movl	12(%rcx), %eax
	movl	%eax, %edx
	notl	%edx
	cmpl	%edx, 16(%rcx)
	jne	LBB0_6
## %bb.4:
	movl	4(%rcx), %esi
	movl	8(%rcx), %ecx
	movl	%esi, %edi
	notl	%edi
	movl	%esi, %edx
	shll	$8, %edx
	orl	%ecx, %edx
	cmpl	%edi, %ecx
	cmovel	%esi, %edx
	movq	_RC_PROTO_NECX@GOTPCREL(%rip), %rcx
	cmoveq	_RC_PROTO_NEC@GOTPCREL(%rip), %rcx
	shll	$8, %edx
	orl	%eax, %edx
	movl	(%rcx), %esi
	movl	4(%rbx), %edi
	xorl	%ecx, %ecx
	callq	_rc_keydown
	jmp	LBB0_7
LBB0_6:
	movl	4(%rbx), %edi
	callq	_rc_keyup
	jmp	LBB0_7
LBB0_5:
	movl	4(%rbx), %edi
	callq	_rc_repeat
LBB0_7:
	movq	(%r15), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	movl	$5, %esi
	callq	_deb_info
LBB0_9:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_RC_CODE,4,2                ## @GET_RC_CODE
	.comm	_RC_PROTO_NEC,4,2               ## @RC_PROTO_NEC
	.comm	_RC_PROTO_NECX,4,2              ## @RC_PROTO_NECX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st->data: %*ph\n"

	.no_dead_strip	_dtt200u_rc_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtt200u_rc_query
_dtt200u_rc_query:                      ; @dtt200u_rc_query
	.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	x21, [x0, #8]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _GET_RC_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_RC_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x21]
	str	w8, [x1]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x1
	mov	w4, #5
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #1
	b.ne	LBB0_5
; %bb.3:
	ldp	w9, w10, [x8, #12]
	mvn	w11, w9
	cmp	w10, w11
	b.ne	LBB0_5
; %bb.4:
	ldp	w8, w10, [x8, #4]
	mvn	w11, w8
	orr	w12, w10, w8, lsl #8
	cmp	w10, w11
	csel	w8, w8, w12, eq
Lloh3:
	adrp	x10, _RC_PROTO_NEC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RC_PROTO_NEC@GOTPAGEOFF]
	orr	w2, w9, w8, lsl #8
Lloh5:
	adrp	x8, _RC_PROTO_NECX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_PROTO_NECX@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w1, [x8]
	ldr	w0, [x19, #4]
	mov	w3, #0
	bl	_rc_keydown
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #4]
	bl	_rc_keyup
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_rc_repeat
LBB0_7:
	ldr	x2, [x21]
	ldr	w8, [x2]
	cbz	w8, LBB0_9
; %bb.8:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #5
	bl	_deb_info
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_RC_CODE,4,2                ; @GET_RC_CODE
	.comm	_RC_PROTO_NEC,4,2               ; @RC_PROTO_NEC
	.comm	_RC_PROTO_NECX,4,2              ; @RC_PROTO_NECX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st->data: %*ph\n"

	.no_dead_strip	_dtt200u_rc_query
.subsections_via_symbols
