	.file	"extr_mISDNisar.c_setup_sart.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_sart, @function
setup_sart:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	SET_DPS@PLT
	mov	QWORD PTR [rsp], 0
	mov	ebp, eax
	mov	eax, DWORD PTR 4[rbx]
	lea	edx, -128[rax]
	cmp	edx, 5
	ja	.L2
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rdx*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L3-.L4
	.long	.L5-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR S_P1_CHS_8[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r8, rsp
	mov	ecx, 2
	mov	esi, DWORD PTR ISAR_HIS_SARTCFG[rip]
	mov	edx, DWORD PTR SMODE_V14[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR S_P2_BFT_DEF[rip]
	or	edx, DWORD PTR SCTRL_HDMC_BOTH[rip]
	or	esi, ebp
	mov	DWORD PTR 4[rsp], eax
	call	send_mbox@PLT
.L2:
	mov	edi, 1000
	call	udelay@PLT
	mov	esi, DWORD PTR ISAR_HIS_BSTREQ[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	or	esi, ebp
	call	send_mbox@PLT
	mov	edi, 1000
	call	udelay@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR ISAR_HIS_SARTCFG[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r8, rsp
	mov	ecx, 2
	mov	edx, DWORD PTR SMODE_BINARY[rip]
	or	esi, ebp
	call	send_mbox@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR ISAR_HIS_SARTCFG[rip]
	mov	edi, DWORD PTR [rbx]
	mov	r8, rsp
	mov	ecx, 1
	mov	edx, DWORD PTR SMODE_HDLC[rip]
	or	esi, ebp
	call	send_mbox@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR ISAR_HIS_SARTCFG[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edx, DWORD PTR SMODE_DISABLE[rip]
	or	esi, ebp
	call	send_mbox@PLT
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	setup_sart, .-setup_sart
	.comm	S_P2_BFT_DEF,4,4
	.comm	S_P1_CHS_8,4,4
	.comm	SMODE_V14,4,4
	.comm	SMODE_HDLC,4,4
	.comm	SMODE_DISABLE,4,4
	.comm	SMODE_BINARY,4,4
	.comm	SCTRL_HDMC_BOTH,4,4
	.comm	ISAR_HIS_SARTCFG,4,4
	.comm	ISAR_HIS_BSTREQ,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_mISDNisar.c_setup_sart.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_sart, %function
setup_sart:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L12
	sub	sp, sp, #28
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	SET_DPS
	mov	r2, #0
	ldr	r3, [r4, #4]
	mov	r5, r0
	sub	r3, r3, #128
	str	r2, [sp, #12]
	str	r2, [sp, #16]
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L3
	.word	.L5
	.word	.L6
	.word	.L5
	.word	.L3
.L6:
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L12+12
	ldr	r0, .L12+16
	ldr	ip, .L12+20
	ldr	r0, [r0]
	ldr	r1, [r1]
	orr	r2, r2, r3
	add	r3, sp, #12
	ldr	ip, [ip]
	str	r3, [sp]
	str	r0, [sp, #12]
	mov	r3, #2
	ldr	r0, [r4]
	orr	r1, r5, r1
	str	ip, [sp, #16]
	bl	send_mbox
.L2:
	mov	r0, #1000
	bl	udelay
	mov	r3, #0
	ldr	r2, .L12+24
	ldr	r0, [r4]
	ldr	r1, [r2]
	mov	r2, r3
	str	r3, [sp]
	orr	r1, r5, r1
	bl	send_mbox
	mov	r0, #1000
	bl	udelay
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	ldr	r3, .L12+12
	ldr	r2, .L12+28
	ldr	r1, [r3]
	add	r3, sp, #12
	ldr	r2, [r2]
	str	r3, [sp]
	orr	r1, r0, r1
	mov	r3, #2
	ldr	r0, [r4]
	bl	send_mbox
	b	.L2
.L3:
	ldr	r3, .L12+12
	ldr	r2, .L12+32
	ldr	r1, [r3]
	add	r3, sp, #12
	ldr	r2, [r2]
	str	r3, [sp]
	orr	r1, r0, r1
	mov	r3, #1
	ldr	r0, [r4]
	bl	send_mbox
	b	.L2
.L7:
	mov	r3, #0
	ldr	r1, .L12+12
	ldr	r2, .L12+36
	ldr	r1, [r1]
	str	r3, [sp]
	orr	r1, r0, r1
	ldr	r2, [r2]
	ldr	r0, [r4]
	bl	send_mbox
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	SMODE_V14
	.word	SCTRL_HDMC_BOTH
	.word	ISAR_HIS_SARTCFG
	.word	S_P1_CHS_8
	.word	S_P2_BFT_DEF
	.word	ISAR_HIS_BSTREQ
	.word	SMODE_BINARY
	.word	SMODE_HDLC
	.word	SMODE_DISABLE
	.size	setup_sart, .-setup_sart
	.comm	S_P2_BFT_DEF,4,4
	.comm	S_P1_CHS_8,4,4
	.comm	SMODE_V14,4,4
	.comm	SMODE_HDLC,4,4
	.comm	SMODE_DISABLE,4,4
	.comm	SMODE_BINARY,4,4
	.comm	SCTRL_HDMC_BOTH,4,4
	.comm	ISAR_HIS_SARTCFG,4,4
	.comm	ISAR_HIS_BSTREQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
