	.file	"794675.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.long	-1
	.align 32
	.type	response, @object
	.size	response, 1029
response:
	.long	-1
	.string	""
	.string	""
	.zero	1023
	.align 16
	.type	server_ip, @object
	.size	server_ip, 20
server_ip:
	.string	"172.16.100.1"
	.zero	7
	.align 4
	.type	server_port, @object
	.size	server_port, 4
server_port:
	.long	6992
	.text
	.globl	sfc_set_address
	.type	sfc_set_address, @function
sfc_set_address:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L2
	mov	DWORD PTR -4[rbp], 6992
.L2:
	mov	eax, DWORD PTR server_port[rip]
	cmp	DWORD PTR -4[rbp], eax
	je	.L3
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR server_port[rip], eax
	mov	DWORD PTR -8[rbp], 1
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 20
	lea	rsi, server_ip[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 20
	mov	rsi, rax
	lea	rdi, server_ip[rip]
	call	strncpy@PLT
	mov	BYTE PTR server_ip[rip+19], 0
	mov	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 0
	je	.L6
	mov	eax, DWORD PTR sockfd[rip]
	test	eax, eax
	js	.L6
	mov	eax, DWORD PTR sockfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR sockfd[rip], -1
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sfc_set_address, .-sfc_set_address
	.section	.rodata
.LC0:
	.string	"socket error in newsock"
.LC1:
	.string	"bizarre error in socket(2)\n"
	.align 8
.LC2:
	.string	"Unable to parse IP for to MES ATE"
.LC3:
	.string	"Unable to connect to MES ATE"
	.align 8
.LC4:
	.string	"unable to set receive timeout."
	.text
	.globl	sfc_reconnect
	.type	sfc_reconnect, @function
sfc_reconnect:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], -1
	jne	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L7
.L8:
	mov	WORD PTR -32[rbp], 2
	mov	eax, DWORD PTR server_port[rip]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, server_ip[rip]
	call	inet_aton@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 1
	je	.L10
	lea	rdi, .LC2[rip]
	call	perror@PLT
	jmp	.L7
.L10:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L11
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L7
.L11:
	mov	QWORD PTR -48[rbp], 30
	mov	QWORD PTR -40[rbp], 0
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 20
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L12
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L7
.L12:
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR sockfd[rip], eax
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sfc_reconnect, .-sfc_reconnect
	.section	.rodata
.LC5:
	.string	"MES ATE send error"
.LC6:
	.string	"MES ATE not hungry\n"
.LC7:
	.string	"MES ATE receive error"
.LC8:
	.string	"MES ATE Connection lost.\n"
	.text
	.type	sfc_try_transact, @function
sfc_try_transact:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR response[rip], -1
	mov	eax, DWORD PTR sockfd[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], -1
	jne	.L16
	mov	DWORD PTR sockfd[rip], -1
	lea	rdi, .LC5[rip]
	call	perror@PLT
	lea	rax, response[rip]
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -32[rbp]
	cmp	QWORD PTR -16[rbp], rax
	je	.L18
	mov	DWORD PTR sockfd[rip], -1
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	lea	rax, response[rip]
	jmp	.L17
.L18:
	mov	eax, DWORD PTR sockfd[rip]
	mov	ecx, 0
	mov	edx, 1024
	lea	rsi, response[rip+4]
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L19
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	DWORD PTR sockfd[rip], -1
	lea	rax, response[rip]
	jmp	.L17
.L19:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	DWORD PTR sockfd[rip], -1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR response[rip], eax
	lea	rax, response[rip]
	jmp	.L17
.L20:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR response[rip], eax
	lea	rdx, response[rip+4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, response[rip]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sfc_try_transact, .-sfc_try_transact
	.globl	sfc_transact
	.type	sfc_transact, @function
sfc_transact:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR sockfd[rip]
	test	eax, eax
	jns	.L22
	call	sfc_reconnect
.L22:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_try_transact
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L23
	call	sfc_reconnect
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_try_transact
	mov	QWORD PTR -8[rbp], rax
.L23:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sfc_transact, .-sfc_transact
	.section	.rodata
.LC9:
	.string	"101;WO_A;1001;11001;BDA001;"
	.align 8
.LC10:
	.string	"102;WO_A;1001;11001;BDA001;PASS;0;"
.LC11:
	.string	"Start response: %d bytes, %s\n"
.LC12:
	.string	"End response: %d bytes, %s\n"
	.text
	.globl	sfc_test_main
	.type	sfc_test_main, @function
sfc_test_main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	lea	rax, .LC9[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_transact
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_transact
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_transact
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sfc_transact
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sfc_test_main, .-sfc_test_main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"794675.c"
	.text
	.data
	.align	2
	.type	sockfd, %object
	.size	sockfd, 4
sockfd:
	.word	-1
	.align	2
	.type	response, %object
	.size	response, 1029
response:
	.word	-1
	.ascii	"\000\000"
	.space	1023
	.align	2
	.type	server_ip, %object
	.size	server_ip, 20
server_ip:
	.ascii	"172.16.100.1\000"
	.space	7
	.align	2
	.type	server_port, %object
	.size	server_port, 4
server_port:
	.word	6992
	.text
	.align	2
	.global	sfc_set_address
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfc_set_address, %function
sfc_set_address:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	strtol
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L7
	str	r3, [fp, #-8]
.L2:
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L3
	ldr	r2, .L7+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-12]
.L3:
	mov	r2, #20
	ldr	r1, .L7+8
	ldr	r0, [fp, #-16]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r2, #20
	ldr	r1, [fp, #-16]
	ldr	r0, .L7+8
	bl	strncpy
	ldr	r3, .L7+8
	mov	r2, #0
	strb	r2, [r3, #19]
	mov	r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L6
	ldr	r3, .L7+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L7+12
	mvn	r2, #0
	str	r2, [r3]
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	6992
	.word	server_port
	.word	server_ip
	.word	sockfd
	.size	sfc_set_address, .-sfc_set_address
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket error in newsock\000"
	.align	2
.LC1:
	.ascii	"bizarre error in socket(2)\012\000"
	.align	2
.LC2:
	.ascii	"Unable to parse IP for to MES ATE\000"
	.align	2
.LC3:
	.ascii	"Unable to connect to MES ATE\000"
	.align	2
.LC4:
	.ascii	"unable to set receive timeout.\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sfc_reconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfc_reconnect, %function
sfc_reconnect:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L17+4
	bl	perror
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L17+12
	bl	fwrite
	b	.L9
.L10:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L17+16
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+20
	bl	inet_aton
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	beq	.L12
	ldr	r0, .L17+24
	bl	perror
	b	.L9
.L12:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	connect
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L17+28
	bl	perror
	b	.L9
.L13:
	mov	r3, #30
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #32
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	setsockopt
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L17+32
	bl	perror
	b	.L9
.L14:
	ldr	r2, .L17+36
	ldr	r3, [fp, #-40]
	str	r3, [r2]
.L9:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	server_port
	.word	server_ip
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	sockfd
	.size	sfc_reconnect, .-sfc_reconnect
	.section	.rodata
	.align	2
.LC6:
	.ascii	"MES ATE send error\000"
	.align	2
.LC7:
	.ascii	"MES ATE not hungry\012\000"
	.align	2
.LC8:
	.ascii	"MES ATE receive error\000"
	.align	2
.LC9:
	.ascii	"MES ATE Connection lost.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfc_try_transact, %function
sfc_try_transact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L25
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+4
	ldr	r0, [r3]
	mov	r3, #0
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	send
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L20
	ldr	r3, .L25+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, .L25+8
	bl	perror
	ldr	r3, .L25
	b	.L21
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	beq	.L22
	ldr	r3, .L25+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L25+16
	bl	fwrite
	ldr	r3, .L25
	b	.L21
.L22:
	ldr	r3, .L25+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #1024
	ldr	r1, .L25+20
	bl	recv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L25+24
	bl	perror
	ldr	r3, .L25+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L25
	b	.L21
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L25+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L25+28
	bl	fwrite
	ldr	r3, .L25+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r2, .L25
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L25
	b	.L21
.L24:
	ldr	r2, .L25
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L25
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L25
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	response
	.word	sockfd
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	response+4
	.word	.LC8
	.word	.LC9
	.size	sfc_try_transact, .-sfc_try_transact
	.align	2
	.global	sfc_transact
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfc_transact, %function
sfc_transact:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L31
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L28
	bl	sfc_reconnect
.L28:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	sfc_try_transact
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	cmp	r3, #0
	bgt	.L29
	bl	sfc_reconnect
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	sfc_try_transact
	str	r0, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	sockfd
	.size	sfc_transact, .-sfc_transact
	.section	.rodata
	.align	2
.LC10:
	.ascii	"101;WO_A;1001;11001;BDA001;\000"
	.align	2
.LC11:
	.ascii	"102;WO_A;1001;11001;BDA001;PASS;0;\000"
	.align	2
.LC12:
	.ascii	"Start response: %d bytes, %s\012\000"
	.align	2
.LC13:
	.ascii	"End response: %d bytes, %s\012\000"
	.text
	.align	2
	.global	sfc_test_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	sfc_test_main, %function
sfc_test_main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L35
	str	r3, [fp, #-20]
	ldr	r3, .L35+4
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	sfc_transact
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L35+8
	bl	printf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	sfc_transact
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L35+12
	bl	printf
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	sfc_transact
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L35+8
	bl	printf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	sfc_transact
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r1, [r3, #1]	@ zero_extendqisi2
	lsl	r1, r1, #8
	orr	r2, r1, r2
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #16
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r0, .L35+12
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	sfc_test_main, .-sfc_test_main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
