	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scc_wait_after_reset           ## -- Begin function scc_wait_after_reset
	.p2align	4, 0x90
_scc_wait_after_reset:                  ## @scc_wait_after_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	%r12, %rdi
	movl	$150, %esi
	callq	_ata_msleep
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ata_sff_wait_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r12), %rax
	movq	(%rax), %rax
	testb	$2, %r14b
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*%rax
	testb	$1, %r14b
	je	LBB0_13
	jmp	LBB0_12
LBB0_3:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	*%rax
	movl	12(%r12), %edi
	callq	_in_be32
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_in_be32
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.4:
	cmpl	$1, %eax
	je	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	movl	$50, %esi
	callq	_ata_msleep
	movl	12(%r12), %edi
	callq	_in_be32
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_in_be32
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.6:
	cmpl	$1, %eax
	je	LBB0_8
LBB0_7:
	movq	%r12, %rdi
	movl	$50, %esi
	callq	_ata_msleep
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_ata_sff_wait_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_13
LBB0_10:
	movq	(%r12), %rax
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	(%r12), %rax
	movq	%r12, %rdi
	movl	$1, %esi
	callq	*(%rax)
	testb	$1, %r14b
	je	LBB0_13
LBB0_12:
	movq	(%r12), %rax
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scc_wait_after_reset           ; -- Begin function scc_wait_after_reset
	.p2align	2
_scc_wait_after_reset:                  ; @scc_wait_after_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #150
	bl	_ata_msleep
	mov	x0, x22
	mov	x1, x21
	bl	_ata_sff_wait_ready
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	tbnz	w20, #1, LBB0_3
; %bb.2:
	mov	w1, #0
	blr	x8
	mov	w23, #0
	tbnz	w20, #0, LBB0_9
	b	LBB0_10
LBB0_3:
	mov	w1, #1
	blr	x8
	ldr	w0, [x19, #12]
	bl	_in_be32
	mov	x23, x0
	ldr	w0, [x19, #8]
	bl	_in_be32
	cmp	w23, #1
	ccmp	w0, #1, #0, eq
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	w1, #50
	bl	_ata_msleep
	ldr	w0, [x19, #12]
	bl	_in_be32
	mov	x23, x0
	ldr	w0, [x19, #8]
	bl	_in_be32
	cmp	w23, #1
	ccmp	w0, #1, #0, eq
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #50
	bl	_ata_msleep
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_ata_sff_wait_ready
	mov	x23, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w23, w8
	b.ne	LBB0_10
LBB0_8:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	tbz	w20, #0, LBB0_10
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
