	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__validate_response_digest_auth ## -- Begin function serf__validate_response_digest_auth
	.p2align	4, 0x90
_serf__validate_response_digest_auth:   ## @serf__validate_response_digest_auth
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rdi
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rsi, %rbx
	movq	16(%rbp), %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rcx), %r15
	callq	_serf_bucket_response_get_headers
	movq	_HOST@GOTPCREL(%rip), %rcx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	cmpq	%rbx, (%rcx)
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rcx, %rsi
	movq	%rax, %rdi
	callq	_serf_bucket_headers_get
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_apr_pstrdup
	testq	%rax, %rax
	je	LBB0_23
## %bb.1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	leaq	-120(%rbp), %rdx
	movq	%rax, %rdi
	callq	_apr_strtok
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %r12
	leaq	-120(%rbp), %r14
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_apr_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rbx, %rdi
	movl	$61, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	movb	$0, (%rax)
	decq	%rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, 1(%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r15), %r13
	cmpb	$34, 1(%r15)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cmpb	$34, (%r15,%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%r15,%rax)
	addq	$2, %r15
	movq	%r15, %r13
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%r13, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_15:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.16:
	movq	%rsp, %r15
	movq	_APR_MD5_DIGESTSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%rbx), %r12
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	_HOST@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_18
## %bb.17:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_serf__get_authn_info_for_server
	jmp	LBB0_19
LBB0_18:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
LBB0_19:
	movq	(%rax), %rbx
	leaq	L_.str.6(%rip), %rdx
	leaq	-112(%rbp), %rdi
	movq	%r12, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r12
	movq	%r12, %r8
	callq	_build_digest_ha2
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	%r15, %rsp
	jmp	LBB0_25
LBB0_21:
	movl	12(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	(%rbx), %eax
	movl	4(%rbx), %r9d
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	pushq	-112(%rbp)
	pushq	%rax
	callq	_apr_psprintf
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_apr_md5
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hex_encode
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	%r15, %rsp
	je	LBB0_23
## %bb.22:
	movq	_SERF_ERROR_AUTHN_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_23:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST,8,3                       ## @HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Authentication-Info"

L_.str.1:                               ## @.str.1
	.asciz	"Proxy-Authentication-Info"

	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	","

L_.str.3:                               ## @.str.3
	.asciz	"rspauth"

L_.str.4:                               ## @.str.4
	.asciz	"qop"

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

	.comm	_APR_MD5_DIGESTSIZE,4,2         ## @APR_MD5_DIGESTSIZE
L_.str.6:                               ## @.str.6
	.space	1

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

	.comm	_SERF_ERROR_AUTHN_FAILED,4,2    ## @SERF_ERROR_AUTHN_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__validate_response_digest_auth ; -- Begin function serf__validate_response_digest_auth
	.p2align	2
_serf__validate_response_digest_auth:   ; @serf__validate_response_digest_auth
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x20, x6
	mov	x0, x5
	mov	x23, x4
	mov	x19, x3
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x21, [x3]
	bl	_serf_bucket_response_get_headers
Lloh3:
	adrp	x8, _HOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str@PAGE
Lloh9:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x22
	csel	x1, x10, x9, eq
	bl	_serf_bucket_headers_get
	mov	x1, x0
	mov	x0, x20
	bl	_apr_pstrdup
	cbz	x0, LBB0_22
; %bb.1:
	stur	x19, [x29, #-144]               ; 8-byte Folded Spill
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x2, x29, #96
	bl	_apr_strtok
	cbz	x0, LBB0_22
; %bb.2:
	mov	x19, x0
	stp	x23, x22, [x29, #-136]          ; 16-byte Folded Spill
	stp	x21, x20, [x29, #-120]          ; 16-byte Folded Spill
	mov	x24, #0
	mov	x26, #0
	mov	x23, #0
Lloh12:
	adrp	x27, l_.str.2@PAGE
Lloh13:
	add	x27, x27, l_.str.2@PAGEOFF
Lloh14:
	adrp	x28, l_.str.3@PAGE
Lloh15:
	add	x28, x28, l_.str.3@PAGEOFF
Lloh16:
	adrp	x25, l_.str.4@PAGE
Lloh17:
	add	x25, x25, l_.str.4@PAGEOFF
Lloh18:
	adrp	x21, l_.str.5@PAGE
Lloh19:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x22
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x2, x29, #96
	mov	x0, #0
	mov	x1, x27
	bl	_apr_strtok
	mov	x19, x0
	cbz	x0, LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	mov	w1, #61
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	strb	wzr, [x0]
	sub	x19, x19, #1
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x19, #1]!
	cmp	w8, #32
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x20
	ldrb	w8, [x22, #1]!
	cmp	w8, #34
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_strlen
	ldrb	w8, [x20, x0]
	cmp	w8, #34
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x20, x0]
	add	x22, x20, #2
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x28
	bl	_strcmp
	cbz	x0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_strcmp
	cmp	x0, #0
	csel	x23, x22, x23, eq
	b	LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x22
	b	LBB0_4
LBB0_15:
	ldp	x0, x25, [x29, #-120]           ; 16-byte Folded Reload
	ldp	x13, x12, [x29, #-136]          ; 16-byte Folded Reload
Lloh20:
	adrp	x14, _HOST@GOTPAGE
Lloh21:
	ldr	x14, [x14, _HOST@GOTPAGEOFF]
	cbz	x24, LBB0_22
; %bb.16:
	mov	x20, sp
Lloh22:
	adrp	x8, _APR_MD5_DIGESTSIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _APR_MD5_DIGESTSIZE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	mov	x9, x8
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x19, [x13]
	ldr	x8, [x14]
	cmp	x8, x12
	b.ne	LBB0_18
; %bb.17:
	ldur	x0, [x29, #-144]                ; 8-byte Folded Reload
	bl	_serf__get_authn_info_for_server
LBB0_18:
	ldr	x22, [x0]
Lloh27:
	adrp	x2, l_.str.6@PAGE
Lloh28:
	add	x2, x2, l_.str.6@PAGEOFF
	sub	x0, x29, #104
	mov	x1, x19
	mov	x3, x26
	mov	x4, x25
	bl	_build_digest_ha2
	cbz	w0, LBB0_20
; %bb.19:
	mov	sp, x20
	b	LBB0_24
LBB0_20:
	ldp	w3, w2, [x22, #8]
	ldp	w6, w5, [x22]
	ldur	x7, [x29, #-104]
Lloh29:
	adrp	x1, l_.str.7@PAGE
Lloh30:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x25
	mov	x4, x23
	bl	_apr_psprintf
	mov	x19, x0
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_apr_md5
	mov	x0, x21
	mov	x1, x25
	bl	_hex_encode
	mov	x1, x0
	mov	x0, x24
	bl	_strcmp
	mov	sp, x20
	cbz	x0, LBB0_22
; %bb.21:
Lloh31:
	adrp	x8, _SERF_ERROR_AUTHN_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SERF_ERROR_AUTHN_FAILED@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh33:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST,8,3                       ; @HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Authentication-Info"

l_.str.1:                               ; @.str.1
	.asciz	"Proxy-Authentication-Info"

	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	","

l_.str.3:                               ; @.str.3
	.asciz	"rspauth"

l_.str.4:                               ; @.str.4
	.asciz	"qop"

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

	.comm	_APR_MD5_DIGESTSIZE,4,2         ; @APR_MD5_DIGESTSIZE
l_.str.6:                               ; @.str.6
	.space	1

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

	.comm	_SERF_ERROR_AUTHN_FAILED,4,2    ; @SERF_ERROR_AUTHN_FAILED
.subsections_via_symbols
