	.file	"extr_parser.c_extract_referer_site.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"//"
	.text
	.p2align 4
	.type	extract_referer_site, @function
extract_referer_site:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, 1
	test	rdi, rdi
	je	.L5
	cmp	BYTE PTR [rdi], 0
	jne	.L21
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	strdup@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r12, rax
	call	strstr@PLT
	test	rax, rax
	je	.L3
	lea	rbp, 2[rax]
	mov	rdi, rbp
	call	strlen@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L22
.L3:
	mov	rdi, r12
	call	free@PLT
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	esi, 47
	mov	rdi, rbp
	call	strchr@PLT
	test	rax, rax
	je	.L4
	sub	rax, rbp
	mov	r13d, eax
	test	eax, eax
	je	.L3
.L4:
	cmp	DWORD PTR REF_SITE_LEN[rip], r13d
	mov	rsi, rbp
	mov	rdi, rbx
	cmovle	r13d, DWORD PTR REF_SITE_LEN[rip]
	mov	edx, r13d
	movsx	r13, r13d
	call	memcpy@PLT
	mov	BYTE PTR [rbx+r13], 0
	mov	rdi, r12
	call	free@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	extract_referer_site, .-extract_referer_site
	.comm	REF_SITE_LEN,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_parser.c_extract_referer_site.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"//\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	extract_referer_site, %function
extract_referer_site:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r3, r0, #0
	beq	.L6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
.L6:
	mov	r0, #1
	bx	lr
.L24:
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	bl	strdup
	ldr	r1, .L26
	mov	r7, r0
	bl	strstr
	subs	r4, r0, #0
	beq	.L3
	add	r4, r4, #2
	mov	r0, r4
	bl	strlen
	subs	r6, r0, #0
	bne	.L25
.L3:
	mov	r0, r7
	bl	free
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	mov	r1, #47
	mov	r0, r4
	bl	strchr
	cmp	r0, #0
	beq	.L4
	subs	r6, r0, r4
	beq	.L3
.L4:
	ldr	r3, .L26+4
	mov	r1, r4
	ldr	r2, [r3]
	mov	r4, #0
	cmp	r6, r2
	movge	r6, r2
	mov	r0, r5
	mov	r2, r6
	bl	memcpy
	mov	r0, r7
	strb	r4, [r5, r6]
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	REF_SITE_LEN
	.size	extract_referer_site, .-extract_referer_site
	.comm	REF_SITE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
