	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_waitUntilDeviceIsReady         ## -- Begin function waitUntilDeviceIsReady
	.p2align	4, 0x90
_waitUntilDeviceIsReady:                ## @waitUntilDeviceIsReady
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_rootDevicePath
	movq	%rax, %r14
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_fileXioDopen
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	xorl	%eax, %eax
	callq	_nopdelay
	testl	%r15d, %r15d
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_1
LBB0_3:
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	callq	_fileXioDclose
LBB0_5:
	notl	%r15d
	shrl	$31, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_waitUntilDeviceIsReady         ; -- Begin function waitUntilDeviceIsReady
	.p2align	2
_waitUntilDeviceIsReady:                ; @waitUntilDeviceIsReady
	.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
	bl	_rootDevicePath
	mov	x20, x0
	bl	_fileXioDopen
	mov	x19, x0
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	tbz	w19, #31, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_fileXioDopen
	mov	x19, x0
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	tbz	w19, #31, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_fileXioDopen
	mov	x19, x0
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
	bl	_nopdelay
LBB0_3:
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_fileXioDclose
LBB0_5:
	mvn	w8, w19
	lsr	w0, w8, #31
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
