	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_req
_parse_req:                             ## @parse_req
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_extract_method
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	%rax, %r15
	incq	%r15
	movq	%r15, %rdi
	callq	_extract_protocol
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	incq	%rbx
	subq	%rbx, %r15
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.5:
	movq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leal	1(%r15), %edi
	callq	_xmalloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_strncpy
	movslq	%r15d, %rax
	movb	$0, (%r12,%rax)
	movq	_conf@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_xstrdup
	movq	%rax, %rdi
	callq	_strtoupper
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_7:
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_xstrdup
	movq	%rax, %rdi
	callq	_strtoupper
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_9
LBB0_14:
	leaq	L_.str(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_alloc_string                   ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_xstrdup
	movq	%rax, %r12
LBB0_9:
	movq	%r12, %rdi
	callq	_decode_url
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %r12
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_free
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_conf,16,3                      ## @conf
	.no_dead_strip	_parse_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_req
_parse_req:                             ; @parse_req
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_extract_method
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x0
	bl	_strlen
	add	x20, x20, w0, sxtw
	mov	x0, x20
	mov	w1, #32
	bl	_strrchr
	cbz	x0, LBB0_8
; %bb.2:
	add	x24, x0, #1
	mov	x0, x24
	bl	_extract_protocol
	cbz	x0, LBB0_8
; %bb.3:
	add	x25, x20, #1
	sub	x24, x24, x25
	cmp	w24, #0
	b.le	LBB0_8
; %bb.4:
	mov	x23, x0
	add	w0, w24, #1
	bl	_xmalloc
	mov	x20, x0
	mov	x1, x25
	mov	x2, x24
	bl	_strncpy
	strb	wzr, [x20, w24, sxtw]
Lloh0:
	adrp	x24, _conf@GOTPAGE
Lloh1:
	ldr	x24, [x24, _conf@GOTPAGEOFF]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_xstrdup
	bl	_strtoupper
	str	x0, [x21]
LBB0_6:
	ldr	x8, [x24]
	cbz	x8, LBB0_10
; %bb.7:
	mov	x0, x23
	bl	_xstrdup
	bl	_strtoupper
	str	x0, [x19]
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_alloc_string
LBB0_9:
	mov	x0, x20
	bl	_xstrdup
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	bl	_decode_url
	cbz	x0, LBB0_14
; %bb.11:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_free
	mov	x20, x19
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_conf,16,3                      ; @conf
	.no_dead_strip	_parse_req
.subsections_via_symbols
