	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc_core_dvb_usb_remote_init
_rc_core_dvb_usb_remote_init:           ## @rc_core_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	48(%rdi), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movups	32(%r15), %xmm0
	movups	%xmm0, 36(%rax)
	movq	72(%r15), %rdi
	movq	%rax, %rsi
	addq	$32, %rsi
	callq	_usb_to_input_id
	movq	88(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	80(%r15), %eax
	movl	%eax, 24(%rbx)
	movq	72(%r15), %rax
	movq	%rax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movl	28(%r15), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	$0, 64(%r15)
	movq	%rbx, 56(%r15)
	xorl	%r14d, %r14d
	cmpl	$0, 24(%r15)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 16(%r15)
	jne	LBB0_7
## %bb.6:
	movq	_dvb_usb_read_remote_control@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movl	8(%r15), %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_info
	movl	%ebx, %edi
	callq	_msecs_to_jiffies
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_rc_free_device
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dvb_usb_read_remote_control,4,2 ## @dvb_usb_read_remote_control
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"schedule remote query interval to %d msecs."

	.no_dead_strip	_rc_core_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 rc_core_dvb_usb_remote_init
_rc_core_dvb_usb_remote_init:           ; @rc_core_dvb_usb_remote_init
	.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	w0, [x0, #48]
	bl	_rc_allocate_device
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	q0, [x19, #32]
	stur	q0, [x0, #36]
	ldr	x0, [x19, #72]
	add	x1, x20, #32
	bl	_usb_to_input_id
	ldr	x8, [x19, #88]
	ldr	w8, [x8]
	ldr	w9, [x19, #80]
	stp	w9, w8, [x20, #24]
	ldr	x8, [x19, #72]
	stp	x19, x8, [x20, #8]
	ldr	w8, [x19, #28]
	str	w8, [x20]
	mov	x0, x20
	bl	_rc_register_device
	tbnz	w0, #31, LBB0_7
; %bb.2:
	stp	x20, xzr, [x19, #56]
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _dvb_usb_read_remote_control@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dvb_usb_read_remote_control@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
	ldr	w20, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_info
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_5:
	mov	w21, #0
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	mov	x0, x20
	bl	_rc_free_device
LBB0_8:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dvb_usb_read_remote_control,4,2 ; @dvb_usb_read_remote_control
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"schedule remote query interval to %d msecs."

	.no_dead_strip	_rc_core_dvb_usb_remote_init
.subsections_via_symbols
