	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_authorize
_http_authorize:                        ## @http_authorize
	.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
	cmpl	$0, 4(%rcx)
	je	LBB0_17
## %bb.1:
	movq	%rcx, %r13
	cmpl	$0, (%rcx)
	je	LBB0_17
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdx), %r9d
	testl	%r9d, %r9d
	jle	LBB0_11
## %bb.3:
	movq	%r8, %r12
	movq	8(%rdx), %rdx
	movq	_HTTPAS_DIGEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-1(%r9), %rdi
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdi
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_17:
	leaq	L_.str(%rip), %rdi
LBB0_18:
	callq	_DEBUGF
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	andl	$-4, %r9d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rcx
	movq	8(%rdx,%rdi,8), %rsi
	cmpq	%rax, (%rcx)
	cmoveq	%rcx, %rbx
	cmpq	%rax, (%rsi)
	cmoveq	%rsi, %rbx
	movq	16(%rdx,%rdi,8), %rcx
	cmpq	%rax, (%rcx)
	cmoveq	%rcx, %rbx
	movq	24(%rdx,%rdi,8), %rcx
	cmpq	%rax, (%rcx)
	cmoveq	%rcx, %rbx
	addq	$4, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_6
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	cmpq	%rax, (%rcx)
	cmoveq	%rcx, %rbx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_9
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.14:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_digest_auth               ## TAILCALL
LBB0_11:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_13
LBB0_19:
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_basic_auth                ## TAILCALL
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NULL usr or pass\n"

	.comm	_HTTPAS_DIGEST,8,3              ## @HTTPAS_DIGEST
L_.str.1:                               ## @.str.1
	.asciz	"digest"

L_.str.2:                               ## @.str.2
	.asciz	"Digest auth in env, not supported by peer\n"

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

	.no_dead_strip	_http_authorize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_authorize
_http_authorize:                        ; @http_authorize
	.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
	ldr	w8, [x3, #4]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x3
	ldr	w8, [x3]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x20, x1
	mov	x21, x0
	ldr	w8, [x2]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x22, x4
	mov	x23, #0
	ldr	x9, [x2, #8]
Lloh0:
	adrp	x10, _HTTPAS_DIGEST@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HTTPAS_DIGEST@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldr	x12, [x11]
	cmp	x12, x10
	csel	x23, x11, x23, eq
	subs	x8, x8, #1
	b.ne	LBB0_4
; %bb.5:
	cbz	x23, LBB0_11
; %bb.6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_13
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	mov	x4, x22
	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
	b	_http_digest_auth
LBB0_9:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	bl	_DEBUGF
	mov	w0, #-1
	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_11:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.12:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_14
LBB0_13:
	ldp	w3, w2, [x19]
	mov	x0, x21
	mov	x1, 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
	b	_http_basic_auth
LBB0_14:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NULL usr or pass\n"

	.comm	_HTTPAS_DIGEST,8,3              ; @HTTPAS_DIGEST
l_.str.1:                               ; @.str.1
	.asciz	"digest"

l_.str.2:                               ; @.str.2
	.asciz	"Digest auth in env, not supported by peer\n"

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

	.no_dead_strip	_http_authorize
.subsections_via_symbols
