	.file	"extr_mdoc_argv.c_mdoc_argv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mdoc_argv
	.type	mdoc_argv, @function
mdoc_argv:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r9
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 16[rsp], rdi
	xor	edi, edi
	mov	DWORD PTR 12[rsp], edx
	mov	QWORD PTR [rsp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR MDOC_Dd[rip], edx
	mov	QWORD PTR [rcx], 0
	ja	.L2
	xor	edi, edi
	cmp	DWORD PTR MDOC_MAX[rip], edx
	seta	dil
.L2:
	call	assert@PLT
	mov	rax, QWORD PTR mdocargs[rip]
	mov	edx, DWORD PTR 12[rsp]
	sub	edx, DWORD PTR MDOC_Dd[rip]
	mov	r14, QWORD PTR [rax+rdx*8]
	test	r14, r14
	je	.L1
	movsx	rax, DWORD PTR [r12]
	lea	rdi, 44[rsp]
	mov	QWORD PTR 24[rsp], rdi
	cmp	BYTE PTR [rbx+rax], 45
	mov	DWORD PTR 44[rsp], eax
	mov	rcx, rax
	jne	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	add	ecx, 1
	movsx	rax, ecx
	mov	DWORD PTR 44[rsp], ecx
	lea	rbp, [rbx+rax]
	movzx	r15d, BYTE PTR 0[rbp]
	test	r15b, r15b
	je	.L12
	lea	rax, 1[rbx+rax]
	mov	rsi, rbp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, rax
	movzx	r15d, BYTE PTR [rax]
	add	rax, 1
	test	r15b, r15b
	je	.L40
.L9:
	add	ecx, 1
	cmp	r15b, 32
	jne	.L7
	cmp	BYTE PTR -2[rax], 92
	je	.L7
	mov	DWORD PTR 44[rsp], ecx
	mov	BYTE PTR [rsi], 0
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rcx, QWORD PTR mdoc_argnames[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rcx+rax*4]
	call	strcmp@PLT
	test	eax, eax
	je	.L41
.L12:
	mov	eax, DWORD PTR [r14]
	add	r14, 4
	cmp	rax, QWORD PTR MDOC_ARG_MAX[rip]
	mov	QWORD PTR 48[rsp], rax
	jne	.L13
.L14:
	test	r15b, r15b
	je	.L1
	movsx	rax, DWORD PTR 44[rsp]
	mov	BYTE PTR -1[rbx+rax], r15b
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	add	rsp, 104
	.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
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	mov	rcx, QWORD PTR 48[rsp]
	cmp	rcx, QWORD PTR MDOC_ARG_MAX[rip]
	je	.L14
	movsx	rdx, DWORD PTR 44[rsp]
	mov	rax, rdx
	add	eax, 1
	cmp	BYTE PTR [rbx+rdx], 32
	cdqe
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, eax
	add	rax, 1
	cmp	BYTE PTR -1[rbx+rax], 32
	je	.L18
	mov	DWORD PTR 44[rsp], edx
.L16:
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 56[rsp], r13d
	lea	r14, 48[rsp]
	mov	QWORD PTR 72[rsp], 0
	mov	DWORD PTR 60[rsp], eax
	mov	rax, QWORD PTR argvflags[rip]
	mov	QWORD PTR 64[rsp], 0
	mov	eax, DWORD PTR [rax+rcx*4]
	cmp	eax, 128
	je	.L19
	cmp	eax, 130
	jne	.L21
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	r8, rbx
	mov	rdx, r14
	mov	esi, r13d
	call	argv_multi@PLT
.L21:
	mov	rax, QWORD PTR [rsp]
	mov	r15, QWORD PTR [rax]
	test	r15, r15
	je	.L43
.L22:
	mov	eax, DWORD PTR [r15]
	mov	rdi, QWORD PTR 8[r15]
	mov	edx, 32
	lea	ebp, 1[rax]
	mov	DWORD PTR [r15], ebp
	mov	esi, ebp
	movsx	rbp, ebp
	sal	rbp, 5
	call	mandoc_reallocarray@PLT
	mov	edx, 32
	mov	rsi, r14
	mov	QWORD PTR 8[r15], rax
	lea	rdi, -32[rax+rbp]
	call	memcpy@PLT
	mov	ecx, DWORD PTR 44[rsp]
	mov	rax, QWORD PTR mdocargs[rip]
	mov	edx, DWORD PTR 12[rsp]
	mov	DWORD PTR [r12], ecx
	sub	edx, DWORD PTR MDOC_Dd[rip]
	mov	r14, QWORD PTR [rax+rdx*8]
	movsx	rax, ecx
	cmp	BYTE PTR [rbx+rax], 45
	je	.L4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	DWORD PTR 44[rsp], ecx
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	r8, rbx
	mov	rdx, r14
	mov	esi, r13d
	call	argv_single@PLT
	mov	rax, QWORD PTR [rsp]
	mov	r15, QWORD PTR [rax]
	test	r15, r15
	jne	.L22
.L43:
	mov	esi, 16
	mov	edi, 1
	call	mandoc_calloc@PLT
	mov	r15, rax
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [rax], r15
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mdoc_argv, .-mdoc_argv
	.comm	mdocargs,8,8
	.comm	mdoc_argnames,8,8
	.comm	argvflags,8,8
	.comm	MDOC_MAX,4,4
	.comm	MDOC_Dd,4,4
	.comm	MDOC_ARG_MAX,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_mdoc_argv.c_mdoc_argv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mdoc_argv
	.syntax unified
	.arm
	.fpu softvfp
	.type	mdoc_argv, %function
mdoc_argv:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r2
	sub	sp, sp, #60
	mov	lr, r3
	str	r3, [sp, #12]
	mov	r3, #0
	ldr	r10, .L46
	str	r2, [sp, #16]
	ldr	r2, [r10]
	str	r0, [sp, #20]
	cmp	r2, ip
	ldr	r2, .L46+4
	str	r1, [sp, #8]
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	movhi	r0, r3
	ldr	r8, [sp, #96]
	ldr	r7, [sp, #100]
	str	r3, [lr]
	bhi	.L2
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, ip
	movls	r0, #0
	movhi	r0, #1
.L2:
	bl	assert
	ldr	r2, .L46+12
	ldr	r3, [r10]
	ldr	r1, [sp, #16]
	ldr	r2, [r2]
	sub	r3, r1, r3
	ldr	fp, [r2, r3, lsl #2]
	cmp	fp, #0
	beq	.L1
	ldr	r0, [r8]
	ldrb	r3, [r7, r0]	@ zero_extendqisi2
	str	r0, [sp, #28]
	cmp	r3, #45
	bne	.L1
	ldr	r5, .L46+16
	ldr	r6, .L46+20
.L4:
	add	r3, r0, #1
	ldrb	r4, [r7, r3]	@ zero_extendqisi2
	str	r3, [sp, #28]
	cmp	r4, #0
	add	r9, r7, r3
	beq	.L12
	mvn	r0, r0
	mov	r1, r9
	add	r0, r9, r0
	b	.L9
.L7:
	ldrb	r4, [r1, #1]!	@ zero_extendqisi2
	add	r3, r3, #1
	cmp	r4, #0
	beq	.L42
.L9:
	cmp	r4, #32
	add	ip, r0, r3
	bne	.L7
	ldrb	r2, [r1, #-1]	@ zero_extendqisi2
	cmp	r2, #92
	beq	.L7
	mov	r1, #0
	add	r3, r3, #1
	str	r3, [sp, #28]
	strb	r1, [ip]
	b	.L12
.L13:
	ldr	r2, [r6]
	mov	r0, r9
	ldr	r1, [r2, r3, lsl #2]
	bl	strcmp
	cmp	r0, #0
	beq	.L43
.L12:
	ldr	r3, [fp], #4
	ldr	r2, [r5]
	str	r3, [sp, #32]
	cmp	r3, r2
	bne	.L13
.L14:
	cmp	r4, #0
	ldrne	r3, [sp, #28]
	addne	r7, r7, r3
	strbne	r4, [r7, #-1]
.L1:
	ldr	r3, .L46+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L44
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L43:
	ldr	r1, [sp, #32]
	ldr	r3, [r5]
	cmp	r1, r3
	beq	.L14
	ldr	r3, [sp, #28]
	ldrb	r2, [r7, r3]	@ zero_extendqisi2
	add	r3, r7, r3
	cmp	r2, #32
	rsbeq	ip, r7, #1
	bne	.L16
.L18:
	add	r0, ip, r3
	ldrb	r2, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, #32
	beq	.L18
	str	r0, [sp, #28]
.L16:
	mov	r2, #0
	ldr	r3, [r8]
	ldr	r0, [sp, #8]
	str	r3, [sp, #40]
	ldr	r3, .L46+24
	str	r0, [sp, #36]
	ldr	r3, [r3]
	str	r2, [sp, #48]
	ldr	r3, [r3, r1, lsl #2]
	add	r4, sp, #32
	cmp	r3, #128
	str	r2, [sp, #44]
	beq	.L19
	cmp	r3, #130
	bne	.L21
	mov	r2, r4
	ldr	r1, [sp, #8]
	ldr	r0, [sp, #20]
	str	r7, [sp]
	add	r3, sp, #28
	bl	argv_multi
.L21:
	ldr	r3, [sp, #12]
	ldr	fp, [r3]
	cmp	fp, #0
	beq	.L45
.L22:
	ldr	r1, [fp]
	mov	r2, #20
	add	r9, r1, #1
	mov	r1, r9
	ldr	r0, [fp, #4]
	str	r9, [fp]
	bl	mandoc_reallocarray
	mov	r3, r0
	add	r1, r9, r9, lsl #2
	add	r1, r0, r1, lsl #2
	str	r3, [fp, #4]
	mov	r2, #20
	sub	r0, r1, #20
	mov	r1, r4
	bl	memcpy
	ldr	r0, [sp, #28]
	ldr	r3, .L46+12
	ldr	ip, [sp, #16]
	ldr	r2, [r3]
	str	r0, [r8]
	ldr	r3, [r10]
	ldrb	r1, [r7, r0]	@ zero_extendqisi2
	sub	r3, ip, r3
	cmp	r1, #45
	ldr	fp, [r2, r3, lsl #2]
	beq	.L4
	b	.L1
.L42:
	str	r3, [sp, #28]
	b	.L12
.L19:
	add	r3, sp, #28
	mov	r2, r4
	ldr	r1, [sp, #8]
	ldr	r0, [sp, #20]
	str	r7, [sp]
	bl	argv_single
	ldr	r3, [sp, #12]
	ldr	fp, [r3]
	cmp	fp, #0
	bne	.L22
.L45:
	mov	r1, #8
	mov	r0, #1
	bl	mandoc_calloc
	ldr	r3, [sp, #12]
	mov	fp, r0
	str	r0, [r3]
	b	.L22
.L44:
	bl	__stack_chk_fail
.L47:
	.align	2
.L46:
	.word	MDOC_Dd
	.word	.LC0
	.word	MDOC_MAX
	.word	mdocargs
	.word	MDOC_ARG_MAX
	.word	mdoc_argnames
	.word	argvflags
	.size	mdoc_argv, .-mdoc_argv
	.comm	mdocargs,4,4
	.comm	mdoc_argnames,4,4
	.comm	argvflags,4,4
	.comm	MDOC_MAX,4,4
	.comm	MDOC_Dd,4,4
	.comm	MDOC_ARG_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
