	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_urldecode                   ## -- Begin function ff_urldecode
	.p2align	4, 0x90
_ff_urldecode:                          ## @ff_urldecode
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	callq	_strlen
	movl	%eax, %r12d
	leal	1(%r12), %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	testl	%r12d, %r12d
	js	LBB0_18
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_7 Depth=1
	movb	%dl, (%rax,%rsi)
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %r15d
	cmpl	%r12d, %r14d
	jg	LBB0_18
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %rcx
	leaq	1(%rcx), %rdi
	movzbl	(%rbx,%rcx), %edx
	cmpb	$37, %dl
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	$3, %r14d
	cmpl	%r12d, %r14d
	jg	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%rbx,%rdi), %r13d
	movzbl	2(%rcx,%rbx), %r12d
	movsbl	%r13b, %ebx
	movl	%ebx, %edi
	callq	_av_isxdigit
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movsbl	%r12b, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_av_isxdigit
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_av_tolower
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_av_tolower
	xorl	%ecx, %ecx
	cmpb	$58, %bl
	setge	%cl
	leal	(%rcx,%rcx,8), %ecx
	addb	%bl, %cl
	cmpb	$58, %al
	movl	$169, %edx
	movl	$208, %esi
	cmovll	%esi, %edx
	addb	%al, %dl
	shlb	$4, %cl
	addb	%dl, %cl
	movslq	%r15d, %rdx
	incl	%r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	%cl, (%rax,%rdx)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	1(%r15), %ecx
	movslq	%r15d, %rsi
	cmpb	$43, %dl
	jne	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$32, (%rax,%rsi)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r15d, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$37, (%rax,%rcx)
	movb	%r13b, 1(%rax,%rcx)
	addl	$3, %r15d
	movb	%r12b, 2(%rax,%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, %ecx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_urldecode                   ; -- Begin function ff_urldecode
	.p2align	2
_ff_urldecode:                          ; @ff_urldecode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_14
; %bb.1:
	mov	x19, x0
	bl	_strlen
	mov	x21, x0
	add	w0, w0, #1
	bl	_av_malloc
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.2:
	tbnz	w21, #31, LBB0_15
; %bb.3:
	mov	w27, #0
	mov	w26, #0
	mov	w24, #32
	mov	w25, #37
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x20, w27, sxtw
	strb	w25, [x9]
	strb	w23, [x9, #1]
	add	w8, w27, #3
	strb	w28, [x9, #2]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x8
	cmp	w26, w21
	b.gt	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x8, w26
	add	x9, x8, #1
	ldrb	w10, [x19, x8]
	add	w26, w26, #3
	cmp	w10, #37
	ccmp	w26, w21, #0, eq
	b.le	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w27, #1
	sxtw	x11, w27
	cmp	w10, #43
	b.ne	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w24, [x20, x11]
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x19
	ldrsb	w0, [x19, x9]
	and	w23, w0, #0xff
	ldrb	w28, [x8, #2]
	bl	_av_isxdigit
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w22, w28
	mov	x0, x22
	bl	_av_isxdigit
	cbz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	sxtb	w0, w23
	bl	_av_tolower
	mov	x23, x0
	mov	x0, x22
	bl	_av_tolower
	cmp	w23, #58
	mov	w8, #9
	csel	w8, wzr, w8, lt
	add	w8, w8, w23
	cmp	w0, #58
	mov	w9, #-87
	mov	w10, #-48
	csel	w9, w10, w9, lt
	add	w9, w9, w0
	add	w9, w9, w8, lsl #4
	add	w8, w27, #1
	strb	w9, [x20, w27, sxtw]
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	strb	w10, [x20, x11]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x9
	b	LBB0_5
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
