	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_digest_auth
_http_digest_auth:                      ## @http_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	$136, %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)
	movq	$0, -120(%rbp)
	cmpl	$0, 16(%rdx)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %rbx
	cmpl	$0, 12(%rdx)
	je	LBB0_7
## %bb.2:
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rsi, %r14
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%rax, %rcx
	movq	%rax, 32(%rbx)
LBB0_4:
	cmpq	$0, (%rcx)
	leaq	L_.str.1(%rip), %r15
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%r15, %rdx
	movq	(%rbx), %r9
	testq	%r9, %r9
	leaq	L_.str.4(%rip), %r8
	cmoveq	%r15, %r8
	cmoveq	%r15, %r9
	leaq	L_.str.2(%rip), %rsi
	leaq	-120(%rbp), %rdi
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	cmpq	$0, 24(%rbx)
	je	LBB0_9
## %bb.6:
	movl	8(%rbx), %edx
	incl	%edx
	movl	%edx, 8(%rbx)
	leaq	L_.str.5(%rip), %rsi
	leaq	-58(%rbp), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_time
	leaq	L_.str.6(%rip), %rsi
	leaq	-112(%rbp), %rdi
	movl	%r14d, %edx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUGF
LBB0_8:
	movl	$-1, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_strdup
	movq	%rax, 24(%rbx)
	movb	$0, -58(%rbp)
	movb	$0, -112(%rbp)
LBB0_10:
	movq	32(%rbx), %rdi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %edx
	movl	(%r13), %esi
	movl	4(%r13), %ecx
	leaq	-112(%rbp), %r14
	movq	%r14, %r9
	callq	_DigestCalcHA1
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_DEBUGF
	movl	12(%rbx), %esi
	movq	24(%rbx), %r8
	movl	(%r12), %eax
	movq	%r15, 8(%rsp)
	movq	%r14, %r15
	movl	%eax, (%rsp)
	leaq	L_.str.8(%rip), %r9
	leaq	-58(%rbp), %r14
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_DigestCalcResponse
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	movl	(%r13), %ecx
	movl	12(%rbx), %r9d
	movl	16(%rbx), %r8d
	movl	(%r12), %eax
	movq	-120(%rbp), %rdx
	je	LBB0_12
## %bb.11:
	movq	%rdx, 32(%rsp)
	movq	%r14, 24(%rsp)
	movq	%r15, 16(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	movq	%rdx, 16(%rsp)
	movl	%eax, (%rsp)
	leaq	L_.str.10(%rip), %rsi
LBB0_13:
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_http_cmd
	movl	%eax, %ebx
	movq	-120(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_free
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"realm/nonce not set in challenge\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	",algorithm="

L_.str.4:                               ## @.str.4
	.asciz	",opaque="

L_.str.5:                               ## @.str.5
	.asciz	"%08x"

L_.str.6:                               ## @.str.6
	.asciz	"%x%lx"

L_.str.7:                               ## @.str.7
	.asciz	"HA1: [%s]\n"

L_.str.8:                               ## @.str.8
	.asciz	"GET"

L_.str.9:                               ## @.str.9
	.asciz	"%s: Digest username=\"%s\",realm=\"%s\",nonce=\"%s\",uri=\"%s\",response=\"%s\",qop=\"auth\", cnonce=\"%s\", nc=%s%s"

L_.str.10:                              ## @.str.10
	.asciz	"%s: Digest username=\"%s\",realm=\"%s\",nonce=\"%s\",uri=\"%s\",response=\"%s\"%s"

	.no_dead_strip	_http_digest_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_digest_auth
_http_digest_auth:                      ; @http_digest_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	xzr, [sp, #24]
	ldr	w8, [x2, #16]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x22, x2
	ldr	w8, [x2, #12]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x21, x4
	mov	x23, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x3, [x22, #32]
	cbnz	x3, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	mov	x3, x0
	str	x0, [x22, #32]
LBB0_4:
	ldr	x8, [x3]
Lloh5:
	adrp	x9, l_.str.3@PAGE
Lloh6:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh7:
	adrp	x10, l_.str.1@PAGE
Lloh8:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x2, x10, x9, eq
	ldr	x8, [x22]
Lloh9:
	adrp	x9, l_.str.4@PAGE
Lloh10:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x4, x10, x9, eq
	csel	x5, x10, x8, eq
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_asprintf
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	w8, [x22, #8]
	add	w2, w8, #1
	str	w2, [x22, #8]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #78
	bl	_sprintf
	bl	_getpid
	mov	x24, x0
	mov	w0, #0
	bl	_time
	str	x0, [sp]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #38
	mov	x2, x24
	bl	_sprintf
	b	LBB0_12
LBB0_7:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEBUGF
LBB0_8:
	mov	w19, #-1
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_11:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strdup
	str	x0, [x22, #24]
	strb	wzr, [sp, #78]
	strb	wzr, [sp, #38]
LBB0_12:
	ldr	x0, [x22, #32]
	ldp	w1, w3, [x23]
	ldp	w4, w2, [x22, #12]
	add	x24, sp, #38
	add	x5, sp, #38
	bl	_DigestCalcHA1
Lloh24:
	adrp	x0, l_.str.7@PAGE
Lloh25:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DEBUGF
	ldr	w1, [x22, #12]
	ldr	x4, [x22, #24]
	ldr	w6, [x21]
Lloh26:
	adrp	x5, l_.str.8@PAGE
Lloh27:
	add	x5, x5, l_.str.8@PAGEOFF
Lloh28:
	adrp	x7, l_.str.1@PAGE
Lloh29:
	add	x7, x7, l_.str.1@PAGEOFF
	add	x25, sp, #78
	add	x2, sp, #78
	add	x3, sp, #38
	bl	_DigestCalcResponse
	ldr	x8, [x22, #24]
	ldr	x9, [x8]
	ldr	w3, [x23]
	ldp	w5, w4, [x22, #12]
	ldr	w6, [x21]
	ldr	x8, [sp, #24]
	cbz	x9, LBB0_14
; %bb.13:
	stp	x25, x8, [sp, #8]
	str	x24, [sp]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_15
LBB0_14:
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_15:
	mov	x0, x20
	mov	x2, x19
	bl	_http_cmd
	mov	x19, x0
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.16:
	bl	_free
	b	LBB0_9
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realm/nonce not set in challenge\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	",algorithm="

l_.str.4:                               ; @.str.4
	.asciz	",opaque="

l_.str.5:                               ; @.str.5
	.asciz	"%08x"

l_.str.6:                               ; @.str.6
	.asciz	"%x%lx"

l_.str.7:                               ; @.str.7
	.asciz	"HA1: [%s]\n"

l_.str.8:                               ; @.str.8
	.asciz	"GET"

l_.str.9:                               ; @.str.9
	.asciz	"%s: Digest username=\"%s\",realm=\"%s\",nonce=\"%s\",uri=\"%s\",response=\"%s\",qop=\"auth\", cnonce=\"%s\", nc=%s%s"

l_.str.10:                              ; @.str.10
	.asciz	"%s: Digest username=\"%s\",realm=\"%s\",nonce=\"%s\",uri=\"%s\",response=\"%s\"%s"

	.no_dead_strip	_http_digest_auth
.subsections_via_symbols
