	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_status
_write_status:                          ## @write_status
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -216(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -208(%rbp)
	movq	$0, -192(%rbp)
	movq	_RTMP_SYSTEM_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTMP_PT_INVOKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RTMP_PKTDATA_DEFAULT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-208(%rbp), %rdi
	xorl	%ecx, %ecx
	callq	_ff_rtmp_packet_create
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-200(%rbp), %rax
	movq	%rax, -184(%rbp)
	movl	16(%r12), %eax
	movl	%eax, -192(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-184(%rbp), %r12
	movq	%r12, %rdi
	callq	_ff_amf_write_string
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ff_amf_write_number
	movq	%r12, %rdi
	callq	_ff_amf_write_null
	movq	%r12, %rdi
	callq	_ff_amf_write_object_start
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_ff_amf_write_field_name
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_ff_amf_write_string
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_ff_amf_write_field_name
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ff_amf_write_string
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_ff_amf_write_field_name
	leaq	L_.str.6(%rip), %rdx
	leaq	-176(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	movq	-216(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ff_amf_write_string
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_ff_amf_write_field_name
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ff_amf_write_string
	movq	%r12, %rdi
	callq	_ff_amf_write_object_end
	movq	-184(%rbp), %rax
	subq	-200(%rbp), %rax
	shrq	$2, %rax
	movl	%eax, -208(%rbp)
	movl	20(%r15), %edi
	movl	16(%r15), %edx
	movq	(%r15), %r8
	movq	8(%r15), %rcx
	addq	$4, %rcx
	addq	$4, %r8
	leaq	-208(%rbp), %r14
	movq	%r14, %rsi
	callq	_ff_rtmp_packet_write
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ff_rtmp_packet_destroy
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	callq	_av_log
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMP_SYSTEM_CHANNEL,4,2        ## @RTMP_SYSTEM_CHANNEL
	.comm	_RTMP_PT_INVOKE,4,2             ## @RTMP_PT_INVOKE
	.comm	_RTMP_PKTDATA_DEFAULT_SIZE,4,2  ## @RTMP_PKTDATA_DEFAULT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create response packet\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"level"

L_.str.3:                               ## @.str.3
	.asciz	"status"

L_.str.4:                               ## @.str.4
	.asciz	"code"

L_.str.5:                               ## @.str.5
	.asciz	"description"

L_.str.6:                               ## @.str.6
	.asciz	"%s is now published"

L_.str.7:                               ## @.str.7
	.asciz	"details"

	.no_dead_strip	_write_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_status
_write_status:                          ; @write_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x24, [x0]
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
Lloh3:
	adrp	x8, _RTMP_SYSTEM_CHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTMP_SYSTEM_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _RTMP_PT_INVOKE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTMP_PT_INVOKE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _RTMP_PKTDATA_DEFAULT_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RTMP_PKTDATA_DEFAULT_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	add	x0, sp, #16
	mov	w3, #0
	bl	_ff_rtmp_packet_create
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [sp, #24]
	str	x8, [sp, #8]
	ldr	w8, [x22, #16]
	str	w8, [sp, #32]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_string
	add	x0, sp, #8
	mov	w1, #0
	bl	_ff_amf_write_number
	add	x0, sp, #8
	bl	_ff_amf_write_null
	add	x0, sp, #8
	bl	_ff_amf_write_object_start
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_field_name
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_string
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_field_name
	add	x0, sp, #8
	mov	x1, x20
	bl	_ff_amf_write_string
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_field_name
Lloh22:
	adrp	x2, l_.str.6@PAGE
Lloh23:
	add	x2, x2, l_.str.6@PAGEOFF
	add	x0, sp, #40
	mov	w1, #128
	mov	x3, x19
	bl	_snprintf
	add	x0, sp, #8
	add	x1, sp, #40
	bl	_ff_amf_write_string
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x0, sp, #8
	bl	_ff_amf_write_field_name
	add	x0, sp, #8
	mov	x1, x19
	bl	_ff_amf_write_string
	add	x0, sp, #8
	bl	_ff_amf_write_object_end
	ldr	x8, [sp, #8]
	ldr	x9, [sp, #24]
	sub	x8, x8, x9
	lsr	x8, x8, #2
	str	w8, [sp, #16]
	ldp	w2, w0, [x24, #16]
	ldp	x9, x8, [x24]
	add	x3, x8, #4
	add	x4, x9, #4
	add	x1, sp, #16
	bl	_ff_rtmp_packet_write
	mov	x23, x0
	add	x0, sp, #16
	bl	_ff_rtmp_packet_destroy
	b	LBB0_3
LBB0_2:
	mov	x23, x0
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x23
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMP_SYSTEM_CHANNEL,4,2        ; @RTMP_SYSTEM_CHANNEL
	.comm	_RTMP_PT_INVOKE,4,2             ; @RTMP_PT_INVOKE
	.comm	_RTMP_PKTDATA_DEFAULT_SIZE,4,2  ; @RTMP_PKTDATA_DEFAULT_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create response packet\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"level"

l_.str.3:                               ; @.str.3
	.asciz	"status"

l_.str.4:                               ; @.str.4
	.asciz	"code"

l_.str.5:                               ; @.str.5
	.asciz	"description"

l_.str.6:                               ; @.str.6
	.asciz	"%s is now published"

l_.str.7:                               ; @.str.7
	.asciz	"details"

	.no_dead_strip	_write_status
.subsections_via_symbols
