	.file	"140765711.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
.LC1:
	.string	"%s:%s:"
.LC2:
	.string	","
.LC3:
	.string	"%s%s"
	.text
	.globl	putsgent
	.type	putsgent, @function
putsgent:
.LFB0:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	_IO_flockfile@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L3
.L2:
	lea	rax, .LC0[rip]
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, rax
	lea	rsi, .LC1[rip]
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L4
	add	DWORD PTR -12[rbp], 1
.L4:
	mov	BYTE PTR -13[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR [rax]
	cmp	BYTE PTR -13[rbp], 0
	je	.L7
	lea	rax, .LC0[rip]
	jmp	.L8
.L7:
	lea	rax, .LC2[rip]
.L8:
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L9
	add	DWORD PTR -12[rbp], 1
	jmp	.L5
.L9:
	mov	BYTE PTR -13[rbp], 0
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L10
.L5:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 58
	call	putc_unlocked@PLT
	cmp	eax, -1
	jne	.L11
	add	DWORD PTR -12[rbp], 1
.L11:
	mov	BYTE PTR -13[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L12
	jmp	.L13
.L17:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR [rax]
	cmp	BYTE PTR -13[rbp], 0
	je	.L14
	lea	rax, .LC0[rip]
	jmp	.L15
.L14:
	lea	rax, .LC2[rip]
.L15:
	mov	rdi, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L16
	add	DWORD PTR -12[rbp], 1
	jmp	.L12
.L16:
	mov	BYTE PTR -13[rbp], 0
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L17
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	putc_unlocked@PLT
	cmp	eax, -1
	jne	.L18
	add	DWORD PTR -12[rbp], 1
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	_IO_funlockfile@PLT
	cmp	DWORD PTR -12[rbp], 0
	je	.L19
	mov	eax, -1
	jmp	.L21
.L19:
	mov	eax, 0
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	putsgent, .-putsgent
	.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	"140765711.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"%s:%s:\000"
	.align	2
.LC2:
	.ascii	",\000"
	.align	2
.LC3:
	.ascii	"%s%s\000"
	.text
	.align	2
	.global	putsgent
	.syntax unified
	.arm
	.fpu softvfp
	.type	putsgent, %function
putsgent:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	_IO_flockfile
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	b	.L3
.L2:
	ldr	r3, .L22
.L3:
	ldr	r1, .L22+4
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	mov	r3, #1
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L5
	b	.L6
.L10:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L22
	b	.L8
.L7:
	ldr	r1, .L22+8
.L8:
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	str	r2, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L22+12
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L5
.L9:
	mov	r3, #0
	strb	r3, [fp, #-13]
.L6:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
.L5:
	ldr	r1, [fp, #-28]
	mov	r0, #58
	bl	putc_unlocked
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	mov	r3, #1
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	b	.L13
.L17:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L14
	ldr	r1, .L22
	b	.L15
.L14:
	ldr	r1, .L22+8
.L15:
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	str	r2, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L22+12
	ldr	r0, [fp, #-28]
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L12
.L16:
	mov	r3, #0
	strb	r3, [fp, #-13]
.L13:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
.L12:
	ldr	r1, [fp, #-28]
	mov	r0, #10
	bl	putc_unlocked
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r0, [fp, #-28]
	bl	_IO_funlockfile
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L19
	mvn	r3, #0
	b	.L21
.L19:
	mov	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	putsgent, .-putsgent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
