	.file	"extr_ams-pmu.c_ams_pmu_get_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ams_pmu_get_register, @function
ams_pmu_get_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rbp, req_complete[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR req_complete[rip]
	call	DECLARE_COMPLETION@PLT
	mov	ecx, DWORD PTR ams_pmu_cmd[rip]
	mov	r9d, ebx
	mov	esi, DWORD PTR ams_pmu_req_complete[rip]
	mov	r8d, 1
	mov	edx, 3
	lea	rdi, req.1937[rip]
	mov	QWORD PTR req.1937[rip+16], rbp
	call	pmu_request@PLT
	test	rax, rax
	je	.L2
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	wait_for_completion@PLT
	cmp	QWORD PTR req.1937[rip], 0
	jle	.L4
	mov	rax, QWORD PTR req.1937[rip+8]
	mov	eax, DWORD PTR [rax]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ams_pmu_get_register, .-ams_pmu_get_register
	.local	req.1937
	.comm	req.1937,24,16
	.comm	req_complete,4,4
	.comm	ams_pmu_req_complete,4,4
	.comm	ams_pmu_cmd,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_ams-pmu.c_ams_pmu_get_register.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ams_pmu_get_register, %function
ams_pmu_get_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L7
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r6]
	bl	DECLARE_COMPLETION
	mov	r1, #1
	ldr	r5, .L7+4
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	str	r4, [sp, #4]
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #3
	ldr	r3, [r3]
	str	r6, [r5, #8]
	bl	pmu_request
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r6
	bl	wait_for_completion
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L4
	ldr	r3, [r5, #4]
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	req_complete
	.word	.LANCHOR0
	.word	ams_pmu_req_complete
	.word	ams_pmu_cmd
	.size	ams_pmu_get_register, .-ams_pmu_get_register
	.comm	req_complete,4,4
	.comm	ams_pmu_req_complete,4,4
	.comm	ams_pmu_cmd,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	req.4221, %object
	.size	req.4221, 12
req.4221:
	.space	12
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
