	.file	"extr_envctrl.c_envctrl_init_globaladdr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	envctrl_init_globaladdr, @function
envctrl_init_globaladdr:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L2
	lea	ecx, -1[rax]
	mov	r8, QWORD PTR 24[rdi]
	mov	rsi, QWORD PTR PCF8584_VOLTAGE_TYPE[rip]
	xor	eax, eax
	mov	r9, QWORD PTR chnls_mask[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, rdx
.L4:
	cmp	QWORD PTR [r8+rax*8], rsi
	jne	.L3
	mov	edx, DWORD PTR [r9+rax*4]
	or	DWORD PTR 16[rdi], edx
.L3:
	lea	rdx, 1[rax]
	cmp	rax, rcx
	jne	.L5
.L2:
	mov	rax, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR ENVCTRL_GLOBALADDR_MON[rip]
	mov	DWORD PTR [rax], edx
	ret
	.cfi_endproc
.LFE0:
	.size	envctrl_init_globaladdr, .-envctrl_init_globaladdr
	.comm	chnls_mask,8,8
	.comm	PCF8584_VOLTAGE_TYPE,8,8
	.comm	ENVCTRL_GLOBALADDR_MON,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_envctrl.c_envctrl_init_globaladdr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	envctrl_init_globaladdr, %function
envctrl_init_globaladdr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	cmp	ip, #0
	ble	.L7
	ldr	r3, [r0, #12]
	ldr	r1, .L11
	ldr	r2, .L11+4
	push	{r4, lr}
	sub	r3, r3, #4
	ldr	lr, [r1]
	ldr	r2, [r2]
	add	ip, r3, ip, lsl #2
.L4:
	ldr	r1, [r3, #4]!
	add	r2, r2, #4
	cmp	r1, lr
	ldreq	r4, [r2, #-4]
	ldreq	r1, [r0, #8]
	orreq	r1, r1, r4
	streq	r1, [r0, #8]
	cmp	r3, ip
	bne	.L4
	ldr	r2, .L11+8
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	str	r2, [r3]
	pop	{r4, pc}
.L7:
	ldr	r2, .L11+8
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	str	r2, [r3]
	bx	lr
.L12:
	.align	2
.L11:
	.word	PCF8584_VOLTAGE_TYPE
	.word	chnls_mask
	.word	ENVCTRL_GLOBALADDR_MON
	.size	envctrl_init_globaladdr, .-envctrl_init_globaladdr
	.comm	chnls_mask,4,4
	.comm	PCF8584_VOLTAGE_TYPE,4,4
	.comm	ENVCTRL_GLOBALADDR_MON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
