	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HttpParseBasicAuthHeader       ## -- Begin function HttpParseBasicAuthHeader
	.p2align	4, 0x90
_HttpParseBasicAuthHeader:              ## @HttpParseBasicAuthHeader
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.3:
	movq	%rdi, %r15
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	callq	_GetHttpValue
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetHttpValue
	movq	%rax, %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_GetHttpValue
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	testq	%r13, %r13
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_5
## %bb.6:
	movq	(%r13), %rdx
	jmp	LBB0_7
LBB0_8:
	testq	%r14, %r14
	je	LBB0_18
## %bb.9:
	movq	%rsp, %r15
	movq	_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %r9
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_GetKeyAndValue
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_StrCmpi
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:
	movq	%r13, %rdi
	callq	_IsEmptyStr
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movq	%r13, %rdi
	callq	_StrSize
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	addl	$256, %edi                      ## imm = 0x100
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_Decode64
	movq	%rbx, %rdi
	callq	_IsEmptyStr
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	cmpb	$58, (%rbx)
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_StrCpy
	movq	%rbx, %rdx
	incq	%rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-84(%rbp), %esi                 ## 4-byte Reload
	callq	_StrCpy
	movl	$1, %r12d
	jmp	LBB0_16
LBB0_5:
	leaq	L_.str.3(%rip), %rdx
LBB0_7:
	movl	-84(%rbp), %r14d                ## 4-byte Reload
	movl	-88(%rbp), %esi                 ## 4-byte Reload
	callq	_StrCpy
	movq	(%rbx), %rdx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %esi
	callq	_StrCpy
	movl	$1, %r12d
	jmp	LBB0_18
LBB0_15:
	leaq	L_.str.6(%rip), %r9
	movq	%rbx, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	-84(%rbp), %r8d                 ## 4-byte Reload
	callq	_GetKeyAndValue
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_16:
	movq	%rbx, %rdi
	callq	_Free
LBB0_17:
	movq	%r15, %rsp
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Authorization"

L_.str.1:                               ## @.str.1
	.asciz	"X-VPNADMIN-HUBNAME"

L_.str.2:                               ## @.str.2
	.asciz	"X-VPNADMIN-PASSWORD"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_MAX_SIZE,4,2                   ## @MAX_SIZE
L_.str.4:                               ## @.str.4
	.asciz	" \t"

L_.str.5:                               ## @.str.5
	.asciz	"Basic"

L_.str.6:                               ## @.str.6
	.asciz	":"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HttpParseBasicAuthHeader       ; -- Begin function HttpParseBasicAuthHeader
	.p2align	2
_HttpParseBasicAuthHeader:              ; @HttpParseBasicAuthHeader
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #48
	mov	w24, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x0, LBB0_14
; %bb.1:
	mov	x22, x1
	cbz	x1, LBB0_14
; %bb.2:
	mov	x20, x3
	cbz	x3, LBB0_14
; %bb.3:
	mov	x19, x4
	mov	x21, x2
	mov	x25, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GetHttpValue
	mov	x23, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x25
	bl	_GetHttpValue
	mov	x26, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x25
	bl	_GetHttpValue
	cbz	x0, LBB0_6
; %bb.4:
	mov	x24, x0
	cbz	x26, LBB0_12
; %bb.5:
	ldr	x2, [x26]
	b	LBB0_13
LBB0_6:
	cbz	x23, LBB0_16
; %bb.7:
	mov	x25, sp
Lloh9:
	adrp	x8, _MAX_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x9, x4
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x4, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldr	x0, [x23]
Lloh14:
	adrp	x5, l_.str.4@PAGE
Lloh15:
	add	x5, x5, l_.str.4@PAGEOFF
	sub	x1, x29, #104
	mov	w2, #32
	mov	x3, x24
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_GetKeyAndValue
	cbz	x0, LBB0_10
; %bb.8:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x0, x29, #104
	bl	_StrCmpi
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x24
	bl	_IsEmptyStr
	cbz	w0, LBB0_17
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	sp, x25
	b	LBB0_14
LBB0_12:
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	bl	_StrCpy
	ldr	x2, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_StrCpy
	mov	w24, #1
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.15:
	mov	x0, x24
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w24, #0
	b	LBB0_14
LBB0_17:
	mov	x0, x24
	bl	_StrSize
	lsl	w8, w0, #1
	add	w0, w8, #256
	bl	_ZeroMalloc
	mov	x23, x0
	mov	x1, x24
	bl	_Decode64
	mov	x0, x23
	bl	_IsEmptyStr
	cbz	w0, LBB0_19
; %bb.18:
	mov	w24, #0
	b	LBB0_22
LBB0_19:
	ldrb	w8, [x23]
	cmp	w8, #58
	b.ne	LBB0_21
; %bb.20:
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	bl	_StrCpy
	add	x2, x23, #1
	mov	x0, x20
	mov	x1, x19
	bl	_StrCpy
	mov	w24, #1
	b	LBB0_22
LBB0_21:
Lloh25:
	adrp	x5, l_.str.6@PAGE
Lloh26:
	add	x5, x5, l_.str.6@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_GetKeyAndValue
	cmp	x0, #0
	cset	w24, ne
LBB0_22:
	mov	x0, x23
	bl	_Free
	b	LBB0_11
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Authorization"

l_.str.1:                               ; @.str.1
	.asciz	"X-VPNADMIN-HUBNAME"

l_.str.2:                               ; @.str.2
	.asciz	"X-VPNADMIN-PASSWORD"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_MAX_SIZE,4,2                   ; @MAX_SIZE
l_.str.4:                               ; @.str.4
	.asciz	" \t"

l_.str.5:                               ; @.str.5
	.asciz	"Basic"

l_.str.6:                               ; @.str.6
	.asciz	":"

.subsections_via_symbols
