	.file	"extr_libata-scsi.c_ata_scsi_zbc_out_xlat.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ata_scsi_zbc_out_xlat, @function
ata_scsi_zbc_out_xlat:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12, QWORD PTR 16[rdi]
	mov	r14, QWORD PTR 8[rdi]
	xor	edi, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR 8[r12], 15
	mov	r13, QWORD PTR [r12]
	setle	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L11
	mov	ebp, DWORD PTR 4[r13]
	and	ebp, 31
	cmp	DWORD PTR ZO_CLOSE_ZONE[rip], ebp
	je	.L3
	cmp	DWORD PTR ZO_FINISH_ZONE[rip], ebp
	je	.L3
	cmp	DWORD PTR ZO_OPEN_ZONE[rip], ebp
	je	.L3
	cmp	DWORD PTR ZO_RESET_WRITE_POINTER[rip], ebp
	je	.L3
	mov	edx, 1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdx, 16[rsp]
	lea	rsi, 12[rsp]
	mov	rdi, r13
	call	scsi_16_lba_len@PLT
	cmp	QWORD PTR 16[rsp], 0
	jne	.L22
	mov	eax, DWORD PTR 56[r13]
	and	eax, 1
	mov	r13d, eax
	je	.L6
	mov	DWORD PTR 12[rsp], 0
.L7:
	mov	rdi, QWORD PTR 8[rbx]
	call	ata_ncq_enabled@PLT
	test	rax, rax
	jne	.L23
.L8:
	mov	eax, DWORD PTR ATA_PROT_NODATA[rip]
	mov	DWORD PTR 24[rbx], ebp
	mov	DWORD PTR 36[rbx], r13d
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR ATA_CMD_ZAC_MGMT_OUT[rip]
	mov	DWORD PTR 72[rbx], eax
.L9:
	mov	eax, DWORD PTR 12[rsp]
	mov	ecx, 40
	mov	edx, eax
	sar	edx, 16
	and	edx, 255
	mov	DWORD PTR 40[rbx], edx
	movzx	edx, ah
	mov	DWORD PTR 44[rbx], edx
	movzx	edx, al
	mov	DWORD PTR 48[rbx], edx
	mov	edx, eax
	sar	edx, cl
	mov	ecx, 32
	and	edx, 255
	mov	DWORD PTR 52[rbx], edx
	mov	edx, eax
	shr	eax, 24
	sar	edx, cl
	mov	DWORD PTR 60[rbx], eax
	mov	eax, DWORD PTR ATA_LBA[rip]
	and	edx, 255
	mov	DWORD PTR 56[rbx], edx
	mov	DWORD PTR 68[rbx], eax
	mov	eax, DWORD PTR ATA_TFLAG_ISADDR[rip]
	or	eax, DWORD PTR ATA_TFLAG_DEVICE[rip]
	or	eax, DWORD PTR ATA_TFLAG_LBA48[rip]
	or	DWORD PTR 64[rbx], eax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L24
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, 15
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	mov	ecx, 255
	mov	rsi, r12
	call	ata_scsi_set_invalid_field@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 12[rsp]
	cmp	DWORD PTR [r14], eax
	jg	.L7
	mov	edx, 2
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR ILLEGAL_REQUEST[rip]
	xor	r8d, r8d
	mov	rsi, r12
	mov	ecx, 26
	call	ata_scsi_set_sense@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 8[rbx]
	call	ata_fpdma_zac_mgmt_out_supported@PLT
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR ATA_PROT_NCQ_NODATA[rip]
	mov	DWORD PTR 76[rbx], eax
	mov	eax, DWORD PTR ATA_CMD_NCQ_NON_DATA[rip]
	mov	DWORD PTR 72[rbx], eax
	mov	eax, DWORD PTR ATA_SUBCMD_NCQ_NON_DATA_ZAC_MGMT_OUT[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR [rbx]
	sal	eax, 3
	mov	DWORD PTR 28[rbx], eax
	mov	eax, r13d
	sal	eax, 8
	or	ebp, eax
	mov	DWORD PTR 32[rbx], ebp
	jmp	.L9
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ata_scsi_zbc_out_xlat, .-ata_scsi_zbc_out_xlat
	.comm	ZO_RESET_WRITE_POINTER,4,4
	.comm	ZO_OPEN_ZONE,4,4
	.comm	ZO_FINISH_ZONE,4,4
	.comm	ZO_CLOSE_ZONE,4,4
	.comm	ILLEGAL_REQUEST,4,4
	.comm	ATA_TFLAG_LBA48,4,4
	.comm	ATA_TFLAG_ISADDR,4,4
	.comm	ATA_TFLAG_DEVICE,4,4
	.comm	ATA_SUBCMD_NCQ_NON_DATA_ZAC_MGMT_OUT,4,4
	.comm	ATA_PROT_NODATA,4,4
	.comm	ATA_PROT_NCQ_NODATA,4,4
	.comm	ATA_LBA,4,4
	.comm	ATA_CMD_ZAC_MGMT_OUT,4,4
	.comm	ATA_CMD_NCQ_NON_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_libata-scsi.c_ata_scsi_zbc_out_xlat.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ata_scsi_zbc_out_xlat, %function
ata_scsi_zbc_out_xlat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, [r0, #8]
	ldr	r3, .L25
	ldr	r0, [r6, #4]
	sub	sp, sp, #24
	cmp	r0, #15
	movgt	r0, #0
	movle	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [r6]
	ldr	r8, [r4, #4]
	bl	unlikely
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L25+4
	ldr	r5, [r7, #4]
	ldr	r3, [r3]
	and	r5, r5, #31
	cmp	r3, r5
	beq	.L3
	ldr	r3, .L25+8
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L3
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L3
	ldr	r3, .L25+16
	ldr	r3, [r3]
	cmp	r3, r5
	movne	r2, #1
	bne	.L2
.L3:
	mov	r0, r7
	add	r2, sp, #16
	add	r1, sp, #12
	bl	scsi_16_lba_len
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L22
	ldr	r2, [r7, #56]
	ands	r7, r2, #1
	strne	r3, [sp, #12]
	bne	.L7
	ldr	r2, [r8]
	ldr	r3, [sp, #12]
	cmp	r2, r3
	ble	.L13
.L7:
	ldr	r0, [r4, #4]
	bl	ata_ncq_enabled
	cmp	r0, #0
	bne	.L23
.L8:
	ldr	r2, .L25+20
	ldr	r3, .L25+24
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r5, [r4, #12]
	str	r7, [r4, #24]
	str	r2, [r4, #64]
	str	r3, [r4, #60]
.L9:
	ldr	r0, .L25+28
	ldr	r3, .L25+32
	ldr	ip, .L25+36
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	ip, [ip]
	ldr	lr, [r4, #52]
	orr	r0, r0, r3
	orr	r0, r0, ip
	ldr	r3, [sp, #12]
	mov	r1, #40
	orr	r0, lr, r0
	mov	r2, #32
	str	r0, [r4, #52]
	asr	r0, r3, #16
	and	r0, r0, #255
	str	r0, [r4, #28]
	and	r0, r3, #255
	str	r0, [r4, #36]
	mov	r0, #0
	asr	r1, r3, r1
	ldr	ip, .L25+40
	and	r1, r1, #255
	asr	r2, r3, r2
	ldr	ip, [ip]
	str	r1, [r4, #40]
	asr	r1, r3, #8
	and	r2, r2, #255
	and	r1, r1, #255
	lsr	r3, r3, #24
	str	r1, [r4, #32]
	str	r2, [r4, #44]
	str	r3, [r4, #48]
	str	ip, [r4, #56]
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r2, #15
.L2:
	mov	r1, r6
	mov	r3, #255
	ldr	r0, [r4, #4]
	bl	ata_scsi_set_invalid_field
	mov	r0, #1
	b	.L1
.L22:
	mov	r2, #0
	ldr	r3, .L25+44
	ldr	r0, [r4, #4]
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r1, r6
	mov	r3, #26
	bl	ata_scsi_set_sense
	mov	r0, #1
	b	.L1
.L13:
	mov	r2, #2
	b	.L2
.L23:
	ldr	r0, [r4, #4]
	bl	ata_fpdma_zac_mgmt_out_supported
	cmp	r0, #0
	beq	.L8
	ldr	r1, .L25+48
	ldr	r3, .L25+52
	ldr	r2, .L25+56
	ldr	ip, [r1]
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r0, [r2]
	lsl	r3, r3, #3
	orr	r2, r5, r7, lsl #8
	str	r2, [r4, #20]
	str	ip, [r4, #64]
	str	r0, [r4, #60]
	str	r1, [r4, #12]
	str	r3, [r4, #16]
	b	.L9
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC0
	.word	ZO_CLOSE_ZONE
	.word	ZO_FINISH_ZONE
	.word	ZO_OPEN_ZONE
	.word	ZO_RESET_WRITE_POINTER
	.word	ATA_PROT_NODATA
	.word	ATA_CMD_ZAC_MGMT_OUT
	.word	ATA_TFLAG_ISADDR
	.word	ATA_TFLAG_DEVICE
	.word	ATA_TFLAG_LBA48
	.word	ATA_LBA
	.word	ILLEGAL_REQUEST
	.word	ATA_PROT_NCQ_NODATA
	.word	ATA_SUBCMD_NCQ_NON_DATA_ZAC_MGMT_OUT
	.word	ATA_CMD_NCQ_NON_DATA
	.size	ata_scsi_zbc_out_xlat, .-ata_scsi_zbc_out_xlat
	.comm	ZO_RESET_WRITE_POINTER,4,4
	.comm	ZO_OPEN_ZONE,4,4
	.comm	ZO_FINISH_ZONE,4,4
	.comm	ZO_CLOSE_ZONE,4,4
	.comm	ILLEGAL_REQUEST,4,4
	.comm	ATA_TFLAG_LBA48,4,4
	.comm	ATA_TFLAG_ISADDR,4,4
	.comm	ATA_TFLAG_DEVICE,4,4
	.comm	ATA_SUBCMD_NCQ_NON_DATA_ZAC_MGMT_OUT,4,4
	.comm	ATA_PROT_NODATA,4,4
	.comm	ATA_PROT_NCQ_NODATA,4,4
	.comm	ATA_LBA,4,4
	.comm	ATA_CMD_ZAC_MGMT_OUT,4,4
	.comm	ATA_CMD_NCQ_NON_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
