	.file	"extr_test_4mpsram.c_test_spi_bus_occupy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ut-hspi"
.LC1:
	.string	"HSPI claimed."
.LC2:
	.string	"ut-vspi"
.LC3:
	.string	"VSPI claimed."
	.text
	.p2align 4
	.type	test_spi_bus_occupy, @function
test_spi_bus_occupy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, QWORD PTR HSPI_HOST[rip]
	call	spicommon_periph_claim@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
.L2:
	mov	rdi, QWORD PTR VSPI_HOST[rip]
	lea	rsi, .LC2[rip]
	call	spicommon_periph_claim@PLT
	mov	ebp, eax
	test	eax, eax
	jne	.L16
	cmp	QWORD PTR HSPI_HOST[rip], rbx
	je	.L17
.L4:
	cmp	QWORD PTR VSPI_HOST[rip], rbx
	je	.L18
	mov	edi, r12d
	call	TEST_ASSERT@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	TEST_ASSERT@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC1[rip]
	call	ESP_LOGI@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC3[rip]
	call	ESP_LOGI@PLT
	cmp	QWORD PTR HSPI_HOST[rip], rbx
	jne	.L4
.L17:
	mov	edi, r12d
	call	TEST_ASSERT_FALSE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	TEST_ASSERT@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, ebp
	call	TEST_ASSERT_FALSE@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	edi, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	TEST_ASSERT@PLT
	.cfi_endproc
.LFE0:
	.size	test_spi_bus_occupy, .-test_spi_bus_occupy
	.comm	VSPI_HOST,8,8
	.comm	TAG,4,4
	.comm	HSPI_HOST,8,8
	.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_test_4mpsram.c_test_spi_bus_occupy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ut-hspi\000"
	.align	2
.LC1:
	.ascii	"HSPI claimed.\000"
	.align	2
.LC2:
	.ascii	"ut-vspi\000"
	.align	2
.LC3:
	.ascii	"VSPI claimed.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_spi_bus_occupy, %function
test_spi_bus_occupy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L18
	mov	r6, r0
	ldr	r1, .L18+4
	ldr	r0, [r7]
	bl	spicommon_periph_claim
	subs	r5, r0, #0
	bne	.L14
.L2:
	ldr	r8, .L18+8
	ldr	r1, .L18+12
	ldr	r0, [r8]
	bl	spicommon_periph_claim
	subs	r4, r0, #0
	bne	.L15
	ldr	r3, [r7]
	cmp	r3, r6
	beq	.L16
.L4:
	ldr	r3, [r8]
	cmp	r3, r6
	beq	.L17
	mov	r0, r5
	bl	TEST_ASSERT
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	TEST_ASSERT
.L14:
	ldr	r3, .L18+16
	ldr	r1, .L18+20
	ldr	r0, [r3]
	bl	ESP_LOGI
	b	.L2
.L15:
	ldr	r3, .L18+16
	ldr	r1, .L18+24
	ldr	r0, [r3]
	bl	ESP_LOGI
	ldr	r3, [r7]
	cmp	r3, r6
	bne	.L4
.L16:
	mov	r0, r5
	bl	TEST_ASSERT_FALSE
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	TEST_ASSERT
.L17:
	mov	r0, r4
	bl	TEST_ASSERT_FALSE
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	TEST_ASSERT
.L19:
	.align	2
.L18:
	.word	HSPI_HOST
	.word	.LC0
	.word	VSPI_HOST
	.word	.LC2
	.word	TAG
	.word	.LC1
	.word	.LC3
	.size	test_spi_bus_occupy, .-test_spi_bus_occupy
	.comm	VSPI_HOST,4,4
	.comm	TAG,4,4
	.comm	HSPI_HOST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
