	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ata_scsi_flush_xlat
_ata_scsi_flush_xlat:                   ## @ata_scsi_flush_xlat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ATA_TFLAG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rdi)
	movq	_ATA_PROT_NODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	8(%rdi), %rax
	movq	_ATA_DFLAG_FLUSH_EXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_1
## %bb.2:
	movq	_ATA_CMD_FLUSH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ATA_CMD_FLUSH_EXT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_ATA_QCFLAG_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATA_TFLAG_DEVICE,4,2           ## @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ## @ATA_PROT_NODATA
	.comm	_ATA_DFLAG_FLUSH_EXT,4,2        ## @ATA_DFLAG_FLUSH_EXT
	.comm	_ATA_CMD_FLUSH_EXT,4,2          ## @ATA_CMD_FLUSH_EXT
	.comm	_ATA_CMD_FLUSH,4,2              ## @ATA_CMD_FLUSH
	.comm	_ATA_QCFLAG_IO,4,2              ## @ATA_QCFLAG_IO
	.no_dead_strip	_ata_scsi_flush_xlat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ata_scsi_flush_xlat
_ata_scsi_flush_xlat:                   ; @ata_scsi_flush_xlat
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ATA_TFLAG_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATA_TFLAG_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
Lloh3:
	adrp	x10, _ATA_PROT_NODATA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATA_PROT_NODATA@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh5:
	ldr	w9, [x10]
	stp	w9, w8, [x0, #20]
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ATA_DFLAG_FLUSH_EXT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATA_DFLAG_FLUSH_EXT@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ATA_CMD_FLUSH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ATA_CMD_FLUSH@GOTPAGEOFF]
Lloh10:
	adrp	x11, _ATA_CMD_FLUSH_EXT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ATA_CMD_FLUSH_EXT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ATA_QCFLAG_IO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ATA_QCFLAG_IO@GOTPAGEOFF]
	str	w8, [x0, #16]
Lloh15:
	ldr	w8, [x9]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATA_TFLAG_DEVICE,4,2           ; @ATA_TFLAG_DEVICE
	.comm	_ATA_PROT_NODATA,4,2            ; @ATA_PROT_NODATA
	.comm	_ATA_DFLAG_FLUSH_EXT,4,2        ; @ATA_DFLAG_FLUSH_EXT
	.comm	_ATA_CMD_FLUSH_EXT,4,2          ; @ATA_CMD_FLUSH_EXT
	.comm	_ATA_CMD_FLUSH,4,2              ; @ATA_CMD_FLUSH
	.comm	_ATA_QCFLAG_IO,4,2              ; @ATA_QCFLAG_IO
	.no_dead_strip	_ata_scsi_flush_xlat
.subsections_via_symbols
