	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ahci_write_reset_fis_d2h
_ahci_write_reset_fis_d2h:              ## @ahci_write_reset_fis_d2h
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	-96(%rbp), %rdi
	xorl	%esi, %esi
	movl	$80, %edx
	callq	_memset
	movq	_FIS_TYPE_REGD2H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, -96(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -84(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movabsq	$1009317314580, %rax            ## imm = 0xEB00000014
	movq	%rax, -76(%rbp)
LBB0_2:
	movl	$1, -48(%rbp)
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ahci_write_fis
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FIS_TYPE_REGD2H,4,2            ## @FIS_TYPE_REGD2H
	.no_dead_strip	_ahci_write_reset_fis_d2h
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ahci_write_reset_fis_d2h
lCPI0_0:
	.long	20                              ; 0x14
	.long	235                             ; 0xeb
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ahci_write_reset_fis_d2h:              ; @ahci_write_reset_fis_d2h
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #80
	bl	_memset
Lloh3:
	adrp	x8, _FIS_TYPE_REGD2H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIS_TYPE_REGD2H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	str	w1, [sp, #8]
	movi.2s	v0, #1
	stur	d0, [sp, #20]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #28]
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #56]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ahci_write_fis
	ldur	x8, [x29, #-24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FIS_TYPE_REGD2H,4,2            ; @FIS_TYPE_REGD2H
	.no_dead_strip	_ahci_write_reset_fis_d2h
.subsections_via_symbols
