	.file	"extr_kurl.c_s3_parse.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"s3://"
.LC1:
	.string	"https://"
.LC2:
	.string	".s3.amazonaws.com"
.LC3:
	.string	"%a, %d %b %Y %H:%M:%S +0000"
.LC4:
	.string	"Date: "
.LC5:
	.string	"GET\n\n\n"
.LC6:
	.string	"\n"
.LC7:
	.string	"Authorization: AWS "
.LC8:
	.string	":"
	.text
	.p2align 4
	.globl	s3_parse
	.type	s3_parse, @function
s3_parse:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	mov	ecx, 5
	pxor	xmm0, xmm0
	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
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 200
	.cfi_def_cfa_offset 256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 184[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 32[rsp], xmm0
	repz cmpsb
	movaps	XMMWORD PTR 48[rsp], xmm0
	mov	QWORD PTR 64[rsp], 0
	seta	al
	sbb	al, 0
	test	al, al
	je	.L2
.L7:
	mov	QWORD PTR [r12], 0
	mov	QWORD PTR 8[r12], 0
	mov	DWORD PTR 16[r12], 0
.L1:
	mov	rax, QWORD PTR 184[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L34
	add	rsp, 200
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	movzx	eax, BYTE PTR 5[rbx]
	lea	r9, 5[rbx]
	mov	r13, rdx
	mov	rbp, r9
	cmp	al, 47
	je	.L4
	test	al, al
	je	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movzx	eax, BYTE PTR 1[rbp]
	add	rbp, 1
	test	al, al
	je	.L7
	cmp	al, 47
	jne	.L5
.L4:
	test	al, al
	je	.L7
	test	r13, r13
	je	.L12
	test	r15, r15
	je	.L12
.L8:
	lea	r14, 32[rsp]
	mov	esi, 8
	lea	rdi, .LC1[rip]
	mov	QWORD PTR [rsp], r9
	mov	rdx, r14
	call	kputsn@PLT
	mov	r9, QWORD PTR [rsp]
	mov	rsi, rbp
	mov	rdx, r14
	sub	rsi, r9
	mov	rdi, r9
	call	kputsn@PLT
	mov	rdx, r14
	mov	esi, 17
	lea	rdi, .LC2[rip]
	call	kputsn@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdx, r14
	mov	rdi, rbp
	lea	rbp, 112[rsp]
	mov	esi, eax
	call	kputsn@PLT
	mov	r8d, DWORD PTR 32[rsp]
	xor	edi, edi
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 32[rsp], 0
	call	time@PLT
	lea	rsi, 28[rsp]
	lea	rdi, 24[rsp]
	mov	DWORD PTR 24[rsp], eax
	call	gmtime_r@PLT
	mov	rdi, rbp
	mov	esi, 64
	lea	rdx, .LC3[rip]
	mov	ecx, eax
	call	strftime@PLT
	mov	rdx, r14
	mov	esi, 6
	lea	rdi, .LC4[rip]
	call	kputsn@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, rbp
	mov	rdx, r14
	mov	esi, eax
	call	kputsn@PLT
	mov	ecx, DWORD PTR 32[rsp]
	mov	rdx, r14
	mov	esi, 6
	lea	rdi, .LC5[rip]
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR [rsp], ecx
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	call	kputsn@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, rbp
	mov	rdx, r14
	lea	rbp, 4[rbx]
	mov	esi, eax
	call	kputsn@PLT
	mov	rdx, r14
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	kputsn@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdi, rbp
	mov	rdx, r14
	lea	rbp, 80[rsp]
	mov	esi, eax
	call	kputsn@PLT
	mov	esi, DWORD PTR 32[rsp]
	mov	rdx, rbp
	mov	rdi, r15
	call	s3_sign@PLT
	mov	rdx, r14
	mov	esi, 19
	lea	rdi, .LC7[rip]
	mov	QWORD PTR 40[rsp], 0
	call	kputsn@PLT
	mov	rdi, r13
	call	strlen@PLT
	mov	rdx, r14
	mov	rdi, r13
	mov	esi, eax
	call	kputsn@PLT
	mov	rdx, r14
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	kputsn@PLT
	mov	rdi, rbp
	call	strlen@PLT
	mov	rdx, r14
	mov	rdi, rbp
	mov	esi, eax
	call	kputsn@PLT
	mov	eax, DWORD PTR 32[rsp]
	mov	ecx, DWORD PTR [rsp]
	mov	QWORD PTR 12[r12], 0
	mov	r8d, DWORD PTR 12[rsp]
	mov	DWORD PTR [r12], eax
	mov	DWORD PTR 4[r12], ecx
	mov	DWORD PTR 8[r12], r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r8
	mov	QWORD PTR [rsp], r9
	call	s3_read_awssecret@PLT
	mov	r13, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	strlen@PLT
	mov	r9, QWORD PTR [rsp]
	cdqe
	lea	r15, 1[r13+rax]
	jmp	.L8
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s3_parse, .-s3_parse
	.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_kurl.c_s3_parse.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"s3://\000"
	.align	2
.LC1:
	.ascii	"https://\000"
	.align	2
.LC2:
	.ascii	".s3.amazonaws.com\000"
	.align	2
.LC3:
	.ascii	"%a, %d %b %Y %H:%M:%S +0000\000"
	.align	2
.LC4:
	.ascii	"Date: \000"
	.align	2
.LC5:
	.ascii	"GET\012\012\012\000"
	.align	2
.LC6:
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"Authorization: AWS \000"
	.align	2
.LC8:
	.ascii	":\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	s3_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3_parse, %function
s3_parse:
	@ args = 4, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	ip, #0
	mov	r4, r0
	mov	r8, r3
	ldr	r3, .L23
	sub	sp, sp, #136
	mov	r0, r1
	mov	r6, r1
	mov	r7, r2
	ldr	r1, .L23+4
	mov	r2, #5
	ldr	r3, [r3]
	str	r3, [sp, #132]
	mov	r3,#0
	str	ip, [r4]
	str	ip, [r4, #4]
	str	ip, [r4, #8]
	str	ip, [r4, #12]
	str	ip, [r4, #16]
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	bl	strncmp
	cmp	r0, #0
	ldr	r0, [sp, #168]
	beq	.L2
.L6:
	mov	r3, #0
	str	r3, [r4]
	str	r3, [r4, #4]
	str	r3, [r4, #8]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #132]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	mov	r0, r4
	add	sp, sp, #136
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldrb	ip, [r6, #5]	@ zero_extendqisi2
	add	r10, r6, #5
	cmp	ip, #47
	cmpne	ip, #0
	mov	r5, r10
	beq	.L4
.L5:
	ldrb	ip, [r5, #1]!	@ zero_extendqisi2
	cmp	ip, #0
	cmpne	ip, #47
	bne	.L5
.L4:
	cmp	ip, #0
	beq	.L6
	cmp	r8, #0
	cmpne	r7, #0
	bne	.L7
	bl	s3_read_awssecret
	subs	r7, r0, #0
	beq	.L6
	bl	strlen
	add	r8, r0, #1
	add	r8, r7, r8
.L7:
	mov	r1, #8
	add	r2, sp, #12
	ldr	r0, .L23+8
	bl	kputsn
	sub	r1, r5, r10
	mov	r0, r10
	add	r2, sp, #12
	bl	kputsn
	mov	r1, #17
	add	r2, sp, #12
	ldr	r0, .L23+12
	bl	kputsn
	mov	r0, r5
	bl	strlen
	mov	r9, #0
	mov	r1, r0
	add	r2, sp, #12
	mov	r0, r5
	bl	kputsn
	mov	r0, r9
	ldr	r5, [sp, #12]
	str	r9, [sp, #20]
	str	r9, [sp, #16]
	str	r9, [sp, #12]
	bl	time
	mov	r3, r0
	add	r1, sp, #8
	add	r0, sp, #4
	str	r3, [sp, #4]
	bl	gmtime_r
	mov	r1, #64
	mov	r3, r0
	ldr	r2, .L23+16
	add	r0, sp, #68
	bl	strftime
	mov	r1, #6
	add	r2, sp, #12
	ldr	r0, .L23+20
	bl	kputsn
	add	r0, sp, #68
	bl	strlen
	add	r2, sp, #12
	mov	r1, r0
	add	r0, sp, #68
	bl	kputsn
	mov	r1, #6
	add	r2, sp, #12
	ldr	r0, .L23+24
	ldr	r10, [sp, #12]
	str	r9, [sp, #20]
	str	r9, [sp, #16]
	str	r9, [sp, #12]
	bl	kputsn
	add	r0, sp, #68
	bl	strlen
	add	r2, sp, #12
	mov	r1, r0
	add	r0, sp, #68
	bl	kputsn
	add	r6, r6, #4
	mov	r1, #1
	add	r2, sp, #12
	ldr	r0, .L23+28
	bl	kputsn
	mov	r0, r6
	bl	strlen
	add	r2, sp, #12
	mov	r1, r0
	mov	r0, r6
	bl	kputsn
	ldr	r1, [sp, #12]
	add	r2, sp, #36
	mov	r0, r8
	bl	s3_sign
	mov	r1, #19
	add	r2, sp, #12
	ldr	r0, .L23+32
	str	r9, [sp, #16]
	bl	kputsn
	mov	r0, r7
	bl	strlen
	add	r2, sp, #12
	mov	r1, r0
	mov	r0, r7
	bl	kputsn
	mov	r1, #1
	add	r2, sp, #12
	ldr	r0, .L23+36
	bl	kputsn
	add	r0, sp, #36
	bl	strlen
	add	r2, sp, #12
	mov	r1, r0
	add	r0, sp, #36
	bl	kputsn
	ldr	r3, [sp, #12]
	str	r5, [r4, #8]
	stm	r4, {r3, r10}
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	s3_parse, .-s3_parse
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
