	.file	"extr_sja1105_spi.c_sja1105_inhibit_tx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sja1105_inhibit_tx
	.type	sja1105_inhibit_tx, @function
sja1105_inhibit_tx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r8d, DWORD PTR SJA1105_SIZE_PORT_CTRL[rip]
	mov	esi, DWORD PTR SPI_READ[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	r14, rsp
	mov	rcx, r14
	mov	r13, QWORD PTR [rax]
	mov	edx, DWORD PTR 0[r13]
	call	sja1105_spi_send_int@PLT
	test	eax, eax
	js	.L1
	mov	rsi, QWORD PTR [rsp]
	mov	edx, DWORD PTR 0[r13]
	mov	rcx, r14
	mov	rdi, r12
	mov	r8d, DWORD PTR SJA1105_SIZE_PORT_CTRL[rip]
	mov	rax, rsi
	or	rax, rbx
	not	rbx
	and	rbx, rsi
	test	ebp, ebp
	mov	esi, DWORD PTR SPI_WRITE[rip]
	cmovne	rbx, rax
	mov	QWORD PTR [rsp], rbx
	call	sja1105_spi_send_int@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sja1105_inhibit_tx, .-sja1105_inhibit_tx
	.comm	SPI_WRITE,4,4
	.comm	SPI_READ,4,4
	.comm	SJA1105_SIZE_PORT_CTRL,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_sja1105_spi.c_sja1105_inhibit_tx.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sja1105_inhibit_tx
	.syntax unified
	.arm
	.fpu softvfp
	.type	sja1105_inhibit_tx, %function
sja1105_inhibit_tx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	ldr	r7, .L9
	ldr	r8, [r3]
	mov	r5, r1
	ldr	r1, [r7]
	sub	sp, sp, #16
	ldr	r3, .L9+4
	ldr	ip, .L9+8
	mov	r6, r2
	ldr	r2, [r8]
	str	r1, [sp]
	ldr	r1, [r3]
	add	r3, sp, #8
	mov	r4, r0
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	sja1105_spi_send_int
	cmp	r0, #0
	blt	.L1
	ldr	r3, [sp, #8]
	cmp	r6, #0
	orrne	r5, r3, r5
	biceq	r5, r3, r5
	ldr	r3, [r7]
	ldr	r1, .L9+12
	ldr	r2, [r8]
	str	r3, [sp]
	mov	r0, r4
	ldr	r1, [r1]
	add	r3, sp, #8
	str	r5, [sp, #8]
	bl	sja1105_spi_send_int
.L1:
	ldr	r3, .L9+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	SJA1105_SIZE_PORT_CTRL
	.word	SPI_READ
	.word	.LC0
	.word	SPI_WRITE
	.size	sja1105_inhibit_tx, .-sja1105_inhibit_tx
	.comm	SPI_WRITE,4,4
	.comm	SPI_READ,4,4
	.comm	SJA1105_SIZE_PORT_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
