	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_uriencode               ## -- Begin function evhttp_uriencode
	.p2align	4, 0x90
_evhttp_uriencode:                      ## @evhttp_uriencode
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_evbuffer_new
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	testq	%r12, %r12
	js	LBB0_2
## %bb.3:
	testq	%r12, %r12
	jg	LBB0_4
	jmp	LBB0_13
LBB0_2:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r12
	testq	%r12, %r12
	jle	LBB0_13
LBB0_4:
	addq	%rbx, %r12
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%al, %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_evbuffer_add_printf
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	jae	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_CHAR_IS_UNRESERVED
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rbx), %eax
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$32, %al
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edx
	callq	_evbuffer_add
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_evbuffer_add
	movq	%r15, %rdi
	callq	_evbuffer_get_length
	movl	%eax, %edi
	callq	_mm_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_evbuffer_get_length
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_evbuffer_remove
LBB0_15:
	movq	%r15, %rdi
	callq	_evbuffer_free
LBB0_16:
	movq	%r13, %rax
	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	"+"

L_.str.1:                               ## @.str.1
	.asciz	"%%%02X"

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_uriencode               ; -- Begin function evhttp_uriencode
	.p2align	2
_evhttp_uriencode:                      ; @evhttp_uriencode
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_evbuffer_new
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	tbnz	x22, #63, LBB0_4
; %bb.2:
	cmp	x22, #1
	b.ge	LBB0_5
	b	LBB0_14
LBB0_3:
	mov	x20, #0
	b	LBB0_17
LBB0_4:
	mov	x0, x21
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	cmp	x22, #1
	b.lt	LBB0_14
LBB0_5:
	add	x24, x21, x22
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_evbuffer_add_printf
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, x24
	b.hs	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21]
	bl	_CHAR_IS_UNRESERVED
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x21
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w2, [x21]
	cbz	w20, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w2, #32
	b.ne	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w2, #1
	bl	_evbuffer_add
	b	LBB0_7
LBB0_14:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_evbuffer_add
	mov	x0, x19
	bl	_evbuffer_get_length
	bl	_mm_malloc
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_evbuffer_get_length
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_evbuffer_remove
LBB0_16:
	mov	x0, x19
	bl	_evbuffer_free
LBB0_17:
	mov	x0, 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
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"+"

l_.str.1:                               ; @.str.1
	.asciz	"%%%02X"

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
