	.file	"extr_wrk.c_parse_args.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wrk %s [%s] "
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Copyright (C) 2012 Will Glozer"
	.section	.rodata.str1.1
.LC2:
	.string	"t:c:d:s:H:T:Lrv?"
.LC3:
	.string	"invalid URL: %s\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"number of connections must be >= threads\n"
	.text
	.p2align 4
	.type	parse_args, @function
parse_args:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	mov	edx, 32
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r8d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r9
	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
	lea	rbx, .L5[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rsi
	xor	esi, esi
	call	memset@PLT
	mov	DWORD PTR 8[rbp], 10
	movabs	rax, 42949672962
	mov	QWORD PTR 0[rbp], rax
	mov	eax, DWORD PTR SOCKET_TIMEOUT_MS[rip]
	mov	DWORD PTR 12[rbp], eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR longopts[rip]
	xor	r8d, r8d
	mov	rsi, r12
	mov	edi, r13d
	lea	rdx, .LC2[rip]
	call	getopt_long@PLT
	mov	r8d, eax
	cmp	eax, -1
	je	.L28
	sub	r8d, 72
	cmp	r8d, 46
	ja	.L19
	movsx	rax, DWORD PTR [rbx+r8*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L12-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L11-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L10-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L19-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L19-.L5
	.long	.L4-.L5
	.text
.L6:
	mov	rdi, QWORD PTR optarg[rip]
	mov	rsi, rbp
	call	scan_metric@PLT
	test	eax, eax
	je	.L2
.L19:
	mov	r8d, -1
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L4:
	.cfi_restore_state
	xor	eax, eax
	call	aeGetApiName@PLT
	mov	rsi, QWORD PTR VERSION[rip]
	lea	rdi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L2
.L7:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR 24[rbp], rax
	jmp	.L2
.L8:
	mov	rdi, QWORD PTR optarg[rip]
	lea	rsi, 8[rbp]
	call	scan_time@PLT
	test	eax, eax
	je	.L2
	jmp	.L19
.L9:
	mov	rdi, QWORD PTR optarg[rip]
	lea	rsi, 4[rbp]
	call	scan_metric@PLT
	test	eax, eax
	je	.L2
	jmp	.L19
.L10:
	mov	rdi, QWORD PTR optarg[rip]
	lea	rsi, 12[rbp]
	call	scan_time@PLT
	test	eax, eax
	jne	.L19
	imul	eax, DWORD PTR 12[rbp], 1000
	mov	DWORD PTR 12[rbp], eax
	jmp	.L2
.L11:
	mov	DWORD PTR 16[rbp], 1
	jmp	.L2
.L12:
	mov	rax, QWORD PTR optarg[rip]
	add	r14, 8
	mov	QWORD PTR -8[r14], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L28:
	mov	DWORD PTR 12[rsp], eax
	movsx	rax, DWORD PTR optind[rip]
	cmp	eax, r13d
	je	.L19
	mov	ecx, DWORD PTR 0[rbp]
	test	ecx, ecx
	je	.L19
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	je	.L19
	mov	rdi, QWORD PTR [r12+rax*8]
	mov	rsi, r15
	call	script_parse_url@PLT
	mov	r8d, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L29
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L17
	cmp	eax, DWORD PTR 0[rbp]
	jl	.L17
	movsx	rax, DWORD PTR optind[rip]
	mov	rcx, QWORD PTR [rsp]
	xor	r8d, r8d
	mov	rax, QWORD PTR [r12+rax*8]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR [r14], 0
	jmp	.L1
.L17:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	mov	DWORD PTR [rsp], r8d
	call	fprintf@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L29:
	movsx	rax, DWORD PTR optind[rip]
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	DWORD PTR [rsp], r8d
	mov	rdx, QWORD PTR [r12+rax*8]
	xor	eax, eax
	call	fprintf@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	parse_args, .-parse_args
	.comm	stderr,4,4
	.comm	optind,4,4
	.comm	optarg,8,8
	.comm	longopts,4,4
	.comm	VERSION,8,8
	.comm	SOCKET_TIMEOUT_MS,4,4
	.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_wrk.c_parse_args.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wrk %s [%s] \000"
	.align	2
.LC1:
	.ascii	"Copyright (C) 2012 Will Glozer\000"
	.align	2
.LC2:
	.ascii	"t:c:d:s:H:T:Lrv?\000"
	.align	2
.LC3:
	.ascii	"invalid URL: %s\012\000"
	.align	2
.LC4:
	.ascii	"number of connections must be >= threads\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_args, %function
parse_args:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r2
	mov	lr, r1
	mov	r4, r0
	sub	sp, sp, #28
	mov	r2, #8
	mov	r1, #0
	add	r0, r0, #16
	mov	r10, r3
	ldr	r6, [sp, #64]
	ldr	r5, [sp, #68]
	str	lr, [sp, #20]
	str	ip, [sp, #16]
	bl	memset
	mov	r3, #10
	mov	r1, #2
	mov	r7, #0
	ldr	r2, .L36
	ldr	r9, .L36+4
	ldr	r2, [r2]
	ldr	r8, .L36+8
	ldr	fp, .L36+12
	str	r1, [r4]
	str	r3, [r4, #4]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
.L2:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r9]
	str	r7, [sp]
	bl	getopt_long
	cmn	r0, #1
	beq	.L34
	sub	r0, r0, #72
	cmp	r0, #46
	ldrls	pc, [pc, r0, asl #2]
	b	.L19
.L5:
	.word	.L12
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L11
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L10
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L9
	.word	.L8
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L19
	.word	.L7
	.word	.L6
	.word	.L19
	.word	.L4
.L6:
	mov	r1, r4
	ldr	r0, [fp]
	bl	scan_metric
	cmp	r0, #0
	beq	.L2
.L19:
	mvn	r3, #0
.L1:
	mov	r0, r3
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L36+16
	ldr	r1, [r3]
	str	r1, [sp, #12]
	bl	aeGetApiName
	ldr	r1, [sp, #12]
	mov	r2, r0
	ldr	r0, .L36+20
	bl	printf
	ldr	r0, .L36+24
	bl	puts
	b	.L2
.L7:
	ldr	r3, [fp]
	str	r3, [r4, #20]
	b	.L2
.L8:
	ldr	r0, [fp]
	add	r1, r4, #8
	bl	scan_time
	cmp	r0, #0
	beq	.L2
	b	.L19
.L9:
	ldr	r0, [fp]
	add	r1, r4, #4
	bl	scan_metric
	cmp	r0, #0
	beq	.L2
	b	.L19
.L10:
	ldr	r0, [fp]
	add	r1, r4, #12
	bl	scan_time
	cmp	r0, #0
	bne	.L19
	ldr	r3, [r4, #12]
	rsb	r2, r3, r3, lsl #5
	add	r3, r3, r2, lsl #2
	lsl	r3, r3, #3
	str	r3, [r4, #12]
	b	.L2
.L11:
	mov	r3, #1
	str	r3, [r4, #16]
	b	.L2
.L12:
	ldr	r3, [fp]
	str	r3, [r10], #4
	b	.L2
.L34:
	ldr	r8, .L36+28
	str	r0, [sp, #12]
	ldr	r2, [r8]
	cmp	r2, r6
	beq	.L19
	ldr	r1, [r4]
	cmp	r1, #0
	beq	.L19
	ldr	r1, [r4, #8]
	cmp	r1, #0
	beq	.L19
	ldr	r1, [sp, #16]
	ldr	r0, [r5, r2, lsl #2]
	bl	script_parse_url
	cmp	r0, #0
	ldr	r3, [sp, #12]
	beq	.L35
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L17
	ldr	r1, [r4]
	cmp	r2, r1
	blt	.L17
	mov	r3, #0
	mov	r0, r3
	ldr	r2, [r8]
	ldr	r1, [sp, #20]
	ldr	r2, [r5, r2, lsl #2]
	str	r2, [r1]
	str	r7, [r10]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r2, .L36+32
	ldr	r1, .L36+36
	ldr	r0, [r2]
	str	r3, [sp, #12]
	bl	fprintf
	ldr	r3, [sp, #12]
	b	.L1
.L35:
	ldr	r2, [r8]
	ldr	r1, .L36+32
	ldr	r2, [r5, r2, lsl #2]
	ldr	r0, [r1]
	ldr	r1, .L36+40
	bl	fprintf
	ldr	r3, [sp, #12]
	b	.L1
.L37:
	.align	2
.L36:
	.word	SOCKET_TIMEOUT_MS
	.word	longopts
	.word	.LC2
	.word	optarg
	.word	VERSION
	.word	.LC0
	.word	.LC1
	.word	optind
	.word	stderr
	.word	.LC4
	.word	.LC3
	.size	parse_args, .-parse_args
	.comm	stderr,4,4
	.comm	optind,4,4
	.comm	optarg,4,4
	.comm	longopts,4,4
	.comm	VERSION,4,4
	.comm	SOCKET_TIMEOUT_MS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
