	.file	"extr_tcpm.c_hard_reset_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hard_reset_state, @function
hard_reset_state:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR PD_N_HARD_RESET_COUNT[rip]
	cmp	QWORD PTR [rdi], rax
	jl	.L8
	cmp	QWORD PTR 24[rdi], 0
	jne	.L9
	mov	rax, QWORD PTR TYPEC_SOURCE[rip]
	cmp	QWORD PTR 8[rdi], rax
	je	.L10
	mov	eax, DWORD PTR SNK_UNATTACHED[rip]
	mov	rdx, QWORD PTR SNK_WAIT_CAPABILITIES[rip]
	cmp	QWORD PTR 16[rdi], rdx
	je	.L11
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR ERROR_RECOVERY[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR HARD_RESET_SEND[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR SNK_READY[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR SRC_UNATTACHED[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	hard_reset_state, .-hard_reset_state
	.comm	TYPEC_SOURCE,8,8
	.comm	SRC_UNATTACHED,4,4
	.comm	SNK_WAIT_CAPABILITIES,8,8
	.comm	SNK_UNATTACHED,4,4
	.comm	SNK_READY,4,4
	.comm	PD_N_HARD_RESET_COUNT,8,8
	.comm	HARD_RESET_SEND,4,4
	.comm	ERROR_RECOVERY,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_tcpm.c_hard_reset_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hard_reset_state, %function
hard_reset_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L11
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [r0, #12]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L11+4
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L10
	ldr	r3, .L11+8
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L11+12
	ldrne	r3, .L11+16
	ldr	r0, [r3]
	bx	lr
.L9:
	ldr	r3, .L11+20
	ldr	r0, [r3]
	bx	lr
.L8:
	ldr	r3, .L11+24
	ldr	r0, [r3]
	bx	lr
.L10:
	ldr	r3, .L11+28
	ldr	r0, [r3]
	bx	lr
.L12:
	.align	2
.L11:
	.word	PD_N_HARD_RESET_COUNT
	.word	TYPEC_SOURCE
	.word	SNK_WAIT_CAPABILITIES
	.word	SNK_READY
	.word	SNK_UNATTACHED
	.word	ERROR_RECOVERY
	.word	HARD_RESET_SEND
	.word	SRC_UNATTACHED
	.size	hard_reset_state, .-hard_reset_state
	.comm	TYPEC_SOURCE,4,4
	.comm	SRC_UNATTACHED,4,4
	.comm	SNK_WAIT_CAPABILITIES,4,4
	.comm	SNK_UNATTACHED,4,4
	.comm	SNK_READY,4,4
	.comm	PD_N_HARD_RESET_COUNT,4,4
	.comm	HARD_RESET_SEND,4,4
	.comm	ERROR_RECOVERY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
