	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function legacy_dvb_usb_remote_init
_legacy_dvb_usb_remote_init:            ## @legacy_dvb_usb_remote_init
	.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, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movq	48(%r14), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	movl	48(%r12), %eax
	movl	%eax, 44(%r14)
	movq	40(%r12), %rdi
	movq	%r14, %rsi
	addq	$40, %rsi
	callq	_usb_to_input_id
	movq	40(%r12), %rax
	movq	%rax, 32(%r14)
	movq	%r14, 32(%r12)
	movq	$0, 24(%r12)
	movq	_legacy_dvb_usb_getkeycode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_legacy_dvb_usb_setkeycode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	8(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_rc
	cmpl	$0, 8(%r12)
	jle	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_deb_rc
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movl	16(%r14), %esi
	callq	_set_bit
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	12(%r12), %eax
	movq	8(%r14), %rcx
	movq	_REP_PERIOD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	$150, %eax
	addl	12(%r12), %eax
	movq	_REP_DELAY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_input_set_drvdata
	movq	%r14, %rdi
	callq	_input_register_device
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_input_free_device
LBB0_7:
	movl	12(%r12), %ebx
	leaq	4(%r12), %r14
	movq	_legacy_dvb_usb_read_remote_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_info
	movl	%ebx, %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	movq	_DVB_USB_STATE_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IR-receiver inside an USB DVB receiver"

	.comm	_legacy_dvb_usb_getkeycode,4,2  ## @legacy_dvb_usb_getkeycode
	.comm	_legacy_dvb_usb_setkeycode,4,2  ## @legacy_dvb_usb_setkeycode
L_.str.1:                               ## @.str.1
	.asciz	"key map size: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"setting bit for event %d item %d\n"

	.comm	_REP_PERIOD,8,3                 ## @REP_PERIOD
	.comm	_REP_DELAY,8,3                  ## @REP_DELAY
	.comm	_legacy_dvb_usb_read_remote_control,4,2 ## @legacy_dvb_usb_read_remote_control
L_.str.3:                               ## @.str.3
	.asciz	"schedule remote query interval to %d msecs."

	.comm	_DVB_USB_STATE_REMOTE,4,2       ## @DVB_USB_STATE_REMOTE
	.no_dead_strip	_legacy_dvb_usb_remote_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function legacy_dvb_usb_remote_init
_legacy_dvb_usb_remote_init:            ; @legacy_dvb_usb_remote_init
	.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, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT_MASK
	ldr	x8, [x20, #48]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	str	w0, [x8]
	str	x9, [x20]
	ldr	w8, [x19, #48]
	str	w8, [x20, #44]
	ldr	x0, [x19, #40]
	add	x1, x20, #40
	bl	_usb_to_input_id
	ldr	x8, [x19, #40]
	str	x8, [x20, #32]
	stp	xzr, x20, [x19, #24]
Lloh5:
	adrp	x8, _legacy_dvb_usb_getkeycode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _legacy_dvb_usb_getkeycode@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _legacy_dvb_usb_setkeycode@GOTPAGE
Lloh9:
	ldr	x9, [x9, _legacy_dvb_usb_setkeycode@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #20]
	ldr	w1, [x19, #8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_rc
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	lsl	x23, x22, #2
	ldr	w1, [x8, x23]
	str	x22, [sp]
	mov	x0, x21
	bl	_deb_rc
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x23]
	ldr	w1, [x20, #16]
	bl	_set_bit
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w8, [x19, #12]
	ldr	x9, [x20, #8]
Lloh15:
	adrp	x10, _REP_PERIOD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REP_PERIOD@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	ldr	w8, [x19, #12]
	add	w8, w8, #150
Lloh18:
	adrp	x10, _REP_DELAY@GOTPAGE
Lloh19:
	ldr	x10, [x10, _REP_DELAY@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	str	w8, [x9, x10, lsl #2]
	mov	x0, x20
	mov	x1, x19
	bl	_input_set_drvdata
	mov	x0, x20
	bl	_input_register_device
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_input_free_device
LBB0_6:
	ldr	w20, [x19, #12]
	add	x22, x19, #4
Lloh21:
	adrp	x8, _legacy_dvb_usb_read_remote_control@GOTPAGE
Lloh22:
	ldr	x8, [x8, _legacy_dvb_usb_read_remote_control@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_INIT_DELAYED_WORK
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_info
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_schedule_delayed_work
Lloh26:
	adrp	x8, _DVB_USB_STATE_REMOTE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DVB_USB_STATE_REMOTE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IR-receiver inside an USB DVB receiver"

	.comm	_legacy_dvb_usb_getkeycode,4,2  ; @legacy_dvb_usb_getkeycode
	.comm	_legacy_dvb_usb_setkeycode,4,2  ; @legacy_dvb_usb_setkeycode
l_.str.1:                               ; @.str.1
	.asciz	"key map size: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"setting bit for event %d item %d\n"

	.comm	_REP_PERIOD,8,3                 ; @REP_PERIOD
	.comm	_REP_DELAY,8,3                  ; @REP_DELAY
	.comm	_legacy_dvb_usb_read_remote_control,4,2 ; @legacy_dvb_usb_read_remote_control
l_.str.3:                               ; @.str.3
	.asciz	"schedule remote query interval to %d msecs."

	.comm	_DVB_USB_STATE_REMOTE,4,2       ; @DVB_USB_STATE_REMOTE
	.no_dead_strip	_legacy_dvb_usb_remote_init
.subsections_via_symbols
