	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_std_error_handler          ## -- Begin function ata_std_error_handler
	.p2align	4, 0x90
_ata_std_error_handler:                 ## @ata_std_error_handler
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_ata_is_builtin_hardreset
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_sata_scr_valid
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmoveq	%rcx, %r15
LBB0_2:
	movl	8(%rbx), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ata_do_eh                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ata_std_error_handler          ; -- Begin function ata_std_error_handler
	.p2align	2
_ata_std_error_handler:                 ; @ata_std_error_handler
	.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
	ldr	x21, [x0, #8]
	ldr	x20, [x21, #16]
	mov	x0, x20
	bl	_ata_is_builtin_hardreset
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_sata_scr_valid
	cmp	w0, #0
	csel	x20, xzr, x20, eq
LBB0_2:
	ldp	w2, w1, [x21, #4]
	ldr	w4, [x21]
	mov	x0, x19
	mov	x3, x20
	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	_ata_do_eh
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
