	.file	"extr_ieee1394_transactions.c_hpsb_make_writepacket.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hpsb_make_writepacket
	.type	hpsb_make_writepacket, @function
hpsb_make_writepacket:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	r8, r8
	je	.L21
	mov	rbx, rdi
	mov	rdi, r8
	mov	r15d, esi
	mov	r14d, edx
	mov	rbp, rcx
	mov	r13, r8
	call	hpsb_alloc_packet@PLT
	mov	r12, rax
	test	rax, rax
	je	.L21
	test	r13b, 3
	jne	.L23
.L5:
	mov	QWORD PTR 16[r12], rbx
	mov	rdi, r12
	mov	DWORD PTR 8[r12], r15d
	call	hpsb_get_tlabel@PLT
	test	rax, rax
	jne	.L24
	cmp	r13, 4
	jne	.L7
	xor	edx, edx
	test	rbp, rbp
	je	.L8
	mov	edx, DWORD PTR 0[rbp]
.L8:
	mov	esi, r14d
	mov	rdi, r12
	call	fill_async_writequad@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rax, QWORD PTR [rax]
	mov	rdx, r13
	shr	rdx, 2
	mov	QWORD PTR [rax+rdx*8], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, r13
	mov	esi, r14d
	mov	rdi, r12
	call	fill_async_writeblock@PLT
	test	rbp, rbp
	je	.L1
	mov	rdi, QWORD PTR [r12]
	mov	rdx, r13
	mov	rsi, rbp
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r12
	call	hpsb_free_packet@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	xor	r12d, r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hpsb_make_writepacket, .-hpsb_make_writepacket
	.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_ieee1394_transactions.c_hpsb_make_writepacket.c"
	.text
	.align	2
	.global	hpsb_make_writepacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpsb_make_writepacket, %function
hpsb_make_writepacket:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [sp, #32]
	cmp	r5, #0
	beq	.L22
	mov	r9, r0
	mov	r0, r5
	mov	r8, r1
	mov	r7, r2
	mov	r6, r3
	bl	hpsb_alloc_packet
	subs	r4, r0, #0
	beq	.L22
	tst	r5, #3
	movne	r1, #0
	ldrne	r3, [r4]
	lsrne	r2, r5, #2
	strne	r1, [r3, r2, lsl #2]
	mov	r0, r4
	stmib	r4, {r8, r9}
	bl	hpsb_get_tlabel
	subs	r2, r0, #0
	bne	.L24
	cmp	r5, #4
	bne	.L7
	cmp	r6, #0
	mov	r1, r7
	mov	r0, r4
	ldrne	r2, [r6]
	bl	fill_async_writequad
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	mov	r1, r7
	mov	r2, r5
	mov	r0, r4
	bl	fill_async_writeblock
	cmp	r6, #0
	beq	.L1
	mov	r2, r5
	mov	r1, r6
	ldr	r0, [r4]
	bl	memcpy
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L24:
	mov	r0, r4
	bl	hpsb_free_packet
.L22:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	hpsb_make_writepacket, .-hpsb_make_writepacket
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
