	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_protocol_select
_send_protocol_select:                  ## @send_protocol_select
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_CS_PKT_PROTOCOL_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_start_command_packet
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	callq	_insert_command_prefixes
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_le32
	movq	%rbx, %rdi
	movl	$10000000, %esi                 ## imm = 0x989680
	callq	_bytestream_put_le32
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_bytestream_put_le32
	movq	_LOCAL_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	movzbl	%ch, %eax
	movl	%eax, %r9d
	movzbl	%cl, %r10d
	shrl	$24, %ecx
	shrl	$16, %edx
	movzbl	%dl, %r8d
	movq	_LOCAL_PORT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %r11
	leaq	L_.str(%rip), %rdx
	leaq	-288(%rbp), %r14
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mms_put_utf16
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_send_command_packet
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CS_PKT_PROTOCOL_SELECT,4,2     ## @CS_PKT_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\\\%d.%d.%d.%d\\%s\\%d"

	.comm	_LOCAL_ADDRESS,4,2              ## @LOCAL_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"TCP"

	.comm	_LOCAL_PORT,4,2                 ## @LOCAL_PORT
	.no_dead_strip	_send_protocol_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_protocol_select
_send_protocol_select:                  ; @send_protocol_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
Lloh3:
	adrp	x8, _CS_PKT_PROTOCOL_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS_PKT_PROTOCOL_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_start_command_packet
	mov	x0, x19
	mov	w1, #0
	mov	w2, #-1
	bl	_insert_command_prefixes
	mov	x0, x19
	mov	w1, #0
	bl	_bytestream_put_le32
	mov	x0, x19
	mov	w1, #38528
	movk	w1, #152, lsl #16
	bl	_bytestream_put_le32
	mov	x0, x19
	mov	w1, #2
	bl	_bytestream_put_le32
Lloh6:
	adrp	x8, _LOCAL_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOCAL_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsr	w3, w8, #24
	ubfx	w4, w8, #16, #8
	ubfx	w5, w8, #8, #8
	and	w6, w8, #0xff
Lloh9:
	adrp	x8, _LOCAL_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOCAL_PORT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
Lloh14:
	adrp	x7, l_.str.1@PAGE
Lloh15:
	add	x7, x7, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #256
	bl	_snprintf
	add	x1, sp, #8
	mov	x0, x19
	bl	_mms_put_utf16
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_send_command_packet
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CS_PKT_PROTOCOL_SELECT,4,2     ; @CS_PKT_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\\\%d.%d.%d.%d\\%s\\%d"

	.comm	_LOCAL_ADDRESS,4,2              ; @LOCAL_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"TCP"

	.comm	_LOCAL_PORT,4,2                 ; @LOCAL_PORT
	.no_dead_strip	_send_protocol_select
.subsections_via_symbols
