	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_startup_packet
_send_startup_packet:                   ## @send_startup_packet
	.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	%rbx
	subq	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	8(%rdi), %rbx
	movq	(%rdi), %r8
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	leaq	-288(%rbp), %r15
	movq	%r15, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	movq	_CS_PKT_INITIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_start_command_packet
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$262155, %edx                   ## imm = 0x4000B
	callq	_insert_command_prefixes
	movq	%rbx, %rdi
	movl	$196636, %esi                   ## imm = 0x3001C
	callq	_bytestream_put_le32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mms_put_utf16
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_send_command_packet
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NSPlayer/7.0.0.1956; {%s}; Host: %s"

L_.str.1:                               ## @.str.1
	.asciz	"7E667F5D-A661-495E-A512-F55686DDA178"

	.comm	_CS_PKT_INITIAL,4,2             ## @CS_PKT_INITIAL
	.no_dead_strip	_send_startup_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_startup_packet
_send_startup_packet:                   ; @send_startup_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x20, x0
	ldr	x4, [x20], #8
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #256
	bl	_snprintf
Lloh7:
	adrp	x8, _CS_PKT_INITIAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CS_PKT_INITIAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_start_command_packet
	mov	x0, x20
	mov	w1, #0
	mov	w2, #11
	movk	w2, #4, lsl #16
	bl	_insert_command_prefixes
	mov	x0, x20
	mov	w1, #28
	movk	w1, #3, lsl #16
	bl	_bytestream_put_le32
	add	x1, sp, #8
	mov	x0, x20
	bl	_mms_put_utf16
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_send_command_packet
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NSPlayer/7.0.0.1956; {%s}; Host: %s"

l_.str.1:                               ; @.str.1
	.asciz	"7E667F5D-A661-495E-A512-F55686DDA178"

	.comm	_CS_PKT_INITIAL,4,2             ; @CS_PKT_INITIAL
	.no_dead_strip	_send_startup_packet
.subsections_via_symbols
