	.file	"extr_spi.c_spi_eeprom_program_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	spi_eeprom_program_enable, @function
spi_eeprom_program_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	rtsx_init_cmd@PLT
	mov	edx, DWORD PTR SPI_CA_NUMBER[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WRITE_REG_CMD[rip]
	mov	r8d, 134
	mov	ecx, 255
	call	rtsx_add_cmd@PLT
	mov	edx, DWORD PTR SPI_COMMAND[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WRITE_REG_CMD[rip]
	mov	r8d, 19
	mov	ecx, 255
	call	rtsx_add_cmd@PLT
	mov	edx, DWORD PTR SPI_TRANSFER0[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR WRITE_REG_CMD[rip]
	mov	r8d, DWORD PTR SPI_TRANSFER0_START[rip]
	mov	ecx, 255
	or	r8d, DWORD PTR SPI_CA_MODE0[rip]
	call	rtsx_add_cmd@PLT
	mov	ecx, DWORD PTR SPI_TRANSFER0_END[rip]
	mov	edx, DWORD PTR SPI_TRANSFER0[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR CHECK_REG_CMD[rip]
	mov	r8d, ecx
	call	rtsx_add_cmd@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, 100
	call	rtsx_send_cmd@PLT
	pop	rbp
	.cfi_def_cfa_offset 8
	test	eax, eax
	mov	eax, DWORD PTR STATUS_FAIL[rip]
	cmovns	eax, DWORD PTR STATUS_SUCCESS[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	spi_eeprom_program_enable, .-spi_eeprom_program_enable
	.comm	WRITE_REG_CMD,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_FAIL,4,4
	.comm	SPI_TRANSFER0_START,4,4
	.comm	SPI_TRANSFER0_END,4,4
	.comm	SPI_TRANSFER0,4,4
	.comm	SPI_COMMAND,4,4
	.comm	SPI_CA_NUMBER,4,4
	.comm	SPI_CA_MODE0,4,4
	.comm	CHECK_REG_CMD,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_spi.c_spi_eeprom_program_enable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spi_eeprom_program_enable, %function
spi_eeprom_program_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	mov	r4, r0
	bl	rtsx_init_cmd
	mov	r2, #134
	ldr	r5, .L6
	ldr	r3, .L6+4
	str	r2, [sp]
	ldr	r2, [r3]
	ldr	r1, [r5]
	mov	r0, r4
	mov	r3, #255
	bl	rtsx_add_cmd
	mov	r2, #19
	ldr	r3, .L6+8
	str	r2, [sp]
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	mov	r3, #255
	bl	rtsx_add_cmd
	ldr	r3, .L6+12
	ldr	r2, .L6+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r6, .L6+20
	orr	r3, r3, r2
	ldr	r1, [r5]
	ldr	r2, [r6]
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #255
	bl	rtsx_add_cmd
	ldr	r3, .L6+24
	ldr	r1, .L6+28
	ldr	r3, [r3]
	ldr	r2, [r6]
	str	r3, [sp]
	mov	r0, r4
	ldr	r1, [r1]
	bl	rtsx_add_cmd
	mov	r0, r4
	mov	r2, #100
	mov	r1, #0
	bl	rtsx_send_cmd
	cmp	r0, #0
	ldrlt	r3, .L6+32
	ldrge	r3, .L6+36
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	WRITE_REG_CMD
	.word	SPI_CA_NUMBER
	.word	SPI_COMMAND
	.word	SPI_TRANSFER0_START
	.word	SPI_CA_MODE0
	.word	SPI_TRANSFER0
	.word	SPI_TRANSFER0_END
	.word	CHECK_REG_CMD
	.word	STATUS_FAIL
	.word	STATUS_SUCCESS
	.size	spi_eeprom_program_enable, .-spi_eeprom_program_enable
	.comm	WRITE_REG_CMD,4,4
	.comm	STATUS_SUCCESS,4,4
	.comm	STATUS_FAIL,4,4
	.comm	SPI_TRANSFER0_START,4,4
	.comm	SPI_TRANSFER0_END,4,4
	.comm	SPI_TRANSFER0,4,4
	.comm	SPI_COMMAND,4,4
	.comm	SPI_CA_NUMBER,4,4
	.comm	SPI_CA_MODE0,4,4
	.comm	CHECK_REG_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
