	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drive_is_ready
_drive_is_ready:                        ## @drive_is_ready
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.6:
	movq	24(%rdi), %rcx
	movq	%rax, %rdi
	popq	%rbp
	jmpq	*(%rcx)                         ## TAILCALL
LBB0_1:
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.2:
	movq	_IDE_HFLAG_BROKEN_ALTSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
LBB0_4:
	movq	8(%rdi), %rax
	addq	$8, %rax
	jmp	LBB0_5
LBB0_3:
	movq	8(%rdi), %rax
LBB0_5:
	callq	*(%rax)
	movq	_ATA_BUSY@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	sete	%cl
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_HFLAG_BROKEN_ALTSTATUS,4,2 ## @IDE_HFLAG_BROKEN_ALTSTATUS
	.comm	_ATA_BUSY,4,2                   ## @ATA_BUSY
	.no_dead_strip	_drive_is_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drive_is_ready
_drive_is_ready:                        ; @drive_is_ready
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x9, [x0, #24]
	ldr	x1, [x9]
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x1
LBB0_2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IDE_HFLAG_BROKEN_ALTSTATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_HFLAG_BROKEN_ALTSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
	add	x8, x8, #8
	b	LBB0_6
LBB0_5:
	ldr	x8, [x0, #8]
LBB0_6:
	ldr	x8, [x8]
	blr	x8
Lloh3:
	adrp	x8, _ATA_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATA_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_HFLAG_BROKEN_ALTSTATUS,4,2 ; @IDE_HFLAG_BROKEN_ALTSTATUS
	.comm	_ATA_BUSY,4,2                   ; @ATA_BUSY
	.no_dead_strip	_drive_is_ready
.subsections_via_symbols
