	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_http_auth_create_response   ## -- Begin function ff_http_auth_create_response
	.p2align	4, 0x90
_ff_http_auth_create_response:          ## @ff_http_auth_create_response
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, 8(%rdi)
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%r13), %rax
	movq	_HTTP_AUTH_BASIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_ff_urldecode
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %edi
	callq	_AV_BASE64_SIZE
	movl	%eax, %r12d
	leal	30(%r12), %r15d
	movl	%r15d, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r12
	movq	%rbx, %r13
	addq	%r12, %r13
	movq	%r14, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_av_base64_encode
	subl	%r12d, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_av_strlcat
	jmp	LBB0_17
LBB0_8:
	movq	_HTTP_AUTH_DIGEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.9:
	movq	%rbx, %rdi
	callq	_ff_urldecode
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	%rax, %rdx
	incq	%rdx
	movb	$0, (%rax)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_make_digest_auth
	movq	%rax, %rbx
	jmp	LBB0_17
LBB0_6:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%r14, %rdi
	callq	_av_free
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_AUTH_BASIC,8,3            ## @HTTP_AUTH_BASIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Authorization: Basic "

L_.str.1:                               ## @.str.1
	.asciz	"\r\n"

	.comm	_HTTP_AUTH_DIGEST,8,3           ## @HTTP_AUTH_DIGEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_http_auth_create_response   ; -- Begin function ff_http_auth_create_response
	.p2align	2
_ff_http_auth_create_response:          ; @ff_http_auth_create_response
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	xzr, [x0, #8]
	cbz	x1, LBB0_10
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _HTTP_AUTH_BASIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HTTP_AUTH_BASIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_ff_urldecode
	cbz	x0, LBB0_10
; %bb.4:
	mov	x19, x0
	bl	_strlen
	bl	_AV_BASE64_SIZE
	mov	x22, x0
	add	w21, w0, #30
	mov	x0, x21
	bl	_av_malloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.5:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_snprintf
	mov	x0, x20
	bl	_strlen
	mov	x23, x0
	add	x24, x20, w0, sxtw
	mov	x0, x19
	bl	_strlen
	mov	x3, x0
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	bl	_av_base64_encode
	sub	w2, w21, w23
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_av_strlcat
	b	LBB0_13
LBB0_6:
Lloh7:
	adrp	x9, _HTTP_AUTH_DIGEST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HTTP_AUTH_DIGEST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_ff_urldecode
	cbz	x0, LBB0_10
; %bb.8:
	mov	x19, x0
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.9:
	mov	x2, x0
	strb	wzr, [x2], #1
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
	mov	x4, x20
	bl	_make_digest_auth
	mov	x20, x0
	b	LBB0_13
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x19
	bl	_av_free
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_AUTH_BASIC,8,3            ; @HTTP_AUTH_BASIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Authorization: Basic "

l_.str.1:                               ; @.str.1
	.asciz	"\r\n"

	.comm	_HTTP_AUTH_DIGEST,8,3           ; @HTTP_AUTH_DIGEST
.subsections_via_symbols
