	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kone_sysfs_read_profilex
_kone_sysfs_read_profilex:              ## @kone_sysfs_read_profilex
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rdi
	callq	_kobj_to_dev
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_dev_get_drvdata
	movl	%eax, %edi
	callq	_hid_get_drvdata
	cmpl	$3, %ebx
	jbe	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	leaq	(%r14,%r12), %rax
	movl	$4, %ebx
	subq	%r14, %rbx
	cmpq	$5, %rax
	cmovbq	%r12, %rbx
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	8(%r13), %rsi
	addq	%r14, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kone_sysfs_read_profilex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kone_sysfs_read_profilex
_kone_sysfs_read_profilex:              ; @kone_sysfs_read_profilex
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x0, x1
	bl	_kobj_to_dev
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_dev_get_drvdata
	bl	_hid_get_drvdata
	cmp	w23, #3
	b.ls	LBB0_2
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:
	mov	x22, x0
	mov	w23, w23
	add	x8, x23, x21
	mov	w9, #4
	sub	x9, x9, x23
	cmp	x8, #4
	csel	x21, x9, x21, hi
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	ldr	x9, [x20]
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	add	x1, x8, x23
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	mov	x0, x22
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kone_sysfs_read_profilex
.subsections_via_symbols
