	.file	"extr_ud_header.c_ib_ud_header_unpack.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Invalid LRH.link_version %d\n"
.LC1:
	.string	"Invalid GRH.ip_version %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Invalid GRH.next_header 0x%02x\n"
	.align 8
.LC3:
	.string	"Invalid LRH.link_next_header %d\n"
	.section	.rodata.str1.1
.LC4:
	.string	"Invalid BTH.opcode 0x%02x\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Invalid BTH.transport_header_version %d\n"
	.text
	.p2align 4
	.globl	ib_ud_header_unpack
	.type	ib_ud_header_unpack, @function
ib_ud_header_unpack:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR lrh_table[rip]
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR lrh_table[rip]
	mov	rdx, rbp
	lea	rcx, 80[rbx]
	mov	esi, eax
	call	ib_unpack@PLT
	movsx	rdi, DWORD PTR IB_LRH_BYTES[rip]
	mov	rsi, QWORD PTR 80[rbx]
	add	rbp, rdi
	test	rsi, rsi
	jne	.L20
	mov	esi, DWORD PTR 88[rbx]
	cmp	esi, 130
	je	.L4
	cmp	esi, 131
	je	.L5
	lea	rdi, .LC3[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 1
	mov	edi, DWORD PTR grh_table[rip]
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR grh_table[rip]
	lea	rcx, 112[rbx]
	mov	rdx, rbp
	mov	esi, eax
	call	ib_unpack@PLT
	mov	esi, DWORD PTR 124[rbx]
	cmp	esi, 6
	jne	.L21
	mov	esi, DWORD PTR 128[rbx]
	cmp	esi, 27
	jne	.L22
	movsx	rax, DWORD PTR IB_GRH_BYTES[rip]
	add	rbp, rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR [rbx], 0
.L7:
	mov	edi, DWORD PTR bth_table[rip]
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR bth_table[rip]
	lea	rcx, 48[rbx]
	mov	rdx, rbp
	mov	esi, eax
	call	ib_unpack@PLT
	mov	esi, DWORD PTR 68[rbx]
	movsx	rax, DWORD PTR IB_BTH_BYTES[rip]
	cmp	esi, 128
	je	.L10
	cmp	esi, 129
	jne	.L11
	mov	DWORD PTR 4[rbx], 0
.L12:
	mov	rsi, QWORD PTR 72[rbx]
	test	rsi, rsi
	jne	.L23
	mov	edi, DWORD PTR deth_table[rip]
	add	rbp, rax
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR deth_table[rip]
	lea	rcx, 16[rbx]
	mov	rdx, rbp
	mov	esi, eax
	call	ib_unpack@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	je	.L1
	movsx	rsi, DWORD PTR IB_DETH_BYTES[rip]
	lea	rdi, 8[rbx]
	mov	edx, 4
	add	rsi, rbp
	call	memcpy@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC0[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, .LC4[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR 4[rbx], 1
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC5[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC2[rip]
	call	pr_warn@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ib_ud_header_unpack, .-ib_ud_header_unpack
	.comm	lrh_table,4,4
	.comm	grh_table,4,4
	.comm	deth_table,4,4
	.comm	bth_table,4,4
	.comm	IB_LRH_BYTES,4,4
	.comm	IB_GRH_BYTES,4,4
	.comm	IB_DETH_BYTES,4,4
	.comm	IB_BTH_BYTES,4,4
	.comm	EINVAL,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_ud_header.c_ib_ud_header_unpack.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid LRH.link_version %d\012\000"
	.align	2
.LC1:
	.ascii	"Invalid GRH.ip_version %d\012\000"
	.align	2
.LC2:
	.ascii	"Invalid GRH.next_header 0x%02x\012\000"
	.align	2
.LC3:
	.ascii	"Invalid LRH.link_next_header %d\012\000"
	.align	2
.LC4:
	.ascii	"Invalid BTH.opcode 0x%02x\012\000"
	.align	2
.LC5:
	.ascii	"Invalid BTH.transport_header_version %d\012\000"
	.text
	.align	2
	.global	ib_ud_header_unpack
	.syntax unified
	.arm
	.fpu softvfp
	.type	ib_ud_header_unpack, %function
ib_ud_header_unpack:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L25
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	mov	r5, r0
	mov	r0, r6
	mov	r4, r1
	bl	ARRAY_SIZE
	mov	r2, r5
	mov	r1, r0
	add	r3, r4, #60
	mov	r0, r6
	bl	ib_unpack
	ldr	r2, .L25+4
	ldr	r3, [r4, #60]
	ldr	r2, [r2]
	cmp	r3, #0
	add	r5, r5, r2
	bne	.L20
	ldr	r1, [r4, #64]
	cmp	r1, #130
	beq	.L4
	cmp	r1, #131
	beq	.L5
	ldr	r0, .L25+8
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r2, #1
	mov	r6, r4
	ldr	r3, .L25+16
	str	r2, [r6], #84
	ldr	r7, [r3]
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r3, r6
	mov	r1, r0
	mov	r2, r5
	mov	r0, r7
	bl	ib_unpack
	ldr	r1, [r4, #92]
	cmp	r1, #6
	bne	.L21
	ldr	r1, [r4, #96]
	cmp	r1, #27
	bne	.L22
	ldr	r3, .L25+20
	ldr	r3, [r3]
	add	r5, r5, r3
	b	.L7
.L4:
	str	r3, [r4]
.L7:
	ldr	r3, .L25+24
	ldr	r6, [r3]
	mov	r0, r6
	bl	ARRAY_SIZE
	mov	r2, r5
	mov	r1, r0
	add	r3, r4, #36
	mov	r0, r6
	bl	ib_unpack
	ldr	r1, [r4, #52]
	ldr	r3, .L25+28
	cmp	r1, #128
	ldr	r2, [r3]
	beq	.L10
	cmp	r1, #129
	moveq	r3, #0
	streq	r3, [r4, #4]
	bne	.L23
	ldr	r6, [r4, #56]
	cmp	r6, #0
	bne	.L24
.L13:
	ldr	r3, .L25+32
	add	r5, r5, r2
	ldr	r7, [r3]
	mov	r0, r7
	bl	ARRAY_SIZE
	mov	r2, r5
	mov	r1, r0
	add	r3, r4, #12
	mov	r0, r7
	bl	ib_unpack
	ldr	r0, [r4, #4]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L25+36
	mov	r2, #4
	ldr	r1, [r3]
	add	r0, r4, #8
	add	r1, r5, r1
	bl	memcpy
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r1, r3
	ldr	r0, .L25+40
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L23:
	ldr	r0, .L25+44
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	ldr	r0, .L25+48
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r1, r6
	ldr	r0, .L25+52
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r3, #1
	ldr	r6, [r4, #56]
	str	r3, [r4, #4]
	cmp	r6, #0
	beq	.L13
	b	.L24
.L22:
	ldr	r0, .L25+56
	bl	pr_warn
	ldr	r3, .L25+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	.align	2
.L25:
	.word	lrh_table
	.word	IB_LRH_BYTES
	.word	.LC3
	.word	EINVAL
	.word	grh_table
	.word	IB_GRH_BYTES
	.word	bth_table
	.word	IB_BTH_BYTES
	.word	deth_table
	.word	IB_DETH_BYTES
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	.LC5
	.word	.LC2
	.size	ib_ud_header_unpack, .-ib_ud_header_unpack
	.comm	lrh_table,4,4
	.comm	grh_table,4,4
	.comm	deth_table,4,4
	.comm	bth_table,4,4
	.comm	IB_LRH_BYTES,4,4
	.comm	IB_GRH_BYTES,4,4
	.comm	IB_DETH_BYTES,4,4
	.comm	IB_BTH_BYTES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
