	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kone_init_kone_device_struct
_kone_init_kone_device_struct:          ## @kone_init_kone_device_struct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	16(%rsi), %rdi
	callq	_mutex_init
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_kone_get_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_kone_get_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_kone_get_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	8(%rbx), %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_kone_get_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	8(%rbx), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_kone_get_profile
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kone_get_settings
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	4(%rbx), %rsi
	movq	%r14, %rdi
	callq	_kone_get_firmware_version
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_kone_profile_activated
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kone_init_kone_device_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kone_init_kone_device_struct
_kone_init_kone_device_struct:          ; @kone_init_kone_device_struct
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #16
	bl	_mutex_init
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	w2, #1
	bl	_kone_get_profile
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #2
	bl	_kone_get_profile
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #3
	bl	_kone_get_profile
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	add	x1, x8, #12
	mov	x0, x20
	mov	w2, #4
	bl	_kone_get_profile
	cbnz	w0, LBB0_8
; %bb.4:
	ldr	x8, [x19, #8]
	add	x1, x8, #16
	mov	x0, x20
	mov	w2, #5
	bl	_kone_get_profile
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_kone_get_settings
	cbnz	w0, LBB0_8
; %bb.6:
	add	x1, x19, #4
	mov	x0, x20
	bl	_kone_get_firmware_version
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_kone_profile_activated
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kone_init_kone_device_struct
.subsections_via_symbols
