	.file	"extr_tpm_i2c_nuvoton.c_get_vid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_vid, @function
get_vid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR I2C_FUNC_SMBUS_BYTE_DATA[rip]
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	i2c_check_functionality@PLT
	test	eax, eax
	jne	.L2
.L15:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, rsp
	mov	esi, DWORD PTR TPM_VID_DID_RID[rip]
	mov	edx, 4
	mov	rdi, rbp
	mov	rcx, r12
	call	i2c_nuvoton_read_buf@PLT
	test	rax, rax
	js	.L1
	mov	edx, 12
	lea	rsi, vid_did_rid_value.1941[rip]
	mov	rdi, r12
	call	memcmp@PLT
	test	rax, rax
	jne	.L18
.L5:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rbx], rax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR TPM_DATA_FIFO_W[rip]
	mov	rcx, r12
	mov	edx, 4
	mov	rdi, rbp
	call	i2c_nuvoton_read_buf@PLT
	test	rax, rax
	js	.L1
	mov	edx, 12
	lea	rsi, vid_did_rid_value.1941[rip]
	mov	rdi, r12
	call	memcmp@PLT
	test	rax, rax
	je	.L5
	jmp	.L15
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_vid, .-get_vid
	.section	.rodata
	.align 8
	.type	vid_did_rid_value.1941, @object
	.size	vid_did_rid_value.1941, 12
vid_did_rid_value.1941:
	.long	80
	.long	16
	.long	254
	.comm	TPM_VID_DID_RID,4,4
	.comm	TPM_DATA_FIFO_W,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	ENODEV,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_tpm_i2c_nuvoton.c_get_vid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_vid, %function
get_vid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L17
	ldr	r3, .L17+4
	sub	sp, sp, #12
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	i2c_check_functionality
	cmp	r0, #0
	bne	.L2
.L13:
	ldr	r3, .L17+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L17+12
	mov	r2, #4
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, sp
	bl	i2c_nuvoton_read_buf
	cmp	r0, #0
	blt	.L1
	mov	r2, #12
	mov	r0, sp
	ldr	r1, .L17+16
	bl	memcmp
	cmp	r0, #0
	bne	.L16
.L4:
	ldr	r3, [sp]
	mov	r0, #0
	str	r3, [r5]
	b	.L1
.L16:
	ldr	r3, .L17+20
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #4
	mov	r3, sp
	bl	i2c_nuvoton_read_buf
	cmp	r0, #0
	blt	.L1
	mov	r0, sp
	mov	r2, #12
	ldr	r1, .L17+16
	bl	memcmp
	cmp	r0, #0
	beq	.L4
	b	.L13
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	I2C_FUNC_SMBUS_BYTE_DATA
	.word	.LC0
	.word	ENODEV
	.word	TPM_VID_DID_RID
	.word	.LANCHOR0
	.word	TPM_DATA_FIFO_W
	.size	get_vid, .-get_vid
	.comm	TPM_VID_DID_RID,4,4
	.comm	TPM_DATA_FIFO_W,4,4
	.comm	I2C_FUNC_SMBUS_BYTE_DATA,4,4
	.comm	ENODEV,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	vid_did_rid_value.4225, %object
	.size	vid_did_rid_value.4225, 12
vid_did_rid_value.4225:
	.word	80
	.word	16
	.word	254
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
