	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__urlmatch_normalization    ## -- Begin function cmd__urlmatch_normalization
	.p2align	4, 0x90
_cmd__urlmatch_normalization:           ## @cmd__urlmatch_normalization
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.cmd__urlmatch_normalization.usage+48(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	L___const.cmd__urlmatch_normalization.usage+32(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	L___const.cmd__urlmatch_normalization.usage+16(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	L___const.cmd__urlmatch_normalization.usage(%rip), %xmm0
	movaps	%xmm0, -128(%rbp)
	movw	$62, -64(%rbp)
	movb	$1, %cl
	cmpl	$2, %edi
	jl	LBB0_1
## %bb.3:
	leaq	8(%r14), %r12
	movq	8(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movb	$1, %r15b
	movb	$1, %cl
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
LBB0_4:
	decl	%r13d
	movb	$1, %bl
	xorl	%ecx, %ecx
	movq	%r12, %r14
LBB0_2:
	xorl	%r12d, %r12d
	movb	$1, %r15b
LBB0_8:
	leal	-4(%r13), %eax
	cmpl	$-3, %eax
	ja	LBB0_15
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	leaq	-128(%rbp), %rsi
	callq	_die
	jmp	LBB0_10
LBB0_15:
	cmpl	$2, %r13d
	jne	LBB0_10
## %bb.16:
	movl	%ecx, %ebx
	movq	8(%r14), %rdi
	leaq	-136(%rbp), %rsi
	callq	_url_normalize
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	testb	%bl, %bl
	jne	LBB0_20
## %bb.19:
	movq	%rax, %rdi
	callq	_puts
LBB0_20:
	xorl	%ebx, %ebx
	testb	%r15b, %r15b
	jne	LBB0_22
## %bb.21:
	movl	-136(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_22
LBB0_10:
	orb	%r12b, %bl
	cmpb	$1, %bl
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	leaq	-128(%rbp), %rsi
	callq	_die
LBB0_12:
	movq	8(%r14), %rdi
	xorl	%esi, %esi
	callq	_url_normalize
	movq	%rax, %r15
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_url_normalize
	movl	$1, %ebx
	testq	%r15, %r15
	je	LBB0_22
## %bb.13:
	testq	%rax, %rax
	je	LBB0_22
## %bb.14:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_22
LBB0_7:
	decl	%r13d
	movb	$1, %cl
	xorl	%ebx, %ebx
	movq	%r12, %r14
	movb	$1, %r12b
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_17:
	movl	$1, %ebx
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
	.p2align	4                               ## @__const.cmd__urlmatch_normalization.usage
L___const.cmd__urlmatch_normalization.usage:
	.asciz	"test-tool urlmatch-normalization [-p | -l] <url1> | <url1> <url2>"

L_.str:                                 ## @.str
	.asciz	"-p"

L_.str.1:                               ## @.str.1
	.asciz	"-l"

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

L_.str.4:                               ## @.str.4
	.asciz	"%u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd__urlmatch_normalization    ; -- Begin function cmd__urlmatch_normalization
	.p2align	2
_cmd__urlmatch_normalization:           ; @cmd__urlmatch_normalization
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, 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.cmd__urlmatch_normalization.usage@PAGE
Lloh4:
	add	x9, x9, l___const.cmd__urlmatch_normalization.usage@PAGEOFF
	stur	x8, [x29, #-56]
	ldp	q0, q1, [x9]
	stp	q0, q1, [sp, #16]
	ldp	q0, q1, [x9, #32]
	stp	q0, q1, [sp, #48]
	mov	w8, #62
	strh	w8, [sp, #80]
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x24, x19
	ldr	x21, [x24, #8]!
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	mov	w8, #1
	sub	w9, w20, #1
	mov	w10, #1
	cmp	w0, #0
	csel	w20, w20, w9, ne
	csel	x19, x19, x24, ne
	csel	w23, wzr, wzr, ne
	csel	w21, w8, w10, ne
	csel	w22, wzr, w10, ne
	cmp	w0, #0
	csel	w24, w8, wzr, ne
	b	LBB0_6
LBB0_3:
	mov	w23, #0
	mov	w22, #0
	mov	w21, #1
	b	LBB0_5
LBB0_4:
	mov	w21, #0
	mov	w22, #0
	sub	w20, w20, #1
	mov	w23, #1
	mov	x19, x24
LBB0_5:
	mov	w24, #1
LBB0_6:
	sub	w8, w20, #4
	cmn	w8, #3
	b.hi	LBB0_8
; %bb.7:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #16
	bl	_die
	b	LBB0_15
LBB0_8:
	cmp	w20, #2
	b.ne	LBB0_15
; %bb.9:
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_url_normalize
	cbz	x0, LBB0_20
; %bb.10:
	tbnz	w21, #0, LBB0_12
; %bb.11:
	bl	_puts
LBB0_12:
	tbnz	w24, #0, LBB0_14
; %bb.13:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_14:
	mov	w0, #0
	b	LBB0_21
LBB0_15:
	orr	w8, w23, w22
	cmp	w8, #1
	b.ne	LBB0_17
; %bb.16:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #16
	bl	_die
LBB0_17:
	ldr	x0, [x19, #8]
	mov	x1, #0
	bl	_url_normalize
	mov	x20, x0
	ldr	x0, [x19, #16]
	mov	x1, #0
	bl	_url_normalize
	mov	x1, x0
	mov	w0, #1
	cbz	x20, LBB0_21
; %bb.18:
	cbz	x1, LBB0_21
; %bb.19:
	mov	x0, x20
	bl	_strcmp
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_21
LBB0_20:
	mov	w0, #1
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.cmd__urlmatch_normalization.usage: ; @__const.cmd__urlmatch_normalization.usage
	.asciz	"test-tool urlmatch-normalization [-p | -l] <url1> | <url1> <url2>"

l_.str:                                 ; @.str
	.asciz	"-p"

l_.str.1:                               ; @.str.1
	.asciz	"-l"

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

l_.str.4:                               ; @.str.4
	.asciz	"%u\n"

.subsections_via_symbols
