	.file	"extr_thmc50.c_thmc50_init_client.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	thmc50_init_client, @function
thmc50_init_client:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR THMC50_REG_ANALOG_OUT[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	test	eax, eax
	je	.L2
	mov	DWORD PTR [rbx], eax
.L3:
	mov	esi, DWORD PTR THMC50_REG_CONF[rip]
	mov	rdi, rbp
	call	i2c_smbus_read_byte_data@PLT
	mov	rcx, QWORD PTR adm1022[rip]
	mov	edx, eax
	or	edx, 1
	cmp	QWORD PTR 8[rbx], rcx
	je	.L10
.L4:
	mov	esi, DWORD PTR THMC50_REG_CONF[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	i2c_smbus_write_byte_data@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	test	al, -128
	je	.L4
	mov	DWORD PTR 16[rbx], 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	DWORD PTR [rbx], 1
	mov	esi, DWORD PTR THMC50_REG_ANALOG_OUT[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	i2c_smbus_write_byte_data@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	thmc50_init_client, .-thmc50_init_client
	.comm	adm1022,8,8
	.comm	THMC50_REG_CONF,4,4
	.comm	THMC50_REG_ANALOG_OUT,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_thmc50.c_thmc50_init_client.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thmc50_init_client, %function
thmc50_init_client:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0, #12]
	ldr	r6, .L11
	mov	r4, r0
	ldr	r1, [r6]
	mov	r0, r5
	bl	i2c_smbus_read_byte_data
	cmp	r0, #0
	strne	r0, [r4]
	beq	.L10
.L3:
	ldr	r6, .L11+4
	mov	r0, r5
	ldr	r1, [r6]
	bl	i2c_smbus_read_byte_data
	ldr	r3, .L11+8
	ldr	r1, [r4, #4]
	ldr	r3, [r3]
	orr	r2, r0, #1
	cmp	r1, r3
	bne	.L4
	tst	r0, #128
	movne	r3, #1
	strne	r3, [r4, #8]
.L4:
	mov	r0, r5
	ldr	r1, [r6]
	pop	{r4, r5, r6, lr}
	b	i2c_smbus_write_byte_data
.L10:
	mov	r2, #1
	ldr	r1, [r6]
	mov	r0, r5
	str	r2, [r4]
	bl	i2c_smbus_write_byte_data
	b	.L3
.L12:
	.align	2
.L11:
	.word	THMC50_REG_ANALOG_OUT
	.word	THMC50_REG_CONF
	.word	adm1022
	.size	thmc50_init_client, .-thmc50_init_client
	.comm	adm1022,4,4
	.comm	THMC50_REG_CONF,4,4
	.comm	THMC50_REG_ANALOG_OUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
