	.file	"extr_core_t2.c_t2_write_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	t2_write_config, @function
t2_write_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rcx, 16[rsp]
	lea	r8, 15[rsp]
	call	mk_conf_addr@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR PCIBIOS_DEVICE_NOT_FOUND[rip]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 32
	.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	rdi, QWORD PTR 16[rsp]
	and	ebx, 3
	movzx	edx, BYTE PTR 15[rsp]
	mov	esi, ebp
	lea	eax, -8[0+r12*8]
	lea	ecx, 0[0+rbx*8]
	sal	rdi, 5
	cdqe
	add	rdi, QWORD PTR T2_CONF[rip]
	sal	esi, cl
	add	rdi, rax
	call	conf_write@PLT
	mov	eax, DWORD PTR PCIBIOS_SUCCESSFUL[rip]
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	t2_write_config, .-t2_write_config
	.comm	T2_CONF,8,8
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,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_core_t2.c_t2_write_config.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	t2_write_config, %function
t2_write_config:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #28
	ldr	ip, .L8
	mov	r5, r3
	add	r3, sp, #15
	str	r3, [sp]
	add	r3, sp, #16
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	mov	r4, r2
	bl	mk_conf_addr
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L8+8
	ldr	ip, [sp, #16]
	ldr	r0, [r3]
	and	r2, r4, #3
	ldr	r3, [sp, #40]
	lsl	r1, r2, #3
	add	r0, r0, ip, lsl #5
	sub	r5, r5, #1
	lsl	r1, r3, r1
	ldrb	r2, [sp, #15]	@ zero_extendqisi2
	add	r0, r0, r5, lsl #3
	bl	conf_write
	ldr	r3, .L8+12
	ldr	r0, [r3]
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	PCIBIOS_DEVICE_NOT_FOUND
	.word	T2_CONF
	.word	PCIBIOS_SUCCESSFUL
	.size	t2_write_config, .-t2_write_config
	.comm	T2_CONF,4,4
	.comm	PCIBIOS_SUCCESSFUL,4,4
	.comm	PCIBIOS_DEVICE_NOT_FOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
