	.file	"extr_omap2_mcspi.c_omap2_mcspi_set_master_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	omap2_mcspi_set_master_mode, @function
omap2_mcspi_set_master_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR OMAP2_MCSPI_MODULCTRL[rip]
	call	mcspi_read_reg@PLT
	mov	esi, DWORD PTR OMAP2_MCSPI_MODULCTRL_STEST[rip]
	xor	edx, edx
	mov	edi, eax
	mov	ebx, eax
	call	MOD_REG_BIT@PLT
	mov	esi, DWORD PTR OMAP2_MCSPI_MODULCTRL_MS[rip]
	mov	edi, ebx
	xor	edx, edx
	call	MOD_REG_BIT@PLT
	mov	esi, DWORD PTR OMAP2_MCSPI_MODULCTRL_SINGLE[rip]
	mov	edi, ebx
	mov	edx, 1
	call	MOD_REG_BIT@PLT
	mov	esi, DWORD PTR OMAP2_MCSPI_MODULCTRL[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	mcspi_write_reg@PLT
	movsx	rdx, DWORD PTR 0[rbp]
	mov	rax, QWORD PTR omap2_mcspi_ctx[rip]
	mov	DWORD PTR -4[rax+rdx*4], ebx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	omap2_mcspi_set_master_mode, .-omap2_mcspi_set_master_mode
	.comm	omap2_mcspi_ctx,8,8
	.comm	OMAP2_MCSPI_MODULCTRL_STEST,4,4
	.comm	OMAP2_MCSPI_MODULCTRL_SINGLE,4,4
	.comm	OMAP2_MCSPI_MODULCTRL_MS,4,4
	.comm	OMAP2_MCSPI_MODULCTRL,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_omap2_mcspi.c_omap2_mcspi_set_master_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	omap2_mcspi_set_master_mode, %function
omap2_mcspi_set_master_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L4
	mov	r5, r0
	ldr	r1, [r6]
	bl	mcspi_read_reg
	mov	r4, r0
	ldr	r3, .L4+4
	mov	r2, #0
	ldr	r1, [r3]
	bl	MOD_REG_BIT
	ldr	r3, .L4+8
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	MOD_REG_BIT
	ldr	r3, .L4+12
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r4
	bl	MOD_REG_BIT
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r6]
	bl	mcspi_write_reg
	ldr	r2, .L4+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	sub	r3, r3, #-1073741823
	str	r4, [r2, r3, lsl #2]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	OMAP2_MCSPI_MODULCTRL
	.word	OMAP2_MCSPI_MODULCTRL_STEST
	.word	OMAP2_MCSPI_MODULCTRL_MS
	.word	OMAP2_MCSPI_MODULCTRL_SINGLE
	.word	omap2_mcspi_ctx
	.size	omap2_mcspi_set_master_mode, .-omap2_mcspi_set_master_mode
	.comm	omap2_mcspi_ctx,4,4
	.comm	OMAP2_MCSPI_MODULCTRL_STEST,4,4
	.comm	OMAP2_MCSPI_MODULCTRL_SINGLE,4,4
	.comm	OMAP2_MCSPI_MODULCTRL_MS,4,4
	.comm	OMAP2_MCSPI_MODULCTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
