	.file	"9512508.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"CAN Sockets Receive Filter Demo\r"
.LC1:
	.string	"Socket"
.LC2:
	.string	"Bind"
.LC3:
	.string	"Read"
.LC4:
	.string	"0x%03X [%d] "
.LC5:
	.string	"%02X "
.LC6:
	.string	"\r"
.LC7:
	.string	"Close"
	.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
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edx, 1
	mov	esi, 3
	mov	edi, 29
	call	socket@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L2:
	lea	rax, -48[rbp]
	mov	DWORD PTR [rax], 812540259
	mov	BYTE PTR 4[rax], 0
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, 35123
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rax, -96[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -96[rbp], 29
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -92[rbp], eax
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L4:
	mov	DWORD PTR -72[rbp], 1360
	mov	DWORD PTR -68[rbp], 4080
	lea	rdx, -72[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 101
	mov	edi, eax
	call	setsockopt@PLT
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L5:
	movzx	eax, BYTE PTR -60[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -108[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	movzx	eax, BYTE PTR -56[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -108[rbp], 1
.L6:
	movzx	eax, BYTE PTR -60[rbp]
	movzx	eax, al
	cmp	DWORD PTR -108[rbp], eax
	jl	.L7
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"9512508.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CAN Sockets Receive Filter Demo\015\000"
	.align	2
.LC1:
	.ascii	"Socket\000"
	.align	2
.LC2:
	.ascii	"can0\000"
	.align	2
.LC3:
	.ascii	"Bind\000"
	.align	2
.LC4:
	.ascii	"Read\000"
	.align	2
.LC5:
	.ascii	"0x%03X [%d] \000"
	.align	2
.LC6:
	.ascii	"%02X \000"
	.align	2
.LC7:
	.ascii	"\015\000"
	.align	2
.LC8:
	.ascii	"Close\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	puts
	mov	r2, #1
	mov	r1, #3
	mov	r0, #29
	bl	socket
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L11+8
	bl	perror
	mov	r3, #1
	b	.L9
.L2:
	sub	r3, fp, #40
	ldr	r2, .L11+12
	ldm	r2, {r0, r1}
	str	r0, [r3]
	add	r3, r3, #4
	strb	r1, [r3]
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L11+16
	ldr	r0, [fp, #-100]
	bl	ioctl
	sub	r3, fp, #92
	mov	r2, #24
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #29
	strh	r3, [fp, #-92]	@ movhi
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-88]
	sub	r3, fp, #92
	mov	r2, #24
	mov	r1, r3
	ldr	r0, [fp, #-100]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+20
	bl	perror
	mov	r3, #1
	b	.L9
.L4:
	mov	r3, #1360
	str	r3, [fp, #-68]
	mov	r3, #4080
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #1
	mov	r1, #101
	ldr	r0, [fp, #-100]
	bl	setsockopt
	sub	r3, fp, #60
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-100]
	bl	read
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L11+24
	bl	perror
	mov	r3, #1
	b	.L9
.L5:
	ldr	r3, [fp, #-60]
	ldrb	r2, [fp, #-56]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L6
.L7:
	sub	r2, fp, #52
	ldr	r3, [fp, #-104]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+32
	bl	printf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L6:
	ldrb	r3, [fp, #-56]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-104]
	cmp	r3, r2
	blt	.L7
	ldr	r0, .L11+36
	bl	puts
	ldr	r0, [fp, #-100]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+40
	bl	perror
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	35123
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
