	.file	"extr_ib_cm.c_cm_format_sidr_rep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cm_format_sidr_rep, @function
cm_format_sidr_rep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edx, DWORD PTR 8[rsi]
	mov	rbx, rdi
	add	rdi, 24
	mov	esi, DWORD PTR CM_SIDR_REP_ATTR_ID[rip]
	call	cm_format_mad_hdr@PLT
	mov	eax, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 36[rbp]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 16[rbx], eax
	call	cpu_to_be32@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	cm_sidr_rep_set_qpn@PLT
	mov	eax, DWORD PTR [r12]
	mov	edi, DWORD PTR 32[rbp]
	mov	DWORD PTR 12[rbx], eax
	call	cpu_to_be32@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	DWORD PTR 8[rbx], eax
	test	rsi, rsi
	je	.L2
	mov	rdx, QWORD PTR 16[rbp]
	test	rdx, rdx
	jne	.L18
.L2:
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	je	.L1
	mov	rdx, QWORD PTR 0[rbp]
	test	rdx, rdx
	jne	.L19
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[rbx]
	call	memcpy@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	cm_format_sidr_rep, .-cm_format_sidr_rep
	.comm	CM_SIDR_REP_ATTR_ID,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_ib_cm.c_cm_format_sidr_rep.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cm_format_sidr_rep, %function
cm_format_sidr_rep:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	mov	r6, r1
	mov	r4, r0
	ldr	r3, .L19
	ldr	r2, [r1, #8]
	add	r0, r0, #24
	ldr	r1, [r3]
	bl	cm_format_mad_hdr
	ldr	r2, [r6, #4]
	ldr	r3, [r5, #24]
	ldr	r0, [r5, #20]
	str	r2, [r4, #20]
	str	r3, [r4, #16]
	bl	cpu_to_be32
	mov	r1, r0
	mov	r0, r4
	bl	cm_sidr_rep_set_qpn
	ldr	r3, [r6]
	ldr	r0, [r5, #16]
	str	r3, [r4, #12]
	bl	cpu_to_be32
	ldr	r1, [r5, #12]
	str	r0, [r4, #8]
	cmp	r1, #0
	beq	.L2
	ldr	r2, [r5, #8]
	cmp	r2, #0
	bne	.L18
.L2:
	ldr	r1, [r5, #4]
	cmp	r1, #0
	popeq	{r4, r5, r6, pc}
	ldr	r2, [r5]
	cmp	r2, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4]
	pop	{r4, r5, r6, lr}
	b	memcpy
.L18:
	ldr	r0, [r4, #4]
	bl	memcpy
	b	.L2
.L20:
	.align	2
.L19:
	.word	CM_SIDR_REP_ATTR_ID
	.size	cm_format_sidr_rep, .-cm_format_sidr_rep
	.comm	CM_SIDR_REP_ATTR_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
