	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kovaplus_init_kovaplus_device_struct
_kovaplus_init_kovaplus_device_struct:  ## @kovaplus_init_kovaplus_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
	movl	$70, %edi
	callq	_msleep
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_kovaplus_get_profile_settings
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movl	$70, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_kovaplus_get_profile_buttons
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movl	$70, %edi
	callq	_msleep
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_kovaplus_get_profile_settings
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movl	$70, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_kovaplus_get_profile_buttons
	testl	%eax, %eax
	jne	LBB0_12
## %bb.4:
	movl	$70, %edi
	callq	_msleep
	movq	8(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_kovaplus_get_profile_settings
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movl	$70, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_kovaplus_get_profile_buttons
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movl	$70, %edi
	callq	_msleep
	movq	8(%rbx), %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_kovaplus_get_profile_settings
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movl	$70, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_kovaplus_get_profile_buttons
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movl	$70, %edi
	callq	_msleep
	movq	8(%rbx), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_kovaplus_get_profile_settings
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	$70, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_kovaplus_get_profile_buttons
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movl	$70, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_kovaplus_get_actual_profile
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_kovaplus_profile_activated
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kovaplus_init_kovaplus_device_struct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kovaplus_init_kovaplus_device_struct
_kovaplus_init_kovaplus_device_struct:  ; @kovaplus_init_kovaplus_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
	mov	w0, #70
	bl	_msleep
	ldr	x1, [x19, #8]
	mov	x0, x20
	mov	w2, #0
	bl	_kovaplus_get_profile_settings
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.1:
	mov	w0, #70
	bl	_msleep
	ldr	x1, [x19]
	mov	x0, x20
	mov	w2, #0
	bl	_kovaplus_get_profile_buttons
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.2:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #1
	bl	_kovaplus_get_profile_settings
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.3:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x20
	mov	w2, #1
	bl	_kovaplus_get_profile_buttons
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.4:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #2
	bl	_kovaplus_get_profile_settings
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.5:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x20
	mov	w2, #2
	bl	_kovaplus_get_profile_buttons
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.6:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, x8, #12
	mov	x0, x20
	mov	w2, #3
	bl	_kovaplus_get_profile_settings
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.7:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x20
	mov	w2, #3
	bl	_kovaplus_get_profile_buttons
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.8:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19, #8]
	add	x1, x8, #16
	mov	x0, x20
	mov	w2, #4
	bl	_kovaplus_get_profile_settings
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.9:
	mov	w0, #70
	bl	_msleep
	ldr	x8, [x19]
	add	x1, x8, #16
	mov	x0, x20
	mov	w2, #4
	bl	_kovaplus_get_profile_buttons
	mov	x1, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	w0, #70
	bl	_msleep
	mov	x0, x20
	bl	_kovaplus_get_actual_profile
	mov	x1, x0
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_kovaplus_profile_activated
	mov	w1, #0
LBB0_12:
	mov	x0, x1
	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	_kovaplus_init_kovaplus_device_struct
.subsections_via_symbols
