	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_remote_init            ## -- Begin function dvb_usb_remote_init
	.p2align	4, 0x90
_dvb_usb_remote_init:                   ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_dvb_usb_disable_rc_polling@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_DVB_RC_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_13
## %bb.5:
	movq	_DVB_RC_CORE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	movl	$4, %edx
	callq	_usb_make_path
	movl	48(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	cmpl	$39, 16(%rbx)
	jg	LBB0_8
## %bb.7:
	movl	$100, 16(%rbx)
LBB0_8:
	movq	8(%rbx), %rax
	movq	_DVB_RC_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_legacy_dvb_usb_remote_init
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_rc_core_dvb_usb_remote_init
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	movq	_DVB_USB_STATE_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dvb_usb_disable_rc_polling,8,3 ## @dvb_usb_disable_rc_polling
	.comm	_DVB_RC_LEGACY,8,3              ## @DVB_RC_LEGACY
	.comm	_DVB_RC_CORE,8,3                ## @DVB_RC_CORE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/ir0"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_remote_init            ; -- Begin function dvb_usb_remote_init
	.p2align	2
_dvb_usb_remote_init:                   ; @dvb_usb_remote_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _dvb_usb_disable_rc_polling@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dvb_usb_disable_rc_polling@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _DVB_RC_LEGACY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DVB_RC_LEGACY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_1
; %bb.7:
Lloh5:
	adrp	x8, _DVB_RC_CORE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DVB_RC_CORE@GOTPAGEOFF]
LBB0_8:
Lloh7:
	adrp	x20, _DVB_RC_LEGACY@GOTPAGE
Lloh8:
	ldr	x20, [x20, _DVB_RC_LEGACY@GOTPAGEOFF]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldp	w1, w0, [x19, #48]
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x19, #48]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	w8, [x19, #16]
	cmp	w8, #39
	b.gt	LBB0_10
; %bb.9:
	mov	w8, #100
	str	w8, [x19, #16]
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	bl	_legacy_dvb_usb_remote_init
	cbnz	w0, LBB0_2
	b	LBB0_13
LBB0_12:
	bl	_rc_core_dvb_usb_remote_init
	cbnz	w0, LBB0_2
LBB0_13:
Lloh11:
	adrp	x8, _DVB_USB_STATE_REMOTE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DVB_USB_STATE_REMOTE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dvb_usb_disable_rc_polling,8,3 ; @dvb_usb_disable_rc_polling
	.comm	_DVB_RC_LEGACY,8,3              ; @DVB_RC_LEGACY
	.comm	_DVB_RC_CORE,8,3                ; @DVB_RC_CORE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/ir0"

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