	.file	"extr_trf7970a.c_trf7970a_tg_config_framing.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"framing: %d\n"
.LC1:
	.string	"Unsupported Framing: %d\n"
	.text
	.p2align 4
	.type	trf7970a_tg_config_framing, @function
trf7970a_tg_config_framing:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, esi
	mov	r12d, esi
	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	rbp, QWORD PTR [rdi]
	mov	edi, DWORD PTR 40[rdi]
	call	dev_dbg@PLT
	cmp	r12d, 131
	jg	.L2
	cmp	r12d, 129
	jg	.L3
	lea	eax, -128[r12]
	cmp	eax, 1
	ja	.L4
	mov	rax, QWORD PTR TRF7970A_CMD_TRANSMIT[rip]
	mov	DWORD PTR 16[rbx], r12d
	mov	QWORD PTR 48[rbx], rax
	mov	rax, QWORD PTR TRF7970A_ISO_CTRL_RX_CRC_N[rip]
	not	rax
	and	rbp, rax
	cmp	QWORD PTR 8[rbx], rbp
	je	.L8
.L21:
	mov	esi, DWORD PTR TRF7970A_ISO_CTRL[rip]
	mov	rdx, rbp
	mov	rdi, rbx
	call	trf7970a_write@PLT
	test	eax, eax
	je	.L19
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L20:
	.cfi_restore_state
	cmp	r12d, 133
	jne	.L4
.L3:
	mov	DWORD PTR 16[rbx], r12d
.L8:
	mov	rdx, QWORD PTR 32[rbx]
	mov	rcx, QWORD PTR TRF7970A_CHIP_STATUS_RF_ON[rip]
	xor	eax, eax
	test	rdx, rcx
	jne	.L1
	mov	esi, DWORD PTR TRF7970A_CHIP_STATUS_CTRL[rip]
	or	rdx, rcx
	mov	rdi, rbx
	call	trf7970a_write@PLT
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR TRF7970A_CHIP_STATUS_RF_ON[rip]
	or	QWORD PTR 32[rbx], rdx
	pop	rbx
	.cfi_remember_state
	.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
	cmp	r12d, 132
	jne	.L20
	mov	rax, QWORD PTR TRF7970A_CMD_TRANSMIT_NO_CRC[rip]
	mov	DWORD PTR 16[rbx], r12d
	or	rbp, QWORD PTR TRF7970A_ISO_CTRL_RX_CRC_N[rip]
	mov	QWORD PTR 48[rbx], rax
	cmp	QWORD PTR 8[rbx], rbp
	jne	.L21
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	mov	QWORD PTR 8[rbx], rbp
	mov	rdx, QWORD PTR 24[rbx]
	mov	rdi, rbx
	mov	esi, DWORD PTR TRF7970A_MODULATOR_SYS_CLK_CTRL[rip]
	call	trf7970a_write@PLT
	test	eax, eax
	je	.L8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR 40[rbx]
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	call	dev_dbg@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	trf7970a_tg_config_framing, .-trf7970a_tg_config_framing
	.comm	TRF7970A_MODULATOR_SYS_CLK_CTRL,4,4
	.comm	TRF7970A_ISO_CTRL_RX_CRC_N,8,8
	.comm	TRF7970A_ISO_CTRL,4,4
	.comm	TRF7970A_CMD_TRANSMIT_NO_CRC,8,8
	.comm	TRF7970A_CMD_TRANSMIT,8,8
	.comm	TRF7970A_CHIP_STATUS_RF_ON,8,8
	.comm	TRF7970A_CHIP_STATUS_CTRL,4,4
	.comm	EINVAL,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_trf7970a.c_trf7970a_tg_config_framing.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"framing: %d\012\000"
	.align	2
.LC1:
	.ascii	"Unsupported Framing: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trf7970a_tg_config_framing, %function
trf7970a_tg_config_framing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r2, r1
	ldr	r0, [r0, #20]
	ldr	r1, .L16
	ldr	r6, [r4]
	bl	dev_dbg
	sub	r3, r5, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L6
	.word	.L6
	.word	.L3
	.word	.L3
	.word	.L5
	.word	.L3
.L6:
	ldr	r3, .L16+4
	ldr	r2, .L16+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r4, #24]
	bic	r6, r6, r2
.L7:
	ldr	r3, [r4, #4]
	str	r5, [r4, #8]
	cmp	r3, r6
	beq	.L8
	ldr	r3, .L16+12
	mov	r2, r6
	mov	r0, r4
	ldr	r1, [r3]
	bl	trf7970a_write
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	ldr	r3, .L16+16
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r4, #12]
	str	r6, [r4, #4]
	bl	trf7970a_write
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
.L8:
	ldr	r5, .L16+20
	ldr	r2, [r4, #16]
	ldr	r3, [r5]
	tst	r2, r3
	beq	.L15
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	str	r5, [r4, #8]
	b	.L8
.L5:
	ldr	r3, .L16+24
	ldr	r2, .L16+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [r4, #24]
	orr	r6, r6, r2
	b	.L7
.L15:
	ldr	r1, .L16+28
	orr	r2, r2, r3
	mov	r0, r4
	ldr	r1, [r1]
	bl	trf7970a_write
	cmp	r0, #0
	ldreq	r3, [r4, #16]
	ldreq	r2, [r5]
	orreq	r3, r3, r2
	streq	r3, [r4, #16]
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, r5
	ldr	r0, [r4, #20]
	ldr	r1, .L16+32
	bl	dev_dbg
	ldr	r3, .L16+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	TRF7970A_CMD_TRANSMIT
	.word	TRF7970A_ISO_CTRL_RX_CRC_N
	.word	TRF7970A_ISO_CTRL
	.word	TRF7970A_MODULATOR_SYS_CLK_CTRL
	.word	TRF7970A_CHIP_STATUS_RF_ON
	.word	TRF7970A_CMD_TRANSMIT_NO_CRC
	.word	TRF7970A_CHIP_STATUS_CTRL
	.word	.LC1
	.word	EINVAL
	.size	trf7970a_tg_config_framing, .-trf7970a_tg_config_framing
	.comm	TRF7970A_MODULATOR_SYS_CLK_CTRL,4,4
	.comm	TRF7970A_ISO_CTRL_RX_CRC_N,4,4
	.comm	TRF7970A_ISO_CTRL,4,4
	.comm	TRF7970A_CMD_TRANSMIT_NO_CRC,4,4
	.comm	TRF7970A_CMD_TRANSMIT,4,4
	.comm	TRF7970A_CHIP_STATUS_RF_ON,4,4
	.comm	TRF7970A_CHIP_STATUS_CTRL,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
