	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__setup_request_digest_auth ## -- Begin function serf__setup_request_digest_auth
	.p2align	4, 0x90
_serf__setup_request_digest_auth:       ## @serf__setup_request_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	_HOST@GOTPCREL(%rip), %r15
	cmpq	%rdi, (%r15)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	%r8, %rbx
	callq	_serf__get_authn_info_for_server
	movq	%rbx, %r8
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rax
LBB0_3:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	(%r13), %edi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rsi
	callq	_apr_uri_parse
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	-64(%rbp), %r12
LBB0_8:
	cmpq	%r14, (%r15)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, (%rbx)
	movl	(%r13), %r8d
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_build_auth_header
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	16(%rbp), %rdi
	movq	(%rbx), %rsi
	movq	-72(%rbp), %rdx
	callq	_serf_bucket_headers_setn
	incl	8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_10:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST,8,3                       ## @HOST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CONNECT"

L_.str.1:                               ## @.str.1
	.asciz	"Authorization"

L_.str.2:                               ## @.str.2
	.asciz	"Proxy-Authorization"

	.comm	_APR_SUCCESS,4,2                ## @APR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__setup_request_digest_auth ; -- Begin function serf__setup_request_digest_auth
	.p2align	2
_serf__setup_request_digest_auth:       ; @serf__setup_request_digest_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x19, x3
	mov	x24, x2
	mov	x25, x0
Lloh0:
	adrp	x26, _HOST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HOST@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_serf__get_authn_info_for_server
	ldr	x23, [x0]
	cbnz	x23, LBB0_3
	b	LBB0_9
LBB0_2:
	ldr	x0, [x24, #8]
	ldr	x23, [x0]
	cbz	x23, LBB0_9
LBB0_3:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_9
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x24]
	mov	x2, sp
	mov	x1, x21
	bl	_apr_uri_parse
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x21, [sp]
LBB0_7:
	ldr	x8, [x26]
Lloh4:
	adrp	x9, l_.str.2@PAGE
Lloh5:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh6:
	adrp	x10, l_.str.1@PAGE
Lloh7:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, x25
	csel	x8, x10, x9, eq
	str	x8, [x23]
	ldr	w4, [x24]
	add	x0, sp, #8
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_build_auth_header
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	x1, [x23]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_serf_bucket_headers_setn
	ldr	w8, [x23, #8]
	add	w8, w8, #1
	str	w8, [x23, #8]
	str	x21, [x19]
LBB0_9:
Lloh8:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_10:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST,8,3                       ; @HOST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CONNECT"

l_.str.1:                               ; @.str.1
	.asciz	"Authorization"

l_.str.2:                               ; @.str.2
	.asciz	"Proxy-Authorization"

	.comm	_APR_SUCCESS,4,2                ; @APR_SUCCESS
.subsections_via_symbols
