	.file	"23576661.c"
	.intel_syntax noprefix
	.text
	.globl	timeval_to_usec
	.type	timeval_to_usec, @function
timeval_to_usec:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, rdi
	mov	rcx, rsi
	mov	rdx, rcx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	timeval_to_usec, .-timeval_to_usec
	.globl	udelay
	.type	udelay, @function
udelay:
.LFB7:
	.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	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
.L4:
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	timeval_to_usec
	mov	rbx, rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rdx
	mov	rsi, rax
	call	timeval_to_usec
	mov	rdx, rax
	mov	rax, rbx
	sub	rax, rdx
	cmp	QWORD PTR -72[rbp], rax
	jg	.L4
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	udelay, .-udelay
	.globl	crc16
	.type	crc16, @function
crc16:
.LFB8:
	.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	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	WORD PTR -2[rbp], -1
	jmp	.L7
.L12:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	xor	WORD PTR -2[rbp], ax
	mov	BYTE PTR -3[rbp], 0
	jmp	.L8
.L11:
	movzx	eax, WORD PTR -2[rbp]
	and	eax, 1
	test	eax, eax
	je	.L9
	shr	WORD PTR -2[rbp]
	xor	WORD PTR -2[rbp], -24575
	jmp	.L10
.L9:
	shr	WORD PTR -2[rbp]
.L10:
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
.L8:
	cmp	BYTE PTR -3[rbp], 7
	jbe	.L11
.L7:
	movzx	eax, BYTE PTR -28[rbp]
	lea	edx, -1[rax]
	mov	BYTE PTR -28[rbp], dl
	test	al, al
	jne	.L12
	movzx	eax, WORD PTR -2[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	crc16, .-crc16
	.globl	crc16_low
	.type	crc16_low, @function
crc16_low:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	crc16_low, .-crc16_low
	.globl	crc16_high
	.type	crc16_high, @function
crc16_high:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	WORD PTR -4[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	shr	ax, 8
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	crc16_high, .-crc16_high
	.section	.rodata
.LC0:
	.string	"am2321: CRC16 does not match\n"
	.text
	.globl	__check_crc16
	.type	__check_crc16, @function
__check_crc16:
.LFB11:
	.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
	lea	rax, -24[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	crc16
	mov	WORD PTR -4[rbp], ax
	movzx	eax, BYTE PTR -17[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -18[rbp]
	movzx	eax, al
	add	eax, edx
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -4[rbp]
	cmp	ax, WORD PTR -2[rbp]
	je	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	__check_crc16, .-__check_crc16
	.globl	__st_am2321
	.type	__st_am2321, @function
__st_am2321:
.LFB12:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	__check_crc16
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	__st_am2321, .-__st_am2321
	.section	.rodata
	.align 8
.LC1:
	.string	"[ 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x ]\n"
	.text
	.globl	am2321_dump
	.type	am2321_dump, @function
am2321_dump:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	movzx	eax, BYTE PTR -1[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -2[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -3[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -4[rbp]
	movzx	r9d, al
	movzx	eax, BYTE PTR -5[rbp]
	movzx	r10d, al
	movzx	eax, BYTE PTR -6[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -7[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -8[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	r8
	push	rdi
	push	rsi
	mov	r8d, r10d
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	am2321_dump, .-am2321_dump
	.globl	__am2321_temperature
	.type	__am2321_temperature, @function
__am2321_temperature:
.LFB14:
	.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 -8[rbp], rdi
	movzx	eax, BYTE PTR -4[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -3[rbp]
	movzx	eax, al
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	__am2321_temperature, .-__am2321_temperature
	.globl	am2321_temperature_integral
	.type	am2321_temperature_integral, @function
am2321_temperature_integral:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__am2321_temperature
	movsx	edx, ax
	imul	edx, edx, 26215
	shr	edx, 16
	sar	dx, 2
	sar	ax, 15
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	am2321_temperature_integral, .-am2321_temperature_integral
	.globl	am2321_temperature_fraction
	.type	am2321_temperature_fraction, @function
am2321_temperature_fraction:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__am2321_temperature
	mov	edx, eax
	movsx	eax, dx
	imul	eax, eax, 26215
	shr	eax, 16
	sar	ax, 2
	mov	esi, edx
	sar	si, 15
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	mov	eax, ecx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	am2321_temperature_fraction, .-am2321_temperature_fraction
	.globl	__am2321_humidity
	.type	__am2321_humidity, @function
__am2321_humidity:
.LFB17:
	.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 -8[rbp], rdi
	movzx	eax, BYTE PTR -6[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -5[rbp]
	movzx	eax, al
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	__am2321_humidity, .-__am2321_humidity
	.globl	am2321_humidity_integral
	.type	am2321_humidity_integral, @function
am2321_humidity_integral:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__am2321_humidity
	movsx	edx, ax
	imul	edx, edx, 26215
	shr	edx, 16
	sar	dx, 2
	sar	ax, 15
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	am2321_humidity_integral, .-am2321_humidity_integral
	.globl	am2321_humidity_fraction
	.type	am2321_humidity_fraction, @function
am2321_humidity_fraction:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	__am2321_humidity
	mov	edx, eax
	movsx	eax, dx
	imul	eax, eax, 26215
	shr	eax, 16
	sar	ax, 2
	mov	esi, edx
	sar	si, 15
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	ecx, edx
	mov	eax, ecx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	am2321_humidity_fraction, .-am2321_humidity_fraction
	.section	.rodata
.LC2:
	.string	"/dev/i2c-0"
.LC3:
	.string	"am2321(1)"
.LC4:
	.string	"am2321(2)"
.LC5:
	.string	"am2321: retry\n"
.LC6:
	.string	"am2321(3)"
.LC7:
	.string	"am2321(4)"
	.text
	.globl	am2321
	.type	am2321, @function
am2321:
.LFB20:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L40
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 92
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L41
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L41:
	mov	DWORD PTR -28[rbp], 0
.L42:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	write@PLT
	mov	BYTE PTR -16[rbp], 3
	mov	BYTE PTR -15[rbp], 0
	mov	BYTE PTR -14[rbp], 4
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L43
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	cmp	eax, 4
	jg	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	edi, 1000
	call	udelay
	jmp	.L42
.L43:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L44
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 3
	call	exit@PLT
.L44:
	mov	edi, 1500
	call	udelay
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -16[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L45
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	__st_am2321
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	am2321, .-am2321
	.globl	am2321_stub
	.type	am2321_stub, @function
am2321_stub:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, -8132962165242919933
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	__st_am2321
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L50
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	am2321_stub, .-am2321_stub
	.section	.rodata
.LC8:
	.string	"%d.%d %d.%d\n"
	.text
	.globl	print_am2321
	.type	print_am2321, @function
print_am2321:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	am2321_humidity_fraction
	movsx	r13d, ax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	am2321_humidity_integral
	movsx	r12d, ax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	am2321_temperature_fraction
	movsx	ebx, ax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	am2321_temperature_integral
	cwde
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	print_am2321, .-print_am2321
	.section	.rodata
.LC9:
	.string	"Temperature (C)\t\t%d.%d\n"
.LC10:
	.string	"Humidity (%%)\t\t%d.%d\n"
	.text
	.globl	print_am2321_human_readable
	.type	print_am2321_human_readable, @function
print_am2321_human_readable:
.LFB23:
	.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	am2321_temperature_fraction
	movsx	ebx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	am2321_temperature_integral
	cwde
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	am2321_humidity_fraction
	movsx	ebx, ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	am2321_humidity_integral
	cwde
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	print_am2321_human_readable, .-print_am2321_human_readable
	.section	.rodata
	.align 8
.LC11:
	.string	"Usage: am2321 [-r] [-s]\nGet temperature and humidity measured with Aosong's AM2321 sensor.\n  -r    human readable output\n  -s    not measure with AM2321, instead stub of 23.4[C] and 32.1[%]\n"
	.text
	.globl	print_help
	.type	print_help, @function
print_help:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE24:
	.size	print_help, .-print_help
	.section	.rodata
	.align 8
.LC12:
	.string	"am2321: Unsupported option \"%s\"\n"
	.text
	.globl	parse_options
	.type	parse_options, @function
parse_options:
.LFB25:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L57
.L63:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 114
	je	.L58
	cmp	eax, 115
	je	.L59
	jmp	.L65
.L58:
	or	DWORD PTR -8[rbp], 1
	jmp	.L61
.L59:
	or	DWORD PTR -8[rbp], 2
	jmp	.L61
.L65:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	call	print_help
	mov	edi, 1
	call	exit@PLT
.L61:
	add	DWORD PTR -4[rbp], 1
.L57:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jle	.L62
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L63
.L62:
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	parse_options, .-parse_options
	.globl	is_opt_human_readable
	.type	is_opt_human_readable, @function
is_opt_human_readable:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	is_opt_human_readable, .-is_opt_human_readable
	.globl	is_opt_stub
	.type	is_opt_stub, @function
is_opt_stub:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 2
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	is_opt_stub, .-is_opt_stub
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_options
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	is_opt_stub
	test	eax, eax
	jne	.L71
	mov	eax, 0
	call	am2321
	mov	QWORD PTR -16[rbp], rax
	jmp	.L72
.L71:
	mov	eax, 0
	call	am2321_stub
	mov	QWORD PTR -16[rbp], rax
.L72:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	is_opt_human_readable
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	print_am2321
	jmp	.L74
.L73:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	print_am2321_human_readable
.L74:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.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	"23576661.c"
	.text
	.align	2
	.global	timeval_to_usec
	.syntax unified
	.arm
	.fpu softvfp
	.type	timeval_to_usec, %function
timeval_to_usec:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldr	r1, [fp, #-12]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	timeval_to_usec, .-timeval_to_usec
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	udelay
	.syntax unified
	.arm
	.fpu softvfp
	.type	udelay, %function
udelay:
	@ 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, #-40]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
.L4:
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r3, fp, #32
	ldm	r3, {r0, r1}
	bl	timeval_to_usec
	mov	r4, r0
	sub	r3, fp, #24
	ldm	r3, {r0, r1}
	bl	timeval_to_usec
	mov	r3, r0
	sub	r3, r4, r3
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bgt	.L4
	nop
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	udelay, .-udelay
	.align	2
	.global	crc16
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc16, %function
crc16:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mvn	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	b	.L9
.L14:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-6]	@ movhi
	eor	r3, r3, r2
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-7]
	b	.L10
.L13:
	ldrh	r3, [fp, #-6]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L11
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	eor	r3, r3, #-67108863
	eor	r3, r3, #66846720
	eor	r3, r3, #237568
	strh	r3, [fp, #-6]	@ movhi
	b	.L12
.L11:
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L12:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
.L10:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L13
.L9:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	sub	r2, r3, #1
	strb	r2, [fp, #-17]
	cmp	r3, #0
	bne	.L14
	ldrh	r3, [fp, #-6]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	crc16, .-crc16
	.align	2
	.global	crc16_low
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc16_low, %function
crc16_low:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	crc16_low, .-crc16_low
	.align	2
	.global	crc16_high
	.syntax unified
	.arm
	.fpu softvfp
	.type	crc16_high, %function
crc16_high:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	crc16_high, .-crc16_high
	.section	.rodata
	.align	2
.LC1:
	.ascii	"am2321: CRC16 does not match\012\000"
	.text
	.align	2
	.global	__check_crc16
	.syntax unified
	.arm
	.fpu softvfp
	.type	__check_crc16, %function
__check_crc16:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	r3, fp, #20
	stm	r3, {r0, r1}
	sub	r3, fp, #20
	mov	r1, #6
	mov	r0, r3
	bl	crc16
	mov	r3, r0
	strh	r3, [fp, #-8]	@ movhi
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r2, [fp, #-8]
	ldrh	r3, [fp, #-6]
	cmp	r2, r3
	beq	.L23
	ldr	r3, .L24
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L24+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	stderr
	.word	.LC1
	.size	__check_crc16, .-__check_crc16
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__st_am2321
	.syntax unified
	.arm
	.fpu softvfp
	.type	__st_am2321, %function
__st_am2321:
	@ 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, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-28]
	sub	r3, fp, #16
	mov	r1, r2
	mov	r2, #8
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	__check_crc16
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	bl	memcpy
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC2
	.size	__st_am2321, .-__st_am2321
	.section	.rodata
	.align	2
.LC3:
	.ascii	"[ 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x 0x%02x "
	.ascii	"0x%02x ]\012\000"
	.text
	.align	2
	.global	am2321_dump
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_dump, %function
am2321_dump:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	sub	r3, fp, #20
	stm	r3, {r0, r1}
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r4, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r5, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	ldrb	r1, [fp, #-15]	@ zero_extendqisi2
	ldrb	r0, [fp, #-14]	@ zero_extendqisi2
	ldrb	ip, [fp, #-13]	@ zero_extendqisi2
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r5
	mov	r2, r4
	mov	r1, lr
	ldr	r0, .L33
	bl	printf
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC3
	.size	am2321_dump, .-am2321_dump
	.align	2
	.global	__am2321_temperature
	.syntax unified
	.arm
	.fpu softvfp
	.type	__am2321_temperature, %function
__am2321_temperature:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__am2321_temperature, .-__am2321_temperature
	.align	2
	.global	am2321_temperature_integral
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_temperature_integral, %function
am2321_temperature_integral:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	bl	__am2321_temperature
	mov	r3, r0
	ldr	r2, .L39
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	1717986919
	.size	am2321_temperature_integral, .-am2321_temperature_integral
	.align	2
	.global	am2321_temperature_fraction
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_temperature_fraction, %function
am2321_temperature_fraction:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	bl	__am2321_temperature
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L43
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	1717986919
	.size	am2321_temperature_fraction, .-am2321_temperature_fraction
	.align	2
	.global	__am2321_humidity
	.syntax unified
	.arm
	.fpu softvfp
	.type	__am2321_humidity, %function
__am2321_humidity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	__am2321_humidity, .-__am2321_humidity
	.align	2
	.global	am2321_humidity_integral
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_humidity_integral, %function
am2321_humidity_integral:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	bl	__am2321_humidity
	mov	r3, r0
	ldr	r2, .L49
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	1717986919
	.size	am2321_humidity_integral, .-am2321_humidity_integral
	.align	2
	.global	am2321_humidity_fraction
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_humidity_fraction, %function
am2321_humidity_fraction:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	bl	__am2321_humidity
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L53
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	1717986919
	.size	am2321_humidity_fraction, .-am2321_humidity_fraction
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/dev/i2c-0\000"
	.align	2
.LC5:
	.ascii	"am2321(1)\000"
	.align	2
.LC6:
	.ascii	"am2321(2)\000"
	.align	2
.LC7:
	.ascii	"am2321: retry\012\000"
	.align	2
.LC8:
	.ascii	"am2321(3)\000"
	.align	2
.LC9:
	.ascii	"am2321(4)\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	am2321
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321, %function
am2321:
	@ 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, #-32]
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, .L64+4
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L64+8
	bl	perror
	mov	r0, #1
	bl	exit
.L56:
	mov	r2, #92
	ldr	r1, .L64+12
	ldr	r0, [fp, #-24]
	bl	ioctl
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L64+16
	bl	perror
	mov	r0, #2
	bl	exit
.L57:
	mov	r3, #0
	str	r3, [fp, #-28]
.L58:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	write
	mov	r3, #3
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-15]
	mov	r3, #4
	strb	r3, [fp, #-14]
	sub	r3, fp, #16
	mov	r2, #3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L59
	ldr	r3, [fp, #-28]
	add	r2, r3, #1
	str	r2, [fp, #-28]
	cmp	r3, #4
	bgt	.L59
	ldr	r3, .L64+20
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L64+24
	bl	fwrite
	mov	r0, #1000
	bl	udelay
	b	.L58
.L59:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L60
	ldr	r0, .L64+28
	bl	perror
	mov	r0, #3
	bl	exit
.L60:
	ldr	r0, .L64+32
	bl	udelay
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L61
	ldr	r0, .L64+36
	bl	perror
	mov	r0, #4
	bl	exit
.L61:
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r3, [fp, #-32]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	__st_am2321
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	1795
	.word	.LC6
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	1500
	.word	.LC9
	.size	am2321, .-am2321
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\003\004\001A\000\352!\217"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	am2321_stub
	.syntax unified
	.arm
	.fpu softvfp
	.type	am2321_stub, %function
am2321_stub:
	@ 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]
	ldr	r3, .L69
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L69+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-24]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	__st_am2321
	ldr	r3, .L69
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC12
	.word	.LC11
	.size	am2321_stub, .-am2321_stub
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%d.%d %d.%d\012\000"
	.text
	.align	2
	.global	print_am2321
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_am2321, %function
print_am2321:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	sub	r3, fp, #28
	stm	r3, {r0, r1}
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	bl	am2321_temperature_integral
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	bl	am2321_temperature_fraction
	mov	r3, r0
	mov	r5, r3
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	bl	am2321_humidity_integral
	mov	r3, r0
	mov	r6, r3
	sub	r3, fp, #28
	ldm	r3, {r0, r1}
	bl	am2321_humidity_fraction
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L73
	bl	printf
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC13
	.size	print_am2321, .-print_am2321
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Temperature (C)\011\011%d.%d\012\000"
	.align	2
.LC15:
	.ascii	"Humidity (%%)\011\011%d.%d\012\000"
	.text
	.align	2
	.global	print_am2321_human_readable
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_am2321_human_readable, %function
print_am2321_human_readable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	sub	r3, fp, #20
	stm	r3, {r0, r1}
	sub	r3, fp, #20
	ldm	r3, {r0, r1}
	bl	am2321_temperature_integral
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1}
	bl	am2321_temperature_fraction
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L77
	bl	printf
	sub	r3, fp, #20
	ldm	r3, {r0, r1}
	bl	am2321_humidity_integral
	mov	r3, r0
	mov	r4, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1}
	bl	am2321_humidity_fraction
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L77+4
	bl	printf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC14
	.word	.LC15
	.size	print_am2321_human_readable, .-print_am2321_human_readable
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Usage: am2321 [-r] [-s]\012Get temperature and humi"
	.ascii	"dity measured with Aosong's AM2321 sensor.\012  -r "
	.ascii	"   human readable output\012  -s    not measure wit"
	.ascii	"h AM2321, instead stub of 23.4[C] and 32.1[%]\012\000"
	.text
	.align	2
	.global	print_help
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L80
	ldr	r3, [r3]
	ldr	r1, .L80+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L81:
	.align	2
.L80:
	.word	stderr
	.word	.LC16
	.size	print_help, .-print_help
	.section	.rodata
	.align	2
.LC17:
	.ascii	"am2321: Unsupported option \"%s\"\012\000"
	.text
	.align	2
	.global	parse_options
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_options, %function
parse_options:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	b	.L83
.L89:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L84
	cmp	r3, #115
	beq	.L85
	b	.L91
.L84:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L87
.L85:
	ldr	r3, [fp, #-12]
	orr	r3, r3, #2
	str	r3, [fp, #-12]
	b	.L87
.L91:
	ldr	r3, .L92
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L92+4
	bl	fprintf
	bl	print_help
	mov	r0, #1
	bl	exit
.L87:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L83:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L88
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L89
.L88:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	stderr
	.word	.LC17
	.size	parse_options, .-parse_options
	.align	2
	.global	is_opt_human_readable
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_opt_human_readable, %function
is_opt_human_readable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_opt_human_readable, .-is_opt_human_readable
	.align	2
	.global	is_opt_stub
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_opt_stub, %function
is_opt_stub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_opt_stub, .-is_opt_stub
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	parse_options
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	is_opt_stub
	mov	r3, r0
	cmp	r3, #0
	bne	.L99
	sub	r3, fp, #16
	mov	r0, r3
	bl	am2321
	b	.L100
.L99:
	sub	r3, fp, #36
	mov	r0, r3
	bl	am2321_stub
	sub	r3, fp, #16
	sub	r1, fp, #36
	mov	r2, #8
	mov	r0, r3
	bl	memcpy
.L100:
	ldr	r0, [fp, #-20]
	bl	is_opt_human_readable
	mov	r3, r0
	cmp	r3, #0
	bne	.L101
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	print_am2321
	b	.L102
.L101:
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	print_am2321_human_readable
.L102:
	mov	r3, #0
	ldr	r2, .L105
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L104
	bl	__stack_chk_fail
.L104:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L106:
	.align	2
.L105:
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
