	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arvo_sysfs_show_mode_key
_arvo_sysfs_show_mode_key:              ## @arvo_sysfs_show_mode_key
	.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	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_dev_get_drvdata
	movl	%eax, %edi
	callq	_hid_get_drvdata
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_to_usb_interface
	movl	%eax, %edi
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_ARVO_COMMAND_MODE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %ecx
	callq	_roccat_common2_receive
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movl	%eax, %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARVO_COMMAND_MODE_KEY,4,2      ## @ARVO_COMMAND_MODE_KEY
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_arvo_sysfs_show_mode_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arvo_sysfs_show_mode_key
_arvo_sysfs_show_mode_key:              ; @arvo_sysfs_show_mode_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_dev_get_drvdata
	bl	_hid_get_drvdata
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_to_usb_interface
	bl	_interface_to_usbdev
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _ARVO_COMMAND_MODE_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARVO_COMMAND_MODE_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_roccat_common2_receive
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w20, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w3, [sp, #8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	mov	x20, x0
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ARVO_COMMAND_MODE_KEY,4,2      ; @ARVO_COMMAND_MODE_KEY
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_arvo_sysfs_show_mode_key
.subsections_via_symbols
