	.file	"871686.c"
	.intel_syntax noprefix
	.text
	.globl	width
	.bss
	.align 4
	.type	width, @object
	.size	width, 4
width:
	.zero	4
	.globl	height
	.align 4
	.type	height, @object
	.size	height, 4
height:
	.zero	4
	.globl	color_type
	.type	color_type, @object
	.size	color_type, 1
color_type:
	.zero	1
	.globl	bit_depth
	.type	bit_depth, @object
	.size	bit_depth, 1
bit_depth:
	.zero	1
	.globl	row_pointers
	.align 8
	.type	row_pointers, @object
	.size	row_pointers, 8
row_pointers:
	.zero	8
	.text
	.globl	file_size_bytes
	.type	file_size_bytes, @function
file_size_bytes:
.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	rax, QWORD PTR -24[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	file_size_bytes, .-file_size_bytes
	.globl	bstr_to_dec
	.type	bstr_to_dec, @function
bstr_to_dec:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L5
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, QWORD PTR -8[rbp]
	movsd	QWORD PTR -40[rbp], xmm2
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -12[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -40[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
.L5:
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bstr_to_dec, .-bstr_to_dec
	.globl	write_size_to_px
	.type	write_size_to_px, @function
write_size_to_px:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L9
.L10:
	mov	edi, DWORD PTR width[rip]
	mov	eax, DWORD PTR -60[rbp]
	cdq
	idiv	edi
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	cdqe
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -2
	mov	esi, eax
	mov	eax, 31
	sub	eax, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	ecx, eax
	sar	rdx, cl
	mov	rax, rdx
	or	eax, esi
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -60[rbp], 1
.L9:
	cmp	DWORD PTR -60[rbp], 31
	jle	.L10
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	write_size_to_px, .-write_size_to_px
	.globl	extract_size_of_cipher
	.type	extract_size_of_cipher, @function
extract_size_of_cipher:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L13
.L14:
	mov	rcx, QWORD PTR row_pointers[rip]
	mov	edi, DWORD PTR width[rip]
	mov	eax, DWORD PTR -60[rbp]
	cdq
	idiv	edi
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	cdqe
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, 1
	mov	edx, eax
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	mov	BYTE PTR -48[rbp+rax], dl
	add	DWORD PTR -60[rbp], 1
.L13:
	cmp	DWORD PTR -60[rbp], 31
	jle	.L14
	lea	rax, -48[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	bstr_to_dec
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	extract_size_of_cipher, .-extract_size_of_cipher
	.section	.rodata
.LC1:
	.string	"rb"
.LC2:
	.string	"1.6.37"
	.text
	.globl	read_png_file
	.type	read_png_file, @function
read_png_file:
.LFB10:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC2[rip]
	call	png_create_read_struct@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L18
	cmp	QWORD PTR -40[rbp], 0
	jne	.L19
.L18:
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_create_info_struct@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L20
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 200
	mov	rcx, QWORD PTR longjmp@GOTPCREL[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	png_set_longjmp_fn@PLT
	mov	rdi, rax
	call	_setjmp@PLT
	endbr64
	test	eax, eax
	je	.L22
	call	abort@PLT
.L22:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_init_io@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_info@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_image_width@PLT
	mov	DWORD PTR width[rip], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_image_height@PLT
	mov	DWORD PTR height[rip], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_color_type@PLT
	mov	BYTE PTR color_type[rip], al
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_bit_depth@PLT
	mov	BYTE PTR bit_depth[rip], al
	movzx	eax, BYTE PTR bit_depth[rip]
	cmp	al, 16
	jne	.L23
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_set_strip_16@PLT
.L23:
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 3
	jne	.L24
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_set_palette_to_rgb@PLT
.L24:
	movzx	eax, BYTE PTR color_type[rip]
	test	al, al
	jne	.L25
	movzx	eax, BYTE PTR bit_depth[rip]
	cmp	al, 7
	ja	.L25
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_set_expand_gray_1_2_4_to_8@PLT
.L25:
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	png_get_valid@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_set_tRNS_to_alpha@PLT
.L26:
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 3
	ja	.L27
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 1
	mov	esi, 255
	mov	rdi, rax
	call	png_set_filler@PLT
.L27:
	movzx	eax, BYTE PTR color_type[rip]
	test	al, al
	je	.L28
	movzx	eax, BYTE PTR color_type[rip]
	cmp	al, 4
	jne	.L29
.L28:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	png_set_gray_to_rgb@PLT
.L29:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_update_info@PLT
	mov	eax, DWORD PTR height[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR row_pointers[rip], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L30
.L31:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_get_rowbytes@PLT
	mov	rcx, QWORD PTR row_pointers[rip]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rbx, [rcx+rdx]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -44[rbp], 1
.L30:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -44[rbp], eax
	jl	.L31
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_read_image@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	read_png_file, .-read_png_file
	.section	.rodata
.LC3:
	.string	"wb"
	.text
	.globl	write_png_file
	.type	write_png_file, @function
write_png_file:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC2[rip]
	call	png_create_write_struct@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	je	.L33
	cmp	QWORD PTR -16[rbp], 0
	jne	.L34
.L33:
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	png_create_info_struct@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L35
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 200
	mov	rcx, QWORD PTR longjmp@GOTPCREL[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	png_set_longjmp_fn@PLT
	mov	rdi, rax
	call	_setjmp@PLT
	endbr64
	test	eax, eax
	je	.L37
.L35:
	mov	edi, 1
	call	exit@PLT
.L37:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_init_io@PLT
	mov	eax, DWORD PTR height[rip]
	mov	ecx, eax
	mov	eax, DWORD PTR width[rip]
	mov	edx, eax
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	push	0
	push	0
	push	0
	mov	r9d, 6
	mov	r8d, 8
	mov	rdi, rax
	call	png_set_IHDR@PLT
	add	rsp, 32
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_write_info@PLT
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	png_write_image@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	png_write_end@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L38
.L39:
	mov	rdx, QWORD PTR row_pointers[rip]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -28[rbp], 1
.L38:
	mov	eax, DWORD PTR height[rip]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L39
	mov	rax, QWORD PTR row_pointers[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	write_png_file, .-write_png_file
	.section	.rodata
	.align 8
.LC4:
	.string	"Plaintext too large for given PNG."
	.text
	.globl	add_steg_png
	.type	add_steg_png, @function
add_steg_png:
.LFB12:
	.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, 360
	.cfi_offset 3, -24
	mov	QWORD PTR -360[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -360[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -324[rbp], 0
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	file_size_bytes
	mov	rdx, rax
	mov	ecx, DWORD PTR height[rip]
	mov	eax, DWORD PTR width[rip]
	imul	eax, ecx
	sub	eax, 32
	lea	ecx, 7[rax]
	test	eax, eax
	cmovs	eax, ecx
	sar	eax, 3
	cdqe
	cmp	rdx, rax
	jle	.L41
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L41:
	mov	rbx, QWORD PTR row_pointers[rip]
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	file_size_bytes
	mov	rsi, rbx
	mov	rdi, rax
	call	write_size_to_px
	mov	DWORD PTR -340[rbp], 32
	mov	QWORD PTR -320[rbp], 32
	jmp	.L42
.L46:
	mov	DWORD PTR -332[rbp], 0
	mov	eax, DWORD PTR -340[rbp]
	mov	DWORD PTR -328[rbp], eax
	jmp	.L43
.L45:
	mov	rcx, QWORD PTR row_pointers[rip]
	mov	eax, DWORD PTR width[rip]
	movsx	rbx, eax
	mov	rax, QWORD PTR -320[rbp]
	cqo
	idiv	rbx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -304[rbp], rax
	mov	eax, DWORD PTR width[rip]
	movsx	rcx, eax
	mov	rax, QWORD PTR -320[rbp]
	cqo
	idiv	rcx
	mov	rax, rdx
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -304[rbp]
	add	rax, rdx
	mov	QWORD PTR -296[rbp], rax
	mov	eax, DWORD PTR -332[rbp]
	cdqe
	movzx	eax, BYTE PTR -288[rbp+rax]
	mov	BYTE PTR -341[rbp], al
	mov	rax, QWORD PTR -296[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -2
	mov	esi, eax
	movzx	edx, BYTE PTR -341[rbp]
	mov	eax, DWORD PTR -328[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	mov	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	or	eax, esi
	mov	edx, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -336[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -336[rbp], edx
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	cmp	eax, 7
	jne	.L44
	add	DWORD PTR -332[rbp], 1
.L44:
	add	QWORD PTR -320[rbp], 1
	add	DWORD PTR -328[rbp], 1
.L43:
	mov	eax, DWORD PTR -324[rbp]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR -340[rbp]
	add	eax, edx
	cmp	DWORD PTR -328[rbp], eax
	jl	.L45
	mov	DWORD PTR -340[rbp], 0
.L42:
	mov	rdx, QWORD PTR -312[rbp]
	lea	rax, -288[rbp]
	mov	rcx, rdx
	mov	edx, 256
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], 0
	jne	.L46
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	add_steg_png, .-add_steg_png
	.globl	extract_steg_from_png
	.type	extract_steg_from_png, @function
extract_steg_from_png:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	eax, 0
	call	extract_size_of_cipher
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -52[rbp], 32
	jmp	.L49
.L51:
	mov	rcx, QWORD PTR row_pointers[rip]
	mov	esi, DWORD PTR width[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	esi
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	ecx, DWORD PTR width[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	ecx
	mov	eax, edx
	sal	eax, 2
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	and	edx, 1
	cdqe
	mov	BYTE PTR -16[rbp+rax], dl
	mov	eax, DWORD PTR -52[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	cmp	eax, 7
	jne	.L50
	lea	rax, -16[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	bstr_to_dec
	mov	BYTE PTR -53[rbp], al
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -53[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
.L50:
	add	DWORD PTR -52[rbp], 1
.L49:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, 4
	sal	rdx, 3
	cmp	rax, rdx
	jl	.L51
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	extract_steg_from_png, .-extract_steg_from_png
	.section	.rodata
.LC5:
	.string	"-e"
.LC6:
	.string	"-d"
.LC7:
	.string	"Arguments not understood."
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_png_file
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	add_steg_png
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	write_png_file
	jmp	.L55
.L54:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	read_png_file
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	extract_steg_from_png
	jmp	.L55
.L56:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L55:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.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	"871686.c"
	.text
	.comm	width,4,4
	.comm	height,4,4
	.comm	color_type,1,1
	.comm	bit_depth,1,1
	.comm	row_pointers,4,4
	.align	2
	.global	file_size_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_size_bytes, %function
file_size_bytes:
	@ 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]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	rewind
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	file_size_bytes, .-file_size_bytes
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
	.global	bstr_to_dec
	.syntax unified
	.arm
	.fpu softvfp
	.type	bstr_to_dec, %function
bstr_to_dec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L6:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L5
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L6
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	bstr_to_dec, .-bstr_to_dec
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_size_to_px
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_size_to_px, %function
write_size_to_px:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L9
.L10:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	lsl	r2, r2, #2
	add	r3, r3, r2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	bic	r3, r3, #1
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-48]
	rsb	r3, r3, #31
	ldr	r1, [fp, #-56]
	asr	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-44]
	strb	r2, [r3]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L9:
	ldr	r3, [fp, #-48]
	cmp	r3, #31
	ble	.L10
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	width
	.size	write_size_to_px, .-write_size_to_px
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_size_of_cipher
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_size_of_cipher, %function
extract_size_of_cipher:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L15
.L16:
	ldr	r3, .L19+4
	ldr	r4, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	lsl	r2, r2, #2
	add	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	and	r1, r3, #255
	sub	r2, fp, #48
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L15:
	ldr	r3, [fp, #-56]
	cmp	r3, #31
	ble	.L16
	sub	r3, fp, #48
	mov	r1, #32
	mov	r0, r3
	bl	bstr_to_dec
	mov	r3, r0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC1
	.word	row_pointers
	.word	width
	.size	extract_size_of_cipher, .-extract_size_of_cipher
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"1.6.37\000"
	.text
	.align	2
	.global	read_png_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_png_file, %function
read_png_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r1, .L36
	ldr	r0, [fp, #-32]
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-28]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L36+4
	bl	png_create_read_struct
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L23
.L22:
	mov	r0, #1
	bl	exit
.L23:
	ldr	r0, [fp, #-24]
	bl	png_create_info_struct
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L24
	mov	r0, #1
	bl	exit
.L24:
	mov	r2, #392
	ldr	r1, .L36+8
	ldr	r0, [fp, #-24]
	bl	png_set_longjmp_fn
	mov	r3, r0
	mov	r0, r3
	bl	_setjmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	bl	abort
.L26:
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	png_init_io
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_read_info
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_image_width
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L36+12
	str	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_image_height
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L36+16
	str	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_color_type
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L36+20
	strb	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_bit_depth
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L36+24
	strb	r2, [r3]
	ldr	r3, .L36+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #16
	bne	.L27
	ldr	r0, [fp, #-24]
	bl	png_set_strip_16
.L27:
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L28
	ldr	r0, [fp, #-24]
	bl	png_set_palette_to_rgb
.L28:
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L36+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bhi	.L29
	ldr	r0, [fp, #-24]
	bl	png_set_expand_gray_1_2_4_to_8
.L29:
	mov	r2, #16
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, [fp, #-24]
	bl	png_set_tRNS_to_alpha
.L30:
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bhi	.L31
	mov	r2, #1
	mov	r1, #255
	ldr	r0, [fp, #-24]
	bl	png_set_filler
.L31:
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L36+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L33
.L32:
	ldr	r0, [fp, #-24]
	bl	png_set_gray_to_rgb
.L33:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_read_update_info
	ldr	r3, .L36+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L36+28
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L34
.L35:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	png_get_rowbytes
	mov	r1, r0
	ldr	r3, .L36+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	mov	r0, r1
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L34:
	ldr	r3, .L36+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L35
	ldr	r3, .L36+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	png_read_image
	ldr	r0, [fp, #-28]
	bl	fclose
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	.LC3
	.word	longjmp
	.word	width
	.word	height
	.word	color_type
	.word	bit_depth
	.word	row_pointers
	.size	read_png_file, .-read_png_file
	.section	.rodata
	.align	2
.LC4:
	.ascii	"wb\000"
	.text
	.align	2
	.global	write_png_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_png_file, %function
write_png_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	ldr	r1, .L46
	ldr	r0, [fp, #-24]
	bl	fopen
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L46+4
	bl	png_create_write_struct
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L40
.L39:
	mov	r0, #1
	bl	exit
.L40:
	ldr	r0, [fp, #-16]
	bl	png_create_info_struct
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L41
	mov	r2, #392
	ldr	r1, .L46+8
	ldr	r0, [fp, #-16]
	bl	png_set_longjmp_fn
	mov	r3, r0
	mov	r0, r3
	bl	_setjmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
.L41:
	mov	r0, #1
	bl	exit
.L43:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	png_init_io
	ldr	r3, .L46+12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, .L46+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #6
	str	r3, [sp, #4]
	mov	r3, #8
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	png_set_IHDR
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	png_write_info
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	png_write_image
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	png_write_end
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L44
.L45:
	ldr	r3, .L46+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r3, .L46+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L45
	ldr	r3, .L46+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-20]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	.LC3
	.word	longjmp
	.word	width
	.word	height
	.word	row_pointers
	.size	write_png_file, .-write_png_file
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Plaintext too large for given PNG.\000"
	.global	__aeabi_idivmod
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_steg_png
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_steg_png, %function
add_steg_png:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #316
	str	r0, [fp, #-320]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L56+4
	ldr	r0, [fp, #-320]
	bl	fopen
	str	r0, [fp, #-288]
	mov	r3, #0
	str	r3, [fp, #-284]
	ldr	r0, [fp, #-288]
	bl	file_size_bytes
	mov	r1, r0
	ldr	r3, .L56+8
	ldr	r3, [r3]
	ldr	r2, .L56+12
	ldr	r2, [r2]
	mul	r3, r2, r3
	sub	r3, r3, #32
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	cmp	r1, r3
	ble	.L49
	ldr	r0, .L56+16
	bl	puts
	mov	r0, #1
	bl	exit
.L49:
	ldr	r0, [fp, #-288]
	bl	file_size_bytes
	mov	r2, r0
	ldr	r3, .L56+20
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	write_size_to_px
	mov	r3, #32
	str	r3, [fp, #-308]
	mov	r3, #32
	str	r3, [fp, #-304]
	b	.L50
.L54:
	mov	r3, #0
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-308]
	str	r3, [fp, #-292]
	b	.L51
.L53:
	ldr	r3, .L56+20
	ldr	r4, [r3]
	ldr	r3, .L56+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-304]
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-280]
	ldr	r3, .L56+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-304]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-280]
	add	r3, r3, r2
	str	r3, [fp, #-276]
	sub	r2, fp, #272
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-309]
	ldr	r3, [fp, #-276]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	bic	r3, r3, #1
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r1, [fp, #-309]	@ zero_extendqisi2
	ldr	r3, [fp, #-292]
	rsbs	r0, r3, #0
	and	r3, r3, #7
	and	r0, r0, #7
	rsbpl	r3, r0, #0
	rsb	r3, r3, #7
	asr	r3, r1, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-276]
	strb	r2, [r3]
	ldr	r3, [fp, #-300]
	add	r2, r3, #1
	str	r2, [fp, #-300]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	cmp	r3, #7
	bne	.L52
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
.L52:
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L51:
	ldr	r3, [fp, #-284]
	lsl	r2, r3, #3
	ldr	r3, [fp, #-308]
	add	r3, r2, r3
	ldr	r2, [fp, #-292]
	cmp	r2, r3
	blt	.L53
	mov	r3, #0
	str	r3, [fp, #-308]
.L50:
	sub	r0, fp, #272
	ldr	r3, [fp, #-288]
	mov	r2, #256
	mov	r1, #1
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bne	.L54
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC6
	.word	.LC2
	.word	height
	.word	width
	.word	.LC5
	.word	row_pointers
	.size	add_steg_png, .-add_steg_png
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	extract_steg_from_png
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_steg_from_png, %function
extract_steg_from_png:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, .L63
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, .L63+4
	ldr	r0, [fp, #-56]
	bl	fopen
	str	r0, [fp, #-40]
	bl	extract_size_of_cipher
	str	r0, [fp, #-36]
	mov	r3, #32
	str	r3, [fp, #-44]
	b	.L59
.L61:
	ldr	r3, .L63+8
	ldr	r4, [r3]
	ldr	r3, .L63+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, .L63+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-44]
	rsbs	r1, r3, #0
	and	r3, r3, #7
	and	r1, r1, #7
	rsbpl	r3, r1, #0
	and	r2, r2, #1
	and	r2, r2, #255
	sub	r1, fp, #12
	add	r3, r1, r3
	strb	r2, [r3, #-12]
	ldr	r3, [fp, #-44]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	cmp	r3, #7
	bne	.L60
	sub	r3, fp, #24
	mov	r1, #8
	mov	r0, r3
	bl	bstr_to_dec
	mov	r3, r0
	and	r3, r3, #255
	strb	r3, [fp, #-45]
	sub	r0, fp, #45
	ldr	r3, [fp, #-40]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
.L60:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L59:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L61
	ldr	r0, [fp, #-40]
	bl	fclose
	nop
	ldr	r3, .L63
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC7
	.word	.LC4
	.word	row_pointers
	.word	width
	.size	extract_steg_from_png, .-extract_steg_from_png
	.section	.rodata
	.align	2
.LC8:
	.ascii	"-e\000"
	.align	2
.LC9:
	.ascii	"-d\000"
	.align	2
.LC10:
	.ascii	"Arguments not understood.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L70
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_png_file
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	add_steg_png
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r0, r3
	bl	write_png_file
	b	.L67
.L66:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L70+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	read_png_file
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	extract_steg_from_png
	b	.L67
.L68:
	ldr	r0, .L70+8
	bl	printf
.L67:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
