	.file	"extr_message.c_vlc_http_msg_add_creds_basic.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Proxy-Authorization"
.LC1:
	.string	"Authorization"
.LC2:
	.string	"%s:%s"
.LC3:
	.string	"Basic %s"
	.text
	.p2align 4
	.globl	vlc_http_msg_add_creds_basic
	.type	vlc_http_msg_add_creds_basic, @function
vlc_http_msg_add_creds_basic:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR [rdx]
	test	al, al
	je	.L2
	lea	rsi, 1[rdx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	al, 58
	je	.L8
	movzx	eax, BYTE PTR [rsi]
	add	rsi, 1
	test	al, al
	je	.L2
.L6:
	cmp	al, 31
	setbe	r8b
	cmp	al, 127
	sete	dil
	or	r8b, dil
	je	.L25
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	r12d, -1
	mov	DWORD PTR errno[rip], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	movzx	eax, BYTE PTR [rcx]
	test	al, al
	je	.L7
	lea	rsi, 1[rcx]
	.p2align 4,,10
	.p2align 3
.L9:
	cmp	al, 31
	jbe	.L8
	cmp	al, 127
	je	.L8
	movzx	eax, BYTE PTR [rsi]
	add	rsi, 1
	test	al, al
	jne	.L9
.L7:
	mov	rdi, rsp
	lea	rsi, .LC2[rip]
	call	asprintf@PLT
	mov	edi, eax
	mov	r12d, eax
	shr	edi, 31
	call	unlikely@PLT
	test	rax, rax
	jne	.L11
	mov	rdi, QWORD PTR [rsp]
	mov	esi, r12d
	call	vlc_b64_encode_binary@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r13, rax
	call	free@PLT
	xor	edi, edi
	test	r13, r13
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L11
	test	ebx, ebx
	lea	rax, .LC1[rip]
	mov	rdi, rbp
	mov	rcx, r13
	lea	rsi, .LC0[rip]
	lea	rdx, .LC3[rip]
	cmove	rsi, rax
	call	vlc_http_msg_add_header@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	free@PLT
	jmp	.L1
.L11:
	mov	r12d, -1
	jmp	.L1
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vlc_http_msg_add_creds_basic, .-vlc_http_msg_add_creds_basic
	.comm	errno,4,4
	.comm	EINVAL,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_message.c_vlc_http_msg_add_creds_basic.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Proxy-Authorization\000"
	.align	2
.LC1:
	.ascii	"Authorization\000"
	.align	2
.LC2:
	.ascii	"%s:%s\000"
	.align	2
.LC3:
	.ascii	"Basic %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vlc_http_msg_add_creds_basic
	.syntax unified
	.arm
	.fpu softvfp
	.type	vlc_http_msg_add_creds_basic, %function
vlc_http_msg_add_creds_basic:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldrb	ip, [r2]	@ zero_extendqisi2
	mov	r5, r1
	ldr	r1, .L26
	sub	sp, sp, #12
	cmp	ip, #0
	mov	r6, r0
	ldr	r1, [r1]
	str	r1, [sp, #4]
	mov	r1,#0
	beq	.L2
	mov	r4, r2
	b	.L5
.L3:
	ldrb	ip, [r4, #1]!	@ zero_extendqisi2
	cmp	ip, #0
	beq	.L2
.L5:
	cmp	ip, #127
	cmpne	ip, #31
	movls	lr, #1
	movhi	lr, #0
	cmp	ip, #58
	movne	ip, lr
	orreq	ip, lr, #1
	cmp	ip, #0
	beq	.L3
.L7:
	mvn	r4, #0
	ldr	r2, .L26+4
	ldr	r3, .L26+8
	ldr	r2, [r2]
	str	r2, [r3]
.L1:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldrb	ip, [r3]	@ zero_extendqisi2
	cmp	ip, #0
	beq	.L6
	mov	lr, r3
	b	.L8
.L25:
	ldrb	ip, [lr, #1]!	@ zero_extendqisi2
	cmp	ip, #0
	beq	.L6
.L8:
	cmp	ip, #127
	cmpne	ip, #31
	bhi	.L25
	b	.L7
.L6:
	ldr	r1, .L26+12
	mov	r0, sp
	bl	asprintf
	mov	r4, r0
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	mov	r1, r4
	ldr	r0, [sp]
	bl	vlc_b64_encode_binary
	mov	r7, r0
	ldr	r0, [sp]
	bl	free
	clz	r0, r7
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	bne	.L10
	ldr	r3, .L26+16
	cmp	r5, #0
	ldr	r1, .L26+20
	mov	r0, r6
	moveq	r1, r3
	ldr	r2, .L26+24
	mov	r3, r7
	bl	vlc_http_msg_add_header
	mov	r4, r0
	mov	r0, r7
	bl	free
	b	.L1
.L10:
	mvn	r4, #0
	b	.L1
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	EINVAL
	.word	errno
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	vlc_http_msg_add_creds_basic, .-vlc_http_msg_add_creds_basic
	.comm	errno,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
