	.file	"extr_atm_misc.c_atm_pcr_goal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	atm_pcr_goal
	.type	atm_pcr_goal, @function
atm_pcr_goal:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L2
	mov	edx, DWORD PTR ATM_MAX_PCR[rip]
	cmp	eax, edx
	je	.L3
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR ATM_MAX_PCR[rip]
.L3:
	mov	ecx, DWORD PTR 8[rdi]
	mov	eax, ecx
	neg	eax
	cmp	edx, ecx
	mov	edx, 0
	cmove	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	atm_pcr_goal, .-atm_pcr_goal
	.comm	ATM_MAX_PCR,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_atm_misc.c_atm_pcr_goal.c"
	.text
	.align	2
	.global	atm_pcr_goal
	.syntax unified
	.arm
	.fpu softvfp
	.type	atm_pcr_goal, %function
atm_pcr_goal:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, [r0]
	mov	r2, r0
	cmp	r3, #0
	beq	.L2
	ldr	r1, .L7
	ldr	r1, [r1]
	cmp	r3, r1
	beq	.L3
	rsb	r0, r3, #0
	bx	lr
.L2:
	ldr	r0, [r0, #4]
	cmp	r0, #0
	bxne	lr
	ldr	r3, .L7
	ldr	r1, [r3]
.L3:
	ldr	r0, [r2, #8]
	cmp	r1, r0
	rsbne	r0, r0, #0
	moveq	r0, #0
	bx	lr
.L8:
	.align	2
.L7:
	.word	ATM_MAX_PCR
	.size	atm_pcr_goal, .-atm_pcr_goal
	.comm	ATM_MAX_PCR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
