	.file	"extr_aic79xx.c_ahd_construct_sdtr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"(%s:%c:%d:%d): Sending SDTR period %x, offset %x\n"
	.text
	.p2align 4
	.type	ahd_construct_sdtr, @function
ahd_construct_sdtr:
.LFB0:
	.cfi_startproc
	endbr64
	test	rcx, rcx
	cmove	rdx, QWORD PTR AHD_ASYNC_XFER_PERIOD[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r9, QWORD PTR MSG_EXTENDED[rip]
	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
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rdx, DWORD PTR 4[rdi]
	mov	rbx, rcx
	mov	rax, QWORD PTR 8[rdi]
	lea	rcx, 0[0+rdx*8]
	mov	r8, rdx
	mov	QWORD PTR [rax+rdx*8], r9
	mov	rdx, QWORD PTR MSG_EXT_SDTR_LEN[rip]
	add	r8d, 5
	mov	QWORD PTR 8[rax+rcx], rdx
	mov	rdx, QWORD PTR MSG_EXT_SDTR[rip]
	mov	QWORD PTR 24[rax+rcx], rbp
	mov	QWORD PTR 16[rax+rcx], rdx
	mov	DWORD PTR 4[rdi], r8d
	mov	QWORD PTR 32[rax+rcx], rbx
	add	DWORD PTR [rdi], 5
	cmp	QWORD PTR bootverbose[rip], 0
	jne	.L6
	pop	rbx
	.cfi_remember_state
	.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
.L6:
	.cfi_restore_state
	mov	r14d, DWORD PTR 8[rsi]
	mov	r13d, DWORD PTR 4[rsi]
	mov	r12d, DWORD PTR [rsi]
	call	ahd_name@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	r9, rbp
	mov	r8d, r14d
	push	rbx
	.cfi_def_cfa_offset 64
	mov	edx, r12d
	mov	ecx, r13d
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	printf@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.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
	.cfi_endproc
.LFE0:
	.size	ahd_construct_sdtr, .-ahd_construct_sdtr
	.comm	bootverbose,8,8
	.comm	MSG_EXT_SDTR_LEN,8,8
	.comm	MSG_EXT_SDTR,8,8
	.comm	MSG_EXTENDED,8,8
	.comm	AHD_ASYNC_XFER_PERIOD,8,8
	.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_aic79xx.c_ahd_construct_sdtr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(%s:%c:%d:%d): Sending SDTR period %x, offset %x\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahd_construct_sdtr, %function
ahd_construct_sdtr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r6, r3, #0
	movne	r4, r2
	ldreq	r3, .L11
	ldr	lr, [r0, #4]
	ldreq	r4, [r3]
	ldr	r3, .L11+4
	ldr	ip, [r0, #8]
	ldr	r2, [r3]
	ldr	r3, .L11+8
	str	r2, [ip, lr, lsl #2]
	ldr	r2, [r3]
	add	ip, ip, lr, lsl #2
	ldr	r3, .L11+12
	str	r2, [ip, #4]
	ldr	r2, [r3]
	add	lr, lr, #5
	ldr	r3, .L11+16
	str	r2, [ip, #8]
	str	r4, [ip, #12]
	str	lr, [r0, #4]
	str	r6, [ip, #16]
	ldr	r3, [r3]
	ldr	r2, [r0]
	cmp	r3, #0
	add	r2, r2, #5
	mov	r5, r1
	sub	sp, sp, #16
	str	r2, [r0]
	bne	.L10
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	bl	ahd_name
	ldr	r3, [r5, #8]
	mov	r1, r0
	stm	sp, {r3, r4, r6}
	ldr	r0, .L11+20
	ldm	r5, {r2, r3}
	bl	printf
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	AHD_ASYNC_XFER_PERIOD
	.word	MSG_EXTENDED
	.word	MSG_EXT_SDTR_LEN
	.word	MSG_EXT_SDTR
	.word	bootverbose
	.word	.LC0
	.size	ahd_construct_sdtr, .-ahd_construct_sdtr
	.comm	bootverbose,4,4
	.comm	MSG_EXT_SDTR_LEN,4,4
	.comm	MSG_EXT_SDTR,4,4
	.comm	MSG_EXTENDED,4,4
	.comm	AHD_ASYNC_XFER_PERIOD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
