	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_amf_match_string            ## -- Begin function ff_amf_match_string
	.p2align	4, 0x90
_ff_amf_match_string:                   ## @ff_amf_match_string
	.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	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_strlen
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.1:
	movl	%eax, %r15d
	leaq	4(%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	(%rbx), %eax
	movq	_AMF_DATA_TYPE_LONG_STRING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	movq	_AMF_DATA_TYPE_STRING@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
LBB0_3:
	cmpl	%ecx, %eax
	jne	LBB0_6
## %bb.4:
	cmpl	$5, %r13d
	jb	LBB0_11
## %bb.5:
	addl	$-5, %r13d
	leaq	-48(%rbp), %rdi
	callq	_bytestream_get_be32
	jmp	LBB0_8
LBB0_6:
	cmpl	$3, %r13d
	jb	LBB0_11
## %bb.7:
	addl	$-3, %r13d
	leaq	-48(%rbp), %rdi
	callq	_bytestream_get_be16
LBB0_8:
	cmpl	%r13d, %eax
	jg	LBB0_11
## %bb.9:
	cmpl	%r15d, %eax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMF_DATA_TYPE_LONG_STRING,4,2  ## @AMF_DATA_TYPE_LONG_STRING
	.comm	_AMF_DATA_TYPE_STRING,4,2       ## @AMF_DATA_TYPE_STRING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_amf_match_string            ; -- Begin function ff_amf_match_string
	.p2align	2
_ff_amf_match_string:                   ; @ff_amf_match_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_strlen
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.1:
	ldr	w8, [x22], #4
	str	x22, [sp, #8]
Lloh0:
	adrp	x9, _AMF_DATA_TYPE_LONG_STRING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMF_DATA_TYPE_LONG_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AMF_DATA_TYPE_STRING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AMF_DATA_TYPE_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_6
; %bb.2:
	mov	x20, x0
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	subs	w21, w21, #5
	b.lo	LBB0_6
; %bb.4:
	add	x0, sp, #8
	bl	_bytestream_get_be32
	b	LBB0_9
LBB0_5:
	subs	w21, w21, #3
	b.hs	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	add	x0, sp, #8
	bl	_bytestream_get_be16
LBB0_9:
	mov	x8, x0
	mov	w0, #0
	cmp	w8, w21
	b.gt	LBB0_7
; %bb.10:
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.11:
	ldr	x0, [sp, #8]
	mov	x1, x19
	mov	x2, x20
	bl	_memcmp
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMF_DATA_TYPE_LONG_STRING,4,2  ; @AMF_DATA_TYPE_LONG_STRING
	.comm	_AMF_DATA_TYPE_STRING,4,2       ; @AMF_DATA_TYPE_STRING
.subsections_via_symbols
