	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iso_send_connection_request
_iso_send_connection_request:           ## @iso_send_connection_request
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_strlen
	movl	%eax, %r12d
	movq	_g_rdp_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RDP_V5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%al
	movq	_g_negotiate_rdp_protocol@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %r14d
	leal	(%r12,%r14,8), %r13d
	addl	$30, %r13d
	movl	%r13d, %edi
	callq	_tcp_init
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	$3, %esi
	callq	_out_uint8
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint8
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_out_uint16_be
	leal	(%r12,%r14,8), %esi
	addl	$25, %esi
	movl	%ebx, %edi
	callq	_out_uint8
	movq	_ISO_PDU_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint8
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint16
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint16
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint8
	leaq	L_.str(%rip), %r12
	movq	%r12, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_out_uint8p
	movq	%r15, %rdi
	callq	_strlen
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_out_uint8p
	movl	%ebx, %edi
	movl	$13, %esi
	callq	_out_uint8
	movl	%ebx, %edi
	movl	$10, %esi
	callq	_out_uint8
	movq	_g_rdp_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RDP_V5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_3
## %bb.1:
	movq	_g_negotiate_rdp_protocol@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_RDP_NEG_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint8
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint8
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_out_uint16
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_out_uint32
LBB0_3:
	movl	%ebx, %edi
	callq	_s_mark_end
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tcp_send                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_g_rdp_version,8,3              ## @g_rdp_version
	.comm	_RDP_V5,8,3                     ## @RDP_V5
	.comm	_g_negotiate_rdp_protocol,8,3   ## @g_negotiate_rdp_protocol
	.comm	_ISO_PDU_CR,4,2                 ## @ISO_PDU_CR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cookie: mstshash="

	.comm	_RDP_NEG_REQ,4,2                ## @RDP_NEG_REQ
	.no_dead_strip	_iso_send_connection_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iso_send_connection_request
_iso_send_connection_request:           ; @iso_send_connection_request
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_strlen
Lloh0:
	adrp	x24, _g_rdp_version@GOTPAGE
Lloh1:
	ldr	x24, [x24, _g_rdp_version@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh2:
	adrp	x25, _RDP_V5@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RDP_V5@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh4:
	adrp	x23, _g_negotiate_rdp_protocol@GOTPAGE
Lloh5:
	ldr	x23, [x23, _g_negotiate_rdp_protocol@GOTPAGEOFF]
	ldr	x10, [x23]
	cmp	x10, #0
	ccmp	x8, x9, #8, ne
	mov	w8, #30
	mov	w9, #38
	csel	w8, w9, w8, ge
	add	w22, w8, w0
	mov	x0, x22
	bl	_tcp_init
	mov	x20, x0
	mov	w1, #3
	bl	_out_uint8
	mov	x0, x20
	mov	w1, #0
	bl	_out_uint8
	mov	x0, x20
	mov	x1, x22
	bl	_out_uint16_be
	sub	w1, w22, #5
	mov	x0, x20
	bl	_out_uint8
Lloh6:
	adrp	x8, _ISO_PDU_CR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ISO_PDU_CR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_out_uint8
	mov	x0, x20
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x20
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x20
	mov	w1, #0
	bl	_out_uint8
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_out_uint8p
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_out_uint8p
	mov	x0, x20
	mov	w1, #13
	bl	_out_uint8
	mov	x0, x20
	mov	w1, #10
	bl	_out_uint8
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _RDP_NEG_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RDP_NEG_REQ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_out_uint8
	mov	x0, x20
	mov	w1, #0
	bl	_out_uint8
	mov	x0, x20
	mov	w1, #8
	bl	_out_uint16
	mov	x0, x20
	mov	x1, x19
	bl	_out_uint32
LBB0_3:
	mov	x0, x20
	bl	_s_mark_end
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tcp_send
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_g_rdp_version,8,3              ; @g_rdp_version
	.comm	_RDP_V5,8,3                     ; @RDP_V5
	.comm	_g_negotiate_rdp_protocol,8,3   ; @g_negotiate_rdp_protocol
	.comm	_ISO_PDU_CR,4,2                 ; @ISO_PDU_CR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cookie: mstshash="

	.comm	_RDP_NEG_REQ,4,2                ; @RDP_NEG_REQ
	.no_dead_strip	_iso_send_connection_request
.subsections_via_symbols
