	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qmkusbStart                    ## -- Begin function qmkusbStart
	.p2align	4, 0x90
_qmkusbStart:                           ## @qmkusbStart
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rsi), %r15
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_osalDbgCheck
	xorl	%eax, %eax
	callq	_osalSysLock
	movq	(%rbx), %rax
	movq	_QMKUSB_STOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_QMKUSB_READY@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	leaq	L_.str(%rip), %rsi
	callq	_osalDbgAssert
	movq	(%r15), %rax
	movl	(%r14), %ecx
	decl	%ecx
	movq	%rbx, (%rax,%rcx,8)
	movq	8(%r15), %rax
	movl	4(%r14), %ecx
	decl	%ecx
	movq	%rbx, (%rax,%rcx,8)
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rcx
	decl	%eax
	movq	%rbx, (%rcx,%rax,8)
LBB0_2:
	movq	%r14, 8(%rbx)
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_osalSysUnlock                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QMKUSB_STOP,8,3                ## @QMKUSB_STOP
	.comm	_QMKUSB_READY,8,3               ## @QMKUSB_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qmkusbStart                    ; -- Begin function qmkusbStart
	.p2align	2
_qmkusbStart:                           ; @qmkusbStart
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x1, #16]
	cmp	x0, #0
	cset	w0, ne
	bl	_osalDbgCheck
	bl	_osalSysLock
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _QMKUSB_STOP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QMKUSB_STOP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x22, _QMKUSB_READY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QMKUSB_READY@GOTPAGEOFF]
	ldr	x9, [x22]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_osalDbgAssert
	ldr	x8, [x21]
	ldp	w9, w10, [x20]
	sub	w9, w9, #1
	str	x19, [x8, w9, uxtw #3]
	ldr	x8, [x21, #8]
	sub	w9, w10, #1
	str	x19, [x8, w9, uxtw #3]
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x9, [x21]
	sub	w8, w8, #1
	str	x19, [x9, w8, uxtw #3]
LBB0_2:
	ldr	x8, [x22]
	stp	x8, x20, [x19]
	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
	b	_osalSysUnlock
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QMKUSB_STOP,8,3                ; @QMKUSB_STOP
	.comm	_QMKUSB_READY,8,3               ; @QMKUSB_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid state"

.subsections_via_symbols
