	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_auth_header
_build_auth_header:                     ## @build_auth_header
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_APR_MD5_DIGESTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	24(%r14), %ecx
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %r8
	callq	_build_digest_ha2
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movslq	44(%r14), %rdx
	movslq	40(%r14), %rcx
	movl	16(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_apr_psprintf
	movq	%rax, %r13
	movl	24(%r14), %r9d
	testl	%r9d, %r9d
	je	LBB0_5
## %bb.2:
	movl	28(%r14), %r8d
	testl	%r8d, %r8d
	jne	LBB0_4
## %bb.3:
	movl	36(%r14), %edi
	callq	_random_cnonce
	movl	%eax, %r8d
	movl	%eax, 28(%r14)
	movl	24(%r14), %r9d
LBB0_4:
	movslq	32(%r14), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_apr_psprintf
	movq	%rax, %r13
	movslq	20(%r14), %rdx
	movslq	16(%r14), %rcx
	movl	32(%r14), %r8d
	movl	24(%r14), %ebx
	movl	28(%r14), %r9d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	pushq	-56(%rbp)
	pushq	%rbx
	callq	_apr_psprintf
	addq	$16, %rsp
	jmp	LBB0_6
LBB0_5:
	movslq	20(%r14), %rdx
	movslq	16(%r14), %rcx
	movq	-56(%rbp), %r8
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_apr_psprintf
LBB0_6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_apr_md5
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_hex_encode
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_apr_psprintf
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_apr_psprintf
LBB0_9:
	movq	8(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_apr_psprintf
LBB0_11:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_12:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_MD5_DIGESTSIZE,4,2         ## @APR_MD5_DIGESTSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"%s, nc=%08x, cnonce=\"%s\", qop=\"%s\""

L_.str.2:                               ## @.str.2
	.asciz	"%s:%s:%08x:%s:%s:%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s:%s:%s"

L_.str.4:                               ## @.str.4
	.asciz	"%s, response=\"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"%s, opaque=\"%s\""

L_.str.6:                               ## @.str.6
	.asciz	"%s, algorithm=\"%s\""

	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.no_dead_strip	_build_auth_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_auth_header
_build_auth_header:                     ; @build_auth_header
	.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, #16
	mov	x20, x4
	mov	x12, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _APR_MD5_DIGESTSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_MD5_DIGESTSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w3, [x1, #24]
	sub	x0, x29, #80
	mov	x1, x2
	mov	x2, x12
	bl	_build_digest_ha2
	cbnz	x0, LBB0_12
; %bb.1:
	ldpsw	x3, x2, [x21, #40]
	ldr	w8, [x21, #16]
	stp	x8, x23, [sp, #-16]!
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_apr_psprintf
	add	sp, sp, #16
	mov	x23, x0
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w0, [x21, #28]
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x21, #36]
	bl	_random_cnonce
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x21, #28]
	ldr	w8, [x21, #24]
LBB0_4:
	ldrsw	x3, [x21, #32]
	stp	x0, x8, [sp, #-16]!
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_apr_psprintf
	add	sp, sp, #16
	mov	x23, x0
	ldpsw	x3, x2, [x21, #16]
	ldur	x8, [x29, #-80]
	ldp	w10, w9, [x21, #28]
	ldr	w11, [x21, #24]
	sub	sp, sp, #32
	stp	x11, x8, [sp, #16]
	stp	x9, x10, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_apr_psprintf
	add	sp, sp, #32
	b	LBB0_6
LBB0_5:
	ldpsw	x3, x2, [x21, #16]
	ldur	x8, [x29, #-80]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_apr_psprintf
	add	sp, sp, #16
LBB0_6:
	mov	x24, x0
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x24
	bl	_apr_md5
	cbnz	x0, LBB0_12
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_hex_encode
	mov	x3, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_apr_psprintf
	mov	x2, x0
	ldr	x3, [x21]
	cbz	x3, LBB0_9
; %bb.8:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_apr_psprintf
	mov	x2, x0
LBB0_9:
	ldr	x3, [x21, #8]
	cbz	x3, LBB0_11
; %bb.10:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_apr_psprintf
	mov	x2, x0
LBB0_11:
	str	x2, [x19]
Lloh22:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
LBB0_12:
	mov	sp, x25
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_MD5_DIGESTSIZE,4,2         ; @APR_MD5_DIGESTSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Digest realm=\"%s\", username=\"%s\", nonce=\"%s\", uri=\"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"%s, nc=%08x, cnonce=\"%s\", qop=\"%s\""

l_.str.2:                               ; @.str.2
	.asciz	"%s:%s:%08x:%s:%s:%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s:%s:%s"

l_.str.4:                               ; @.str.4
	.asciz	"%s, response=\"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"%s, opaque=\"%s\""

l_.str.6:                               ; @.str.6
	.asciz	"%s, algorithm=\"%s\""

	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.no_dead_strip	_build_auth_header
.subsections_via_symbols
