	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_alternate_allowed
_is_alternate_allowed:                  ## @is_alternate_allowed
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	l___const.is_alternate_allowed.protocols+16(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.is_alternate_allowed.protocols(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_http_follow_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_HTTP_FOLLOW_ALWAYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.1:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	leaq	-88(%rbp), %r14
	leaq	-80(%rbp), %r15
	leaq	L_.str.5(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-88(%rbp), %rdi
	movq	%r12, %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	leaq	-80(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_7
## %bb.8:
	movl	%ebx, %eax
	movq	-80(%rbp,%rax,8), %rdi
	xorl	%esi, %esi
	callq	_is_transport_allowed
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.6(%rip), %rdi
LBB0_10:
	movq	%r13, %rsi
	callq	_warning
	xorl	%eax, %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http"

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

L_.str.2:                               ## @.str.2
	.asciz	"ftp"

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

	.section	__DATA,__const
	.p2align	4                               ## @__const.is_alternate_allowed.protocols
l___const.is_alternate_allowed.protocols:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3

	.comm	_http_follow_config,8,3         ## @http_follow_config
	.comm	_HTTP_FOLLOW_ALWAYS,8,3         ## @HTTP_FOLLOW_ALWAYS
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"alternate disabled by http.followRedirects: %s"

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

L_.str.6:                               ## @.str.6
	.asciz	"ignoring alternate with unknown protocol: %s"

L_.str.7:                               ## @.str.7
	.asciz	"ignoring alternate with restricted protocol: %s"

	.no_dead_strip	_is_alternate_allowed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_alternate_allowed
_is_alternate_allowed:                  ; @is_alternate_allowed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, l___const.is_alternate_allowed.protocols@PAGE
Lloh4:
	add	x9, x9, l___const.is_alternate_allowed.protocols@PAGEOFF
	stur	x8, [x29, #-40]
	ldp	q0, q1, [x9]
Lloh5:
	adrp	x8, _http_follow_config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _http_follow_config@GOTPAGEOFF]
	stp	q0, q1, [sp, #16]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _HTTP_FOLLOW_ALWAYS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HTTP_FOLLOW_ALWAYS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	add	x22, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
Lloh11:
	adrp	x20, l_.str.5@PAGE
Lloh12:
	add	x20, x20, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x22, x21, lsl #3]
	add	x2, sp, #8
	mov	x0, x19
	bl	_skip_prefix
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x20
	bl	_starts_with
	cbz	x0, LBB0_3
	b	LBB0_8
LBB0_6:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_7:
	mov	w21, #0
LBB0_8:
	add	x20, sp, #16
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_11
; %bb.9:
	ldr	x0, [x20, w21, uxtw #3]
	mov	w1, #0
	bl	_is_transport_allowed
	cbz	w0, LBB0_12
; %bb.10:
	mov	w0, #1
	b	LBB0_14
LBB0_11:
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_13:
	mov	x1, x19
	bl	_warning
	mov	w0, #0
LBB0_14:
	ldur	x8, [x29, #-40]
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_16
; %bb.15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http"

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

l_.str.2:                               ; @.str.2
	.asciz	"ftp"

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

	.section	__DATA,__const
	.p2align	3                               ; @__const.is_alternate_allowed.protocols
l___const.is_alternate_allowed.protocols:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.comm	_http_follow_config,8,3         ; @http_follow_config
	.comm	_HTTP_FOLLOW_ALWAYS,8,3         ; @HTTP_FOLLOW_ALWAYS
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"alternate disabled by http.followRedirects: %s"

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

l_.str.6:                               ; @.str.6
	.asciz	"ignoring alternate with unknown protocol: %s"

l_.str.7:                               ; @.str.7
	.asciz	"ignoring alternate with restricted protocol: %s"

	.no_dead_strip	_is_alternate_allowed
.subsections_via_symbols
