	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	movq	%rsi, %r12
	cmpl	$3, %edi
	jne	LBB0_1
## %bb.2:
	movq	16(%r12), %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	8(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	movq	16(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_http_parser_url_init
	movq	16(%r12), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_http_parser_parse_url
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	movq	(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_4:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	16(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_dump_url
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %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	"Syntax : %s connect|get url\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Parsing %s, connect %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Parse error : %d\n"

L_str:                                  ## @str
	.asciz	"Parse ok, result : "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_strlen
	mov	x20, x0
	ldr	x1, [x19, #8]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w21, eq
	ldr	x8, [x19, #16]
	stp	x8, x21, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	x0, sp, #24
	bl	_http_parser_url_init
	ldr	x0, [x19, #16]
	add	x3, sp, #24
	mov	x1, x20
	mov	x2, x21
	bl	_http_parser_parse_url
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	b	LBB0_5
LBB0_3:
	ldr	x8, [x19]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	w20, #1
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [x19, #16]
	add	x1, sp, #24
	bl	_dump_url
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Syntax : %s connect|get url\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Parsing %s, connect %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Parse error : %d\n"

l_str:                                  ; @str
	.asciz	"Parse ok, result : "

.subsections_via_symbols
