	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ryos_init_specials
_ryos_init_specials:                    ## @ryos_init_specials
	.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, %r15
	movl	(%rdi), %edi
	callq	_to_usb_interface
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_RYOS_USB_INTERFACE_PROTOCOL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_roccat_common2_device_init_struct
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_hid_err
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_hid_set_drvdata
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_ryos_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_roccat_connect
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	%eax, (%r14)
	movl	$1, 4(%r14)
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_hid_err
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RYOS_USB_INTERFACE_PROTOCOL,8,3 ## @RYOS_USB_INTERFACE_PROTOCOL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't alloc device descriptor\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"couldn't init Ryos device\n"

	.comm	_ryos_class,4,2                 ## @ryos_class
L_.str.2:                               ## @.str.2
	.asciz	"couldn't init char dev\n"

	.no_dead_strip	_ryos_init_specials
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ryos_init_specials
_ryos_init_specials:                    ; @ryos_init_specials
	.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]
	bl	_to_usb_interface
	mov	x20, x0
	bl	_interface_to_usbdev
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RYOS_USB_INTERFACE_PROTOCOL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RYOS_USB_INTERFACE_PROTOCOL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_hid_set_drvdata
	mov	x0, x21
	mov	x1, x20
	bl	_roccat_common2_device_init_struct
	cbz	w0, LBB0_7
; %bb.3:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	mov	x0, x20
	bl	_kfree
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	mov	x1, #0
	bl	_hid_set_drvdata
LBB0_5:
	mov	w21, #0
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
Lloh13:
	adrp	x8, _ryos_class@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ryos_class@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #4
	bl	_roccat_connect
	tbnz	w0, #31, LBB0_10
; %bb.8:
	mov	w21, #0
	mov	w8, #1
	stp	w0, w8, [x20]
LBB0_9:
	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
LBB0_10:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RYOS_USB_INTERFACE_PROTOCOL,8,3 ; @RYOS_USB_INTERFACE_PROTOCOL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't alloc device descriptor\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"couldn't init Ryos device\n"

	.comm	_ryos_class,4,2                 ; @ryos_class
l_.str.2:                               ; @.str.2
	.asciz	"couldn't init char dev\n"

	.no_dead_strip	_ryos_init_specials
.subsections_via_symbols
