	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_write_amf_data
_rtmp_write_amf_data:                   ## @rtmp_write_amf_data
	.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, %rbx
	movq	%rdi, %r15
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r14
	movb	1(%rbx), %r13b
	cmpb	$58, %r13b
	jne	LBB0_3
## %bb.2:
	leaq	2(%rbx), %r12
LBB0_8:
	movsbl	%al, %eax
	addl	$-66, %eax
	cmpl	$24, %eax
	ja	LBB0_16
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_17:
	xorl	%esi, %esi
	cmpb	$48, (%r12)
	setne	%sil
	movq	%r14, %rdi
	callq	_ff_amf_write_bool
	jmp	LBB0_18
LBB0_3:
	cmpb	$78, %al
	jne	LBB0_16
## %bb.4:
	testb	%r13b, %r13b
	je	LBB0_16
## %bb.5:
	cmpb	$58, 2(%rbx)
	jne	LBB0_16
## %bb.6:
	leaq	3(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	%rax, %r12
	movb	$0, (%rax)
	incq	%r12
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_amf_write_field_name
	movl	%r13d, %eax
	jmp	LBB0_8
LBB0_16:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_strtod
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_amf_write_number
	jmp	LBB0_18
LBB0_13:
	cmpb	$48, (%r12)
	jne	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_ff_amf_write_object_end
	jmp	LBB0_18
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ff_amf_write_string
	jmp	LBB0_18
LBB0_12:
	movq	%r14, %rdi
	callq	_ff_amf_write_null
	jmp	LBB0_18
LBB0_14:
	movq	%r14, %rdi
	callq	_ff_amf_write_object_start
LBB0_18:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid AMF parameter: %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rtmp_write_amf_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_write_amf_data
_rtmp_write_amf_data:                   ; @rtmp_write_amf_data
	.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, x1
	mov	x21, x0
	ldrb	w8, [x1]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x2
	ldrb	w24, [x20, #1]
	cmp	w24, #58
	b.ne	LBB0_6
; %bb.2:
	add	x22, x20, #2
LBB0_3:
	sxtb	w8, w8
	sub	w8, w8, #66
	cmp	w8, #24
	b.hi	LBB0_10
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldrb	w8, [x22]
	cmp	w8, #48
	cset	w1, ne
	mov	x0, x19
	bl	_ff_amf_write_bool
	b	LBB0_17
LBB0_6:
	cmp	w8, #78
	ccmp	w24, #0, #4, eq
	b.eq	LBB0_10
; %bb.7:
	ldrb	w8, [x20, #2]
	cmp	w8, #58
	b.ne	LBB0_10
; %bb.8:
	add	x23, x20, #3
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_10
; %bb.9:
	mov	x22, x0
	strb	wzr, [x22], #1
	mov	x0, x19
	mov	x1, x23
	bl	_ff_amf_write_field_name
	mov	x8, x24
	b	LBB0_3
LBB0_10:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_av_log
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_11:
	mov	x0, x22
	mov	x1, #0
	bl	_strtod
	mov	x1, x0
	mov	x0, x19
	bl	_ff_amf_write_number
	b	LBB0_17
LBB0_12:
	ldrb	w8, [x22]
	mov	x0, x19
	cmp	w8, #48
	b.ne	LBB0_16
; %bb.13:
	bl	_ff_amf_write_object_end
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	mov	x1, x22
	bl	_ff_amf_write_string
	b	LBB0_17
LBB0_15:
	mov	x0, x19
	bl	_ff_amf_write_null
	b	LBB0_17
LBB0_16:
	bl	_ff_amf_write_object_start
LBB0_17:
	mov	w0, #0
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_14-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid AMF parameter: %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rtmp_write_amf_data
.subsections_via_symbols
