	.file	"extr_libahci.c_ahci_fill_cmd_slot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ahci_fill_cmd_slot
	.type	ahci_fill_cmd_slot, @function
ahci_fill_cmd_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sal	rbx, 5
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rbp]
	mov	r12d, DWORD PTR AHCI_CMD_TBL_SZ[rip]
	add	r13, rbx
	imul	r12d, esi
	add	r12d, DWORD PTR 0[rbp]
	call	cpu_to_le32@PLT
	mov	edi, r12d
	mov	QWORD PTR 24[r13], rax
	mov	r13, QWORD PTR 8[rbp]
	add	r13, rbx
	mov	QWORD PTR 16[r13], 0
	call	cpu_to_le32@PLT
	mov	edi, r12d
	add	rbx, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[r13], rax
	sar	edi, 31
	call	cpu_to_le32@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ahci_fill_cmd_slot, .-ahci_fill_cmd_slot
	.comm	AHCI_CMD_TBL_SZ,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_libahci.c_ahci_fill_cmd_slot.c"
	.text
	.align	2
	.global	ahci_fill_cmd_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahci_fill_cmd_slot, %function
ahci_fill_cmd_slot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, .L4
	mov	r5, r0
	ldr	r3, [r0]
	ldr	r7, [r1]
	ldr	r8, [r0, #4]
	mov	r0, r2
	mla	r7, r4, r7, r3
	bl	cpu_to_le32
	mov	r3, #0
	ldr	r6, [r5, #4]
	lsl	r2, r4, #4
	add	r6, r6, r2
	add	r8, r8, r4, lsl #4
	str	r0, [r8, #12]
	str	r3, [r6, #8]
	mov	r0, r7
	bl	cpu_to_le32
	mov	r3, r0
	asr	r0, r7, #31
	str	r3, [r6, #4]
	ldr	r5, [r5, #4]
	bl	cpu_to_le32
	str	r0, [r5, r4, lsl #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	AHCI_CMD_TBL_SZ
	.size	ahci_fill_cmd_slot, .-ahci_fill_cmd_slot
	.comm	AHCI_CMD_TBL_SZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
