	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_init_rcp_input_dev
_sii8620_init_rcp_input_dev:            ## @sii8620_init_rcp_input_dev
	.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, %r14
	movq	_RC_DRIVER_SCANCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rc_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_RC_MAP_CEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_RC_PROTO_BIT_CEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_rc_register_device
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, %r15d
	movl	16(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r15d, (%r14)
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_free_device                 ## TAILCALL
LBB0_1:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, 8(%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_DRIVER_SCANCODE,4,2         ## @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate RC device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"sii8620/input0"

	.comm	_BUS_VIRTUAL,4,2                ## @BUS_VIRTUAL
	.comm	_RC_MAP_CEC,4,2                 ## @RC_MAP_CEC
	.comm	_RC_PROTO_BIT_CEC,4,2           ## @RC_PROTO_BIT_CEC
L_.str.2:                               ## @.str.2
	.asciz	"sii8620"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register RC device\n"

	.no_dead_strip	_sii8620_init_rcp_input_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_init_rcp_input_dev
_sii8620_init_rcp_input_dev:            ; @sii8620_init_rcp_input_dev
	.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
Lloh0:
	adrp	x8, _RC_DRIVER_SCANCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_DRIVER_SCANCODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rc_allocate_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, _BUS_VIRTUAL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BUS_VIRTUAL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _RC_MAP_CEC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RC_MAP_CEC@GOTPAGEOFF]
	str	w9, [x0, #32]
Lloh10:
	ldr	w9, [x10]
Lloh11:
	adrp	x10, _RC_PROTO_BIT_CEC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RC_PROTO_BIT_CEC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #24]
Lloh14:
	adrp	x9, l_.str.2@PAGE
Lloh15:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
	str	x9, [x0, #16]
	bl	_rc_register_device
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19, #16]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	str	w21, [x19]
	ldr	x0, [x19, #8]
	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_free_device
LBB0_3:
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	str	x20, [x19, #8]
LBB0_5:
	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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_DRIVER_SCANCODE,4,2         ; @RC_DRIVER_SCANCODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate RC device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"sii8620/input0"

	.comm	_BUS_VIRTUAL,4,2                ; @BUS_VIRTUAL
	.comm	_RC_MAP_CEC,4,2                 ; @RC_MAP_CEC
	.comm	_RC_PROTO_BIT_CEC,4,2           ; @RC_PROTO_BIT_CEC
l_.str.2:                               ; @.str.2
	.asciz	"sii8620"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register RC device\n"

	.no_dead_strip	_sii8620_init_rcp_input_dev
.subsections_via_symbols
