	.file	"82119.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: motosend <speed> <port> msgtype moto-body-hex\n"
.LC1:
	.string	"oversized message\n"
	.align 8
.LC2:
	.string	"body must have an even number of hex digits\n"
.LC3:
	.string	"invalid speed\n"
.LC4:
	.string	"open"
.LC5:
	.string	"tcsetattr"
.LC6:
	.string	"read"
.LC7:
	.string	"%s"
	.text
	.globl	main
	.type	main, @function
main:
.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, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -196[rbp], 5
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L2:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 131070
	jle	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L4:
	mov	eax, DWORD PTR -188[rbp]
	and	eax, 1
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L5:
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -184[rbp], eax
	cmp	DWORD PTR -184[rbp], 230400
	je	.L17
	cmp	DWORD PTR -184[rbp], 230400
	jg	.L7
	cmp	DWORD PTR -184[rbp], 115200
	je	.L17
	cmp	DWORD PTR -184[rbp], 115200
	jg	.L7
	cmp	DWORD PTR -184[rbp], 57600
	je	.L17
	cmp	DWORD PTR -184[rbp], 57600
	jg	.L7
	cmp	DWORD PTR -184[rbp], 38400
	je	.L17
	cmp	DWORD PTR -184[rbp], 38400
	jg	.L7
	cmp	DWORD PTR -184[rbp], 28800
	je	.L17
	cmp	DWORD PTR -184[rbp], 28800
	jg	.L7
	cmp	DWORD PTR -184[rbp], 14400
	je	.L17
	cmp	DWORD PTR -184[rbp], 14400
	jg	.L7
	cmp	DWORD PTR -184[rbp], 4800
	je	.L17
	cmp	DWORD PTR -184[rbp], 9600
	je	.L17
.L7:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L15
.L17:
	nop
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 2306
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], -1
	jne	.L9
	lea	rsi, .LC4[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L9:
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	cfmakeraw@PLT
	mov	edx, DWORD PTR -184[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetospeed@PLT
	mov	edx, DWORD PTR -184[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	cfsetispeed@PLT
	mov	BYTE PTR -121[rbp], 8
	mov	BYTE PTR -122[rbp], 1
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 2147482879
	mov	DWORD PTR -136[rbp], eax
	mov	eax, DWORD PTR -136[rbp]
	or	eax, 2176
	mov	DWORD PTR -136[rbp], eax
	mov	DWORD PTR -132[rbp], 0
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR -140[rbp], eax
	mov	eax, DWORD PTR -140[rbp]
	mov	DWORD PTR -144[rbp], eax
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcsetattr@PLT
	cmp	eax, -1
	jne	.L10
	lea	rsi, .LC5[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L10:
	mov	eax, DWORD PTR -180[rbp]
	mov	esi, 2
	mov	edi, eax
	call	tcflush@PLT
	mov	QWORD PTR -176[rbp], 0
	mov	DWORD PTR -192[rbp], 0
.L14:
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 1000000
	lea	rax, -160[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	nanosleep@PLT
	lea	rax, -80[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], -1
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L11
	lea	rsi, .LC6[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L11:
	cmp	DWORD PTR -188[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -188[rbp]
	movsx	rdx, eax
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gpsd_hexdump
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L12:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	cmp	rax, QWORD PTR -176[rbp]
	jle	.L14
	cmp	DWORD PTR -192[rbp], 0
	jg	.L14
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -176[rbp], rax
	add	DWORD PTR -192[rbp], 1
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	moto_send
	jmp	.L14
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	moto_gen_checksum, @function
moto_gen_checksum:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	BYTE PTR -5[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	xor	BYTE PTR -5[rbp], al
	add	DWORD PTR -4[rbp], 1
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L20
	movzx	eax, BYTE PTR -5[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	moto_gen_checksum, .-moto_gen_checksum
	.section	.rodata
.LC8:
	.string	"moto_send"
	.text
	.type	moto_send, @function
moto_send:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	mov	WORD PTR -34[rbp], ax
	movzx	eax, WORD PTR -34[rbp]
	add	eax, 7
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L23
	mov	eax, -1
	jmp	.L24
.L23:
	movzx	eax, WORD PTR -34[rbp]
	add	eax, 7
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 64
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 64
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -64[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	cmp	WORD PTR -34[rbp], 0
	je	.L25
	movzx	edx, WORD PTR -34[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	gpsd_hexpack
	cmp	eax, -1
	jne	.L25
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, -1
	jmp	.L24
.L25:
	movzx	eax, WORD PTR -34[rbp]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 2
	movzx	ecx, WORD PTR -34[rbp]
	lea	rsi, 4[rcx]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rbx, [rsi+rcx]
	mov	esi, edx
	mov	rdi, rax
	call	moto_gen_checksum
	mov	BYTE PTR [rbx], al
	movzx	eax, WORD PTR -34[rbp]
	lea	rdx, 5[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 13
	movzx	eax, WORD PTR -34[rbp]
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 10
	movzx	eax, WORD PTR -34[rbp]
	add	eax, 7
	movsx	rdx, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], -1
	jne	.L26
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L26:
	mov	rax, QWORD PTR -24[rbp]
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	moto_send, .-moto_send
	.local	last
	.comm	last,1,1
	.section	.rodata
.LC9:
	.string	"0123456789abcdef"
	.text
	.globl	gpsd_hexdump
	.type	gpsd_hexdump, @function
gpsd_hexdump:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L28
.L32:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jne	.L29
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	je	.L30
	movzx	eax, BYTE PTR last[rip]
	cmp	al, 64
	jne	.L29
.L30:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	lea	rdx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rdx], 10
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	lea	rcx, [rax+rdx]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
	jmp	.L31
.L29:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sar	eax, 4
	cdqe
	and	eax, 15
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	and	eax, 15
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	edx, BYTE PTR [rcx]
	lea	rcx, hexbuf.0[rip]
	mov	BYTE PTR [rax+rcx], dl
.L31:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR last[rip], al
	add	QWORD PTR -40[rbp], 1
.L28:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jb	.L32
	lea	rdx, hexbuf.0[rip]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, hexbuf.0[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	gpsd_hexdump, .-gpsd_hexdump
	.globl	gpsd_hexpack
	.type	gpsd_hexpack, @function
gpsd_hexpack:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	shr	rax
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jle	.L35
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L36
.L35:
	mov	eax, -1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L38
.L41:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	hex2bin
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L39
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L42
.L39:
	mov	eax, -1
	jmp	.L37
.L42:
	add	DWORD PTR -12[rbp], 1
.L38:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L41
	mov	eax, DWORD PTR -8[rbp]
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	gpsd_hexpack, .-gpsd_hexpack
	.globl	hex2bin
	.type	hex2bin, @function
hex2bin:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 255
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 255
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 96
	jle	.L44
	cmp	DWORD PTR -8[rbp], 102
	jg	.L44
	sub	DWORD PTR -8[rbp], 87
	jmp	.L45
.L44:
	cmp	DWORD PTR -8[rbp], 64
	jle	.L46
	cmp	DWORD PTR -8[rbp], 70
	jg	.L46
	sub	DWORD PTR -8[rbp], 55
	jmp	.L45
.L46:
	cmp	DWORD PTR -8[rbp], 47
	jle	.L47
	cmp	DWORD PTR -8[rbp], 57
	jg	.L47
	sub	DWORD PTR -8[rbp], 48
	jmp	.L45
.L47:
	mov	eax, -1
	jmp	.L48
.L45:
	cmp	DWORD PTR -4[rbp], 96
	jle	.L49
	cmp	DWORD PTR -4[rbp], 102
	jg	.L49
	sub	DWORD PTR -4[rbp], 87
	jmp	.L50
.L49:
	cmp	DWORD PTR -4[rbp], 64
	jle	.L51
	cmp	DWORD PTR -4[rbp], 70
	jg	.L51
	sub	DWORD PTR -4[rbp], 55
	jmp	.L50
.L51:
	cmp	DWORD PTR -4[rbp], 47
	jle	.L52
	cmp	DWORD PTR -4[rbp], 57
	jg	.L52
	sub	DWORD PTR -4[rbp], 48
	jmp	.L50
.L52:
	mov	eax, -1
	jmp	.L48
.L50:
	mov	eax, DWORD PTR -8[rbp]
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
.L48:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	hex2bin, .-hex2bin
	.local	hexbuf.0
	.comm	hexbuf.0,131082,32
	.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	"82119.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: motosend <speed> <port> msgtype moto-body-he"
	.ascii	"x\012\000"
	.align	2
.LC1:
	.ascii	"oversized message\012\000"
	.align	2
.LC2:
	.ascii	"body must have an even number of hex digits\012\000"
	.align	2
.LC3:
	.ascii	"invalid speed\012\000"
	.align	2
.LC4:
	.ascii	"open\000"
	.align	2
.LC5:
	.ascii	"tcsetattr\000"
	.align	2
.LC6:
	.ascii	"read\000"
	.align	2
.LC7:
	.ascii	"%s\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	cmp	r3, #5
	beq	.L2
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L18+8
	bl	fwrite
	mov	r3, #1
	b	.L15
.L2:
	ldr	r3, [fp, #-172]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-156]
	ldr	r2, .L18+12
	cmp	r3, r2
	ble	.L4
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L18+16
	bl	fwrite
	mov	r3, #1
	b	.L15
.L4:
	ldr	r3, [fp, #-156]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L18+20
	bl	fwrite
	mov	r3, #1
	b	.L15
.L5:
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #230400
	beq	.L17
	ldr	r3, [fp, #-152]
	cmp	r3, #230400
	bgt	.L7
	ldr	r3, [fp, #-152]
	ldr	r2, .L18+24
	cmp	r3, r2
	beq	.L17
	ldr	r3, [fp, #-152]
	ldr	r2, .L18+24
	cmp	r3, r2
	bgt	.L7
	ldr	r3, [fp, #-152]
	cmp	r3, #57600
	beq	.L17
	ldr	r3, [fp, #-152]
	cmp	r3, #57600
	bgt	.L7
	ldr	r3, [fp, #-152]
	cmp	r3, #38400
	beq	.L17
	ldr	r3, [fp, #-152]
	cmp	r3, #38400
	bgt	.L7
	ldr	r3, [fp, #-152]
	ldr	r2, .L18+28
	cmp	r3, r2
	beq	.L17
	ldr	r3, [fp, #-152]
	ldr	r2, .L18+28
	cmp	r3, r2
	bgt	.L7
	ldr	r3, [fp, #-152]
	cmp	r3, #14400
	beq	.L17
	ldr	r3, [fp, #-152]
	cmp	r3, #14400
	bgt	.L7
	ldr	r3, [fp, #-152]
	cmp	r3, #4800
	beq	.L17
	ldr	r3, [fp, #-152]
	cmp	r3, #9600
	beq	.L17
.L7:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L18+32
	bl	fwrite
	mov	r3, #1
	b	.L15
.L17:
	nop
	ldr	r3, [fp, #-172]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L18+36
	mov	r0, r3
	bl	open
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L9
	ldr	r1, .L18+40
	mov	r0, #1
	bl	err
.L9:
	sub	r3, fp, #132
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	tcgetattr
	sub	r3, fp, #132
	mov	r0, r3
	bl	cfmakeraw
	ldr	r2, [fp, #-152]
	sub	r3, fp, #132
	mov	r1, r2
	mov	r0, r3
	bl	cfsetospeed
	ldr	r2, [fp, #-152]
	sub	r3, fp, #132
	mov	r1, r2
	mov	r0, r3
	bl	cfsetispeed
	mov	r3, #8
	strb	r3, [fp, #-109]
	mov	r3, #1
	strb	r3, [fp, #-110]
	ldr	r3, [fp, #-124]
	bic	r3, r3, #-2147483648
	bic	r3, r3, #768
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-124]
	orr	r3, r3, #2176
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-132]
	sub	r3, fp, #132
	mov	r2, r3
	mov	r1, #2
	ldr	r0, [fp, #-148]
	bl	tcsetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r1, .L18+44
	mov	r0, #1
	bl	err
.L10:
	mov	r1, #2
	ldr	r0, [fp, #-148]
	bl	tcflush
	mov	r3, #0
	str	r3, [fp, #-160]
	mov	r3, #0
	str	r3, [fp, #-164]
.L14:
	mov	r3, #0
	str	r3, [fp, #-140]
	ldr	r3, .L18+48
	str	r3, [fp, #-136]
	sub	r3, fp, #140
	mov	r1, #0
	mov	r0, r3
	bl	nanosleep
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, r3
	ldr	r0, [fp, #-148]
	bl	read
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L11
	ldr	r1, .L18+52
	mov	r0, #1
	bl	err
.L11:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	ble	.L12
	ldr	r2, [fp, #-156]
	sub	r3, fp, #72
	mov	r1, r2
	mov	r0, r3
	bl	gpsd_hexdump
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L18+56
	bl	printf
	ldr	r3, .L18+60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L12:
	mov	r0, #0
	bl	time
	str	r0, [fp, #-144]
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-160]
	cmp	r2, r3
	ble	.L14
	ldr	r3, [fp, #-164]
	cmp	r3, #0
	bgt	.L14
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-172]
	add	r3, r3, #12
	ldr	r1, [r3]
	ldr	r3, [fp, #-172]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-148]
	bl	moto_send
	b	.L14
.L15:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC8
	.word	stderr
	.word	.LC0
	.word	131070
	.word	.LC1
	.word	.LC2
	.word	115200
	.word	28800
	.word	.LC3
	.word	2306
	.word	.LC4
	.word	.LC5
	.word	1000000
	.word	.LC6
	.word	.LC7
	.word	stdout
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	moto_gen_checksum, %function
moto_gen_checksum:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-9]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]
	eor	r3, r3, r2
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L22
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	moto_gen_checksum, .-moto_gen_checksum
	.section	.rodata
	.align	2
.LC9:
	.ascii	"moto_send\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	moto_send, %function
moto_send:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	lsr	r3, r3, #1
	strh	r3, [fp, #-22]	@ movhi
	ldrh	r3, [fp, #-22]
	add	r3, r3, #7
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L25
	mvn	r3, #0
	b	.L26
.L25:
	ldrh	r3, [fp, #-22]
	add	r3, r3, #7
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	ldr	r3, [fp, #-20]
	mov	r2, #64
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r2, #64
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-36]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-36]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrh	r3, [fp, #-22]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldrh	r2, [fp, #-22]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	gpsd_hexpack
	mov	r3, r0
	cmn	r3, #1
	bne	.L27
	ldr	r0, [fp, #-20]
	bl	free
	mvn	r3, #0
	b	.L26
.L27:
	ldr	r3, [fp, #-20]
	add	r0, r3, #2
	ldrh	r3, [fp, #-22]
	add	r1, r3, #2
	ldrh	r3, [fp, #-22]
	add	r3, r3, #4
	ldr	r2, [fp, #-20]
	add	r4, r2, r3
	bl	moto_gen_checksum
	mov	r3, r0
	strb	r3, [r4]
	ldrh	r3, [fp, #-22]
	add	r3, r3, #5
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #13
	strb	r2, [r3]
	ldrh	r3, [fp, #-22]
	add	r3, r3, #6
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #10
	strb	r2, [r3]
	ldrh	r3, [fp, #-22]
	add	r3, r3, #7
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	write
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L29
	bl	perror
.L28:
	ldr	r3, [fp, #-16]
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC9
	.size	moto_send, .-moto_send
	.local	last
	.comm	last,1,1
	.section	.rodata
	.align	2
.LC10:
	.ascii	"0123456789abcdef\000"
	.text
	.align	2
	.global	gpsd_hexdump
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpsd_hexdump, %function
gpsd_hexdump:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	ldr	r3, .L38
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L32
.L36:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L33
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	beq	.L34
	ldr	r3, .L38+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bne	.L33
.L34:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, .L38+8
	mov	r1, #10
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
	b	.L35
.L33:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r2, r3, r2
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #15
	ldr	r2, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r1, r3, #1
	str	r1, [fp, #-20]
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, .L38+8
	strb	r1, [r2, r3]
.L35:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L38+4
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L32:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcc	.L36
	ldr	r2, .L38+8
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L38+8
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	.LC10
	.word	last
	.word	hexbuf.6191
	.size	gpsd_hexdump, .-gpsd_hexdump
	.align	2
	.global	gpsd_hexpack
	.syntax unified
	.arm
	.fpu softvfp
	.type	gpsd_hexpack, %function
gpsd_hexpack:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	lsr	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L41
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L42
.L41:
	mvn	r3, #0
	b	.L43
.L42:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L44
.L47:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	mov	r0, r3
	bl	hex2bin
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L45
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L48
.L45:
	mvn	r3, #0
	b	.L43
.L48:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L44:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L47
	ldr	r3, [fp, #-12]
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	gpsd_hexpack, .-gpsd_hexpack
	.align	2
	.global	hex2bin
	.syntax unified
	.arm
	.fpu softvfp
	.type	hex2bin, %function
hex2bin:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #96
	ble	.L50
	ldr	r3, [fp, #-12]
	cmp	r3, #102
	bgt	.L50
	ldr	r3, [fp, #-12]
	sub	r3, r3, #87
	str	r3, [fp, #-12]
	b	.L51
.L50:
	ldr	r3, [fp, #-12]
	cmp	r3, #64
	ble	.L52
	ldr	r3, [fp, #-12]
	cmp	r3, #70
	bgt	.L52
	ldr	r3, [fp, #-12]
	sub	r3, r3, #55
	str	r3, [fp, #-12]
	b	.L51
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #47
	ble	.L53
	ldr	r3, [fp, #-12]
	cmp	r3, #57
	bgt	.L53
	ldr	r3, [fp, #-12]
	sub	r3, r3, #48
	str	r3, [fp, #-12]
	b	.L51
.L53:
	mvn	r3, #0
	b	.L54
.L51:
	ldr	r3, [fp, #-8]
	cmp	r3, #96
	ble	.L55
	ldr	r3, [fp, #-8]
	cmp	r3, #102
	bgt	.L55
	ldr	r3, [fp, #-8]
	sub	r3, r3, #87
	str	r3, [fp, #-8]
	b	.L56
.L55:
	ldr	r3, [fp, #-8]
	cmp	r3, #64
	ble	.L57
	ldr	r3, [fp, #-8]
	cmp	r3, #70
	bgt	.L57
	ldr	r3, [fp, #-8]
	sub	r3, r3, #55
	str	r3, [fp, #-8]
	b	.L56
.L57:
	ldr	r3, [fp, #-8]
	cmp	r3, #47
	ble	.L58
	ldr	r3, [fp, #-8]
	cmp	r3, #57
	bgt	.L58
	ldr	r3, [fp, #-8]
	sub	r3, r3, #48
	str	r3, [fp, #-8]
	b	.L56
.L58:
	mvn	r3, #0
	b	.L54
.L56:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
.L54:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	hex2bin, .-hex2bin
	.local	hexbuf.6191
	.comm	hexbuf.6191,131082,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
