	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __usbgecko_exi_wait
___usbgecko_exi_wait:                   ## @__usbgecko_exi_wait
	.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	%rdi, %rbx
	callq	__CPU_ISR_Disable
	movq	_usbgecko_inited@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	___usbgecko_init
LBB0_2:
	movq	_EXI_DEVICE_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	___usbgecko_exi_unlock@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_EXI_Lock
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_wait_exi_queue@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_LWP_ThreadSleep
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_EXI_Lock
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_usbgecko_inited,4,2            ## @usbgecko_inited
	.comm	_EXI_DEVICE_0,4,2               ## @EXI_DEVICE_0
	.comm	___usbgecko_exi_unlock,4,2      ## @__usbgecko_exi_unlock
	.comm	_wait_exi_queue,8,3             ## @wait_exi_queue
	.no_dead_strip	___usbgecko_exi_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __usbgecko_exi_wait
___usbgecko_exi_wait:                   ; @__usbgecko_exi_wait
	.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	x19, x0
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, _usbgecko_inited@GOTPAGE
Lloh1:
	ldr	x8, [x8, _usbgecko_inited@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	___usbgecko_init
LBB0_2:
Lloh3:
	adrp	x20, _EXI_DEVICE_0@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EXI_DEVICE_0@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, ___usbgecko_exi_unlock@GOTPAGE
Lloh6:
	ldr	x21, [x21, ___usbgecko_exi_unlock@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_EXI_Lock
	cbnz	x0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x22, _wait_exi_queue@GOTPAGE
Lloh8:
	ldr	x22, [x22, _wait_exi_queue@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x19, lsl #2]
	bl	_LWP_ThreadSleep
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_EXI_Lock
	cbz	x0, LBB0_4
LBB0_5:
	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	__CPU_ISR_Restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_usbgecko_inited,4,2            ; @usbgecko_inited
	.comm	_EXI_DEVICE_0,4,2               ; @EXI_DEVICE_0
	.comm	___usbgecko_exi_unlock,4,2      ; @__usbgecko_exi_unlock
	.comm	_wait_exi_queue,8,3             ; @wait_exi_queue
	.no_dead_strip	___usbgecko_exi_wait
.subsections_via_symbols
