	.file	"extr_i3bar.c_i3bar_handle_readable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Invalid i3bar json: expected '[' but encountered '%c'"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"[invalid i3bar json]"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"[error reading from status command]"
	.align 8
.LC3:
	.string	"Invalid i3bar json: expected ',' but encountered '%c'"
	.section	.rodata.str1.1
.LC4:
	.string	" \f\n\r\t\013"
.LC5:
	.string	"Received i3bar json: '%s%c'"
.LC6:
	.string	"[failed to allocate buffer]"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Failed to parse i3bar json - %s: '%s%c'"
	.section	.rodata.str1.1
.LC8:
	.string	"[failed to parse i3bar json]"
.LC9:
	.string	"Rendering last received json"
	.text
	.p2align 4
	.globl	i3bar_handle_readable
	.type	i3bar_handle_readable, @function
i3bar_handle_readable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR [rdi]
	mov	rdx, QWORD PTR 8[rdi]
	mov	r8, QWORD PTR 16[rdi]
	test	ecx, ecx
	jne	.L3
.L2:
	xor	ebx, ebx
	test	rdx, rdx
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	call	isspace@PLT
	test	rax, rax
	je	.L48
	mov	rdx, QWORD PTR 8[rbp]
	add	rbx, 1
	mov	r8, QWORD PTR 16[rbp]
	cmp	rdx, rbx
	jbe	.L5
.L8:
	movsx	edi, BYTE PTR [r8+rbx]
	cmp	dil, 91
	jne	.L4
	add	rbx, 1
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, r8
	sub	rdx, rbx
	lea	rsi, [r8+rbx]
	mov	QWORD PTR 8[rbp], rdx
	call	memmove@PLT
	mov	r8, QWORD PTR 16[rbp]
.L5:
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	jne	.L49
	mov	rdx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 36[rbp]
	mov	rsi, r8
	mov	QWORD PTR errno[rip], 0
	call	read@PLT
	test	eax, eax
	js	.L11
	movsx	rdx, eax
	mov	eax, DWORD PTR 0[rbp]
	mov	r8, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rbp], rdx
	test	eax, eax
	je	.L2
.L3:
	mov	eax, DWORD PTR 32[rbp]
	xor	r12d, r12d
	xor	r14d, r14d
	test	eax, eax
	jne	.L44
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 40[rbp]
	sub	rdx, r12
	lea	rsi, [r8+r12]
	call	json_tokener_parse_ex@PLT
	mov	rdi, QWORD PTR 40[rbp]
	mov	r13, rax
	call	json_tokener_get_error@PLT
	cmp	eax, DWORD PTR json_tokener_success[rip]
	je	.L50
	cmp	eax, DWORD PTR json_tokener_continue[rip]
	jne	.L27
	mov	rdi, QWORD PTR 40[rbp]
	call	json_tokener_reset@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 24[rbp]
	cmp	rdx, rax
	jnb	.L28
	sub	rdx, r12
	mov	rdi, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[rbp], rdx
	lea	rsi, [rdi+r12]
	xor	r12d, r12d
	call	memmove@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	r8, QWORD PTR 16[rbp]
	add	r8, rax
.L19:
	mov	rdx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 36[rbp]
	mov	rsi, r8
	mov	QWORD PTR errno[rip], 0
	sub	rdx, rax
	call	read@PLT
	test	eax, eax
	js	.L30
	movsx	rdx, eax
	mov	eax, DWORD PTR 32[rbp]
	add	rdx, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rbp], rdx
	mov	r8, QWORD PTR 16[rbp]
	test	eax, eax
	je	.L13
.L44:
	cmp	r12, rdx
	jb	.L18
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	call	isspace@PLT
	test	rax, rax
	je	.L51
	mov	rdx, QWORD PTR 8[rbp]
	add	r12, 1
	mov	r8, QWORD PTR 16[rbp]
	cmp	rdx, r12
	jbe	.L14
.L18:
	movsx	edi, BYTE PTR [r8+r12]
	cmp	dil, 44
	jne	.L15
	add	r12, 1
	mov	DWORD PTR 32[rbp], 0
	cmp	rdx, r12
	jbe	.L14
	mov	rdx, QWORD PTR 8[rbp]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L48:
	mov	rax, QWORD PTR 16[rbp]
	lea	rsi, .LC0[rip]
	movsx	edx, BYTE PTR [rax+rbx]
.L46:
	mov	edi, DWORD PTR SWAY_DEBUG[rip]
	xor	eax, eax
	call	sway_log@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	status_error@PLT
	mov	eax, 1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	lea	rsi, [rax+rax]
	mov	rdi, QWORD PTR 16[rbp]
	mov	QWORD PTR 24[rbp], rsi
	call	realloc@PLT
	mov	r8, rax
	test	rax, rax
	je	.L29
	mov	QWORD PTR 16[rbp], rax
	mov	rax, QWORD PTR 8[rbp]
	add	r8, rax
	jmp	.L19
.L14:
	mov	QWORD PTR 8[rbp], 0
	xor	eax, eax
	xor	r12d, r12d
	jmp	.L19
.L51:
	mov	rax, QWORD PTR 16[rbp]
	lea	rsi, .LC3[rip]
	movsx	edx, BYTE PTR [rax+r12]
	jmp	.L46
.L49:
	mov	rdx, QWORD PTR 8[rbp]
	jmp	.L3
.L11:
	mov	rax, QWORD PTR EAGAIN[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L12
.L31:
	xor	eax, eax
	jmp	.L1
.L12:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	status_error@PLT
	mov	eax, 1
	jmp	.L1
.L50:
	mov	rdi, r13
	call	json_object_get_type@PLT
	cmp	rax, QWORD PTR json_type_array[rip]
	jne	.L21
	test	r14, r14
	je	.L22
	mov	rdi, r14
	call	json_object_put@PLT
.L22:
	mov	rax, QWORD PTR 40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rbx, -1[r12+rax]
	add	rbx, QWORD PTR 16[rbp]
	movzx	r14d, BYTE PTR [rbx]
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L24:
	movzx	r14d, BYTE PTR -1[rbx]
	sub	rbx, 1
.L23:
	movsx	r15d, r14b
	mov	edi, r15d
	call	isspace@PLT
	test	rax, rax
	jne	.L24
	mov	BYTE PTR [rbx], 0
	mov	rdx, QWORD PTR 16[rbp]
	lea	rsi, .LC4[rip]
	lea	rdi, [rdx+r12]
	mov	QWORD PTR 8[rsp], rdx
	call	strspn@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	ecx, r15d
	mov	edi, DWORD PTR SWAY_DEBUG[rip]
	add	rax, r12
	lea	rsi, .LC5[rip]
	add	rdx, rax
	xor	eax, eax
	call	sway_log@PLT
	mov	BYTE PTR [rbx], r14b
	mov	rax, QWORD PTR 40[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	add	r12, QWORD PTR [rax]
	mov	DWORD PTR 32[rbp], 1
	cmp	rdx, r12
	ja	.L52
	mov	QWORD PTR 8[rbp], 0
	mov	r14, r13
	xor	eax, eax
	xor	r12d, r12d
	mov	r8, QWORD PTR 16[rbp]
	jmp	.L19
.L21:
	mov	rdi, r13
	mov	r13, r14
	call	json_object_put@PLT
	jmp	.L22
.L30:
	mov	rax, QWORD PTR EAGAIN[rip]
	cmp	QWORD PTR errno[rip], rax
	jne	.L12
	test	r14, r14
	je	.L31
	mov	edi, DWORD PTR SWAY_DEBUG[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	sway_log@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	i3bar_parse_json@PLT
	mov	rdi, r14
	call	json_object_put@PLT
	mov	eax, 1
	jmp	.L1
.L27:
	mov	rcx, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 8[rbp]
	mov	edi, eax
	lea	rdx, -1[rcx+rdx]
	movzx	ebx, BYTE PTR [rdx]
	mov	BYTE PTR [rdx], 0
	add	r12, QWORD PTR 16[rbp]
	call	json_tokener_error_desc@PLT
	mov	edi, DWORD PTR SWAY_DEBUG[rip]
	movsx	r8d, bl
	mov	rcx, r12
	mov	edx, eax
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	sway_log@PLT
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	call	status_error@PLT
	mov	eax, 1
	jmp	.L1
.L52:
	mov	r8, QWORD PTR 16[rbp]
	mov	r14, r13
	jmp	.L44
.L29:
	mov	rdi, QWORD PTR 16[rbp]
	call	free@PLT
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	status_error@PLT
	mov	eax, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	i3bar_handle_readable, .-i3bar_handle_readable
	.comm	json_type_array,8,8
	.comm	json_tokener_success,4,4
	.comm	json_tokener_continue,4,4
	.comm	errno,8,8
	.comm	SWAY_DEBUG,4,4
	.comm	EAGAIN,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_i3bar.c_i3bar_handle_readable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Invalid i3bar json: expected '[' but encountered '%"
	.ascii	"c'\000"
	.align	2
.LC1:
	.ascii	"[invalid i3bar json]\000"
	.align	2
.LC2:
	.ascii	"[error reading from status command]\000"
	.align	2
.LC3:
	.ascii	"Invalid i3bar json: expected ',' but encountered '%"
	.ascii	"c'\000"
	.align	2
.LC4:
	.ascii	" \014\012\015\011\013\000"
	.align	2
.LC5:
	.ascii	"Received i3bar json: '%s%c'\000"
	.align	2
.LC6:
	.ascii	"[failed to allocate buffer]\000"
	.align	2
.LC7:
	.ascii	"Failed to parse i3bar json - %s: '%s%c'\000"
	.align	2
.LC8:
	.ascii	"[failed to parse i3bar json]\000"
	.align	2
.LC9:
	.ascii	"Rendering last received json\000"
	.text
	.align	2
	.global	i3bar_handle_readable
	.syntax unified
	.arm
	.fpu softvfp
	.type	i3bar_handle_readable, %function
i3bar_handle_readable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, [r0]
	mov	r4, r0
	cmp	ip, #0
	ldr	r3, [r0, #8]
	ldr	r2, [r0, #4]
	sub	sp, sp, #20
	bne	.L3
	mov	r7, #1
	ldr	r6, .L54
.L2:
	cmp	r2, #0
	movne	r5, #0
	bne	.L8
	b	.L9
.L4:
	bl	isspace
	cmp	r0, #0
	beq	.L48
	ldr	r2, [r4, #4]
	add	r5, r5, #1
	cmp	r2, r5
	ldr	r3, [r4, #8]
	bls	.L49
.L8:
	ldrb	r0, [r3, r5]	@ zero_extendqisi2
	cmp	r0, #91
	bne	.L4
	add	r1, r5, #1
	sub	r2, r2, r1
	mov	r0, r3
	add	r1, r3, r1
	str	r2, [r4, #4]
	str	r7, [r4]
	bl	memmove
	ldr	r3, [r4, #8]
	ldr	ip, [r4]
.L5:
	cmp	ip, #0
	bne	.L50
.L9:
	ldr	r2, [r4, #12]
	mov	r1, r3
	ldr	r0, [r4, #20]
	str	ip, [r6]
	bl	read
	subs	r2, r0, #0
	blt	.L11
	ldr	ip, [r4]
	ldr	r3, [r4, #8]
	cmp	ip, #0
	str	r2, [r4, #4]
	beq	.L2
.L3:
	mov	r5, #0
	ldr	r9, [r4, #16]
	mov	r7, r5
	cmp	r9, #0
	mov	r1, r3
	ldr	r8, .L54
	ldr	r10, .L54+4
	ldr	fp, .L54+8
	bne	.L44
.L13:
	sub	r2, r2, r5
	add	r1, r1, r5
	ldr	r0, [r4, #24]
	bl	json_tokener_parse_ex
	mov	r6, r0
	ldr	r0, [r4, #24]
	bl	json_tokener_get_error
	ldr	r2, [r10]
	cmp	r0, r2
	beq	.L51
	ldr	r2, [fp]
	cmp	r0, r2
	bne	.L27
	ldr	r0, [r4, #24]
	bl	json_tokener_reset
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #12]
	cmp	r2, r3
	bcs	.L28
	ldr	r0, [r4, #8]
	sub	r2, r2, r5
	add	r1, r0, r5
	mov	r5, #0
	str	r2, [r4, #4]
	bl	memmove
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	add	r1, r1, r3
.L19:
	mov	ip, #0
	ldr	r2, [r4, #12]
	ldr	r0, [r4, #20]
	sub	r2, r2, r3
	str	ip, [r8]
	bl	read
	subs	r2, r0, #0
	blt	.L30
	ldr	r3, [r4, #4]
	ldr	r9, [r4, #16]
	add	r2, r2, r3
	cmp	r9, #0
	ldr	r1, [r4, #8]
	str	r2, [r4, #4]
	beq	.L13
.L44:
	cmp	r5, r2
	bcc	.L18
	b	.L14
.L15:
	bl	isspace
	cmp	r0, #0
	beq	.L52
	ldr	r2, [r4, #4]
	add	r5, r5, #1
	cmp	r2, r5
	ldr	r1, [r4, #8]
	bls	.L14
.L18:
	ldrb	r0, [r1, r5]	@ zero_extendqisi2
	cmp	r0, #44
	bne	.L15
	mov	r9, #0
	add	r5, r5, #1
	cmp	r2, r5
	ldrhi	r2, [r4, #4]
	str	r9, [r4, #16]
	bhi	.L13
.L14:
	mov	r2, #0
	mov	r3, r2
	mov	r5, r2
	str	r2, [r4, #4]
	b	.L19
.L48:
	ldr	r2, [r4, #8]
	ldr	r3, .L54+12
	ldrb	r2, [r2, r5]	@ zero_extendqisi2
	ldr	r0, [r3]
	ldr	r1, .L54+16
.L46:
	bl	sway_log
	mov	r0, r4
	ldr	r1, .L54+20
	bl	status_error
	mov	r0, #1
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L49:
	ldr	ip, [r4]
	b	.L5
.L28:
	lsl	r1, r3, #1
	str	r1, [r4, #12]
	ldr	r0, [r4, #8]
	bl	realloc
	subs	r1, r0, #0
	beq	.L29
	ldr	r3, [r4, #4]
	str	r1, [r4, #8]
	add	r1, r1, r3
	b	.L19
.L52:
	ldr	r2, [r4, #8]
	ldr	r3, .L54+12
	ldrb	r2, [r2, r5]	@ zero_extendqisi2
	ldr	r0, [r3]
	ldr	r1, .L54+24
	b	.L46
.L50:
	ldr	r2, [r4, #4]
	b	.L3
.L11:
	ldr	r3, .L54+28
	ldr	r2, [r6]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
.L31:
	mov	r0, #0
	b	.L1
.L51:
	mov	r0, r6
	bl	json_object_get_type
	ldr	r3, .L54+32
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L21
	cmp	r7, #0
	beq	.L22
	mov	r0, r7
	bl	json_object_put
.L22:
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	sub	r3, r3, #1
	add	r3, r3, r5
	ldrb	r7, [r2, r3]	@ zero_extendqisi2
	add	r9, r2, r3
	b	.L23
.L24:
	ldrb	r7, [r9, #-1]!	@ zero_extendqisi2
.L23:
	mov	r0, r7
	bl	isspace
	cmp	r0, #0
	bne	.L24
	strb	r0, [r9]
	ldr	r2, [r4, #8]
	ldr	r1, .L54+36
	str	r0, [sp, #8]
	add	r0, r2, r5
	str	r2, [sp, #12]
	bl	strspn
	ldr	r2, [sp, #12]
	add	r0, r5, r0
	add	r2, r2, r0
	ldr	r0, .L54+12
	mov	r3, r7
	ldr	r1, .L54+40
	ldr	r0, [r0]
	bl	sway_log
	mov	r1, #1
	strb	r7, [r9]
	ldr	r3, [r4, #24]
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	str	r1, [r4, #16]
	add	r5, r5, r3
	cmp	r2, r5
	bhi	.L53
	ldr	r3, [sp, #8]
	mov	r7, r6
	mov	r5, r3
	ldr	r1, [r4, #8]
	str	r3, [r4, #4]
	b	.L19
.L12:
	mov	r0, r4
	ldr	r1, .L54+44
	bl	status_error
	mov	r0, #1
	b	.L1
.L21:
	mov	r0, r6
	bl	json_object_put
	mov	r6, r7
	b	.L22
.L30:
	ldr	r3, .L54+28
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	cmp	r7, #0
	beq	.L31
	ldr	r3, .L54+12
	ldr	r1, .L54+48
	ldr	r0, [r3]
	bl	sway_log
	mov	r1, r7
	mov	r0, r4
	bl	i3bar_parse_json
	mov	r0, r7
	bl	json_object_put
	mov	r0, #1
	b	.L1
.L53:
	mov	r7, r6
	ldr	r1, [r4, #8]
	b	.L44
.L27:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	sub	r3, r3, #1
	ldr	r1, .L54+12
	ldrb	r7, [r2, r3]	@ zero_extendqisi2
	strb	r9, [r2, r3]
	ldr	r6, [r1]
	bl	json_tokener_error_desc
	ldr	r3, [r4, #8]
	mov	r2, r0
	ldr	r1, .L54+52
	add	r3, r3, r5
	mov	r0, r6
	str	r7, [sp]
	bl	sway_log
	mov	r0, r4
	ldr	r1, .L54+56
	bl	status_error
	mov	r0, #1
	b	.L1
.L29:
	ldr	r0, [r4, #8]
	bl	free
	mov	r0, r4
	ldr	r1, .L54+60
	bl	status_error
	mov	r0, #1
	b	.L1
.L55:
	.align	2
.L54:
	.word	errno
	.word	json_tokener_success
	.word	json_tokener_continue
	.word	SWAY_DEBUG
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	EAGAIN
	.word	json_type_array
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.word	.LC9
	.word	.LC7
	.word	.LC8
	.word	.LC6
	.size	i3bar_handle_readable, .-i3bar_handle_readable
	.comm	json_type_array,4,4
	.comm	json_tokener_success,4,4
	.comm	json_tokener_continue,4,4
	.comm	errno,4,4
	.comm	SWAY_DEBUG,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
