	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdp_out_general_caps
_rdp_out_general_caps:                  ## @rdp_out_general_caps
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_RDP_CAPSET_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_uint16_le
	movq	_RDP_CAPLEN_GENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_out_uint16_le
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint16
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint16
	movq	_g_rdp_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_RDP_V5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$1037, %esi                     ## imm = 0x40D
	cmovll	%r14d, %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	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_uint16
	movl	%ebx, %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_out_uint16                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDP_CAPSET_GENERAL,4,2         ## @RDP_CAPSET_GENERAL
	.comm	_RDP_CAPLEN_GENERAL,4,2         ## @RDP_CAPLEN_GENERAL
	.comm	_g_rdp_version,8,3              ## @g_rdp_version
	.comm	_RDP_V5,8,3                     ## @RDP_V5
	.no_dead_strip	_rdp_out_general_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdp_out_general_caps
_rdp_out_general_caps:                  ; @rdp_out_general_caps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _RDP_CAPSET_GENERAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDP_CAPSET_GENERAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_out_uint16_le
Lloh3:
	adrp	x8, _RDP_CAPLEN_GENERAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDP_CAPLEN_GENERAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #1
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #3
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #512
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
Lloh6:
	adrp	x8, _g_rdp_version@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_rdp_version@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _RDP_V5@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RDP_V5@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1037
	csel	w1, wzr, w8, lt
	mov	x0, x19
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_out_uint16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDP_CAPSET_GENERAL,4,2         ; @RDP_CAPSET_GENERAL
	.comm	_RDP_CAPLEN_GENERAL,4,2         ; @RDP_CAPLEN_GENERAL
	.comm	_g_rdp_version,8,3              ; @g_rdp_version
	.comm	_RDP_V5,8,3                     ; @RDP_V5
	.no_dead_strip	_rdp_out_general_caps
.subsections_via_symbols
