	.file	"extr_atom.c_amdgpu_atom_parse_cmd_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	amdgpu_atom_parse_cmd_header
	.type	amdgpu_atom_parse_cmd_header, @function
amdgpu_atom_parse_cmd_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movsx	rbx, esi
	lea	edi, 4[rbx+rbx]
	movsx	rdi, edi
	add	rdi, QWORD PTR 0[r13]
	call	CU16@PLT
	mov	rdx, QWORD PTR 8[r13]
	lea	rbx, [rdx+rbx*4]
	add	rbx, QWORD PTR 0[r13]
	mov	r13d, DWORD PTR 4[rbx]
	test	r13d, r13d
	je	.L1
	mov	r14d, eax
	test	r12, r12
	je	.L3
	lea	edi, 2[rax]
	call	CU8@PLT
	mov	DWORD PTR [r12], eax
.L3:
	mov	r13d, 1
	test	rbp, rbp
	je	.L1
	lea	edi, 3[r14]
	call	CU8@PLT
	mov	DWORD PTR 0[rbp], eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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	amdgpu_atom_parse_cmd_header, .-amdgpu_atom_parse_cmd_header
	.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_atom.c_amdgpu_atom_parse_cmd_header.c"
	.text
	.align	2
	.global	amdgpu_atom_parse_cmd_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_atom_parse_cmd_header, %function
amdgpu_atom_parse_cmd_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r1, [r0]
	add	r0, r5, #2
	add	r0, r1, r0, lsl #1
	mov	r6, r3
	mov	r7, r2
	bl	CU16
	ldm	r4, {r3, ip}
	add	r1, ip, r5, lsl #2
	add	r1, r1, r3
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L1
	cmp	r7, #0
	mov	r4, r0
	beq	.L3
	add	r0, r0, #2
	bl	CU8
	str	r0, [r7]
.L3:
	cmp	r6, #0
	moveq	r3, #1
	beq	.L1
	add	r0, r4, #3
	bl	CU8
	mov	r3, #1
	str	r0, [r6]
.L1:
	mov	r0, r3
	pop	{r4, r5, r6, r7, r8, pc}
	.size	amdgpu_atom_parse_cmd_header, .-amdgpu_atom_parse_cmd_header
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
