	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdp_out_order_caps
_rdp_out_order_caps:                    ## @rdp_out_order_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-176(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -176(%rbp)
	movl	$1, -168(%rbp)
	movq	_g_bitmap_cache@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	$0, (%rcx)
	setne	%dl
	movl	%edx, -164(%rbp)
	movl	$0, -160(%rbp)
	movq	%rax, -144(%rbp)
	movl	$1, -136(%rbp)
	movq	_g_desktop_save@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	cmpq	$0, (%r12)
	setne	%cl
	movl	%ecx, -132(%rbp)
	movq	%rax, -124(%rbp)
	movq	_g_polygon_ellipse_orders@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	movl	%ecx, -96(%rbp)
	movl	%ecx, -92(%rbp)
	movl	$1, -88(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%ecx, -72(%rbp)
	movl	$1, -68(%rbp)
	movq	_RDP_CAPSET_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	movq	_RDP_CAPLEN_ORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$20, %esi
	callq	_out_uint8s
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$20, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint16
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$327, %esi                      ## imm = 0x147
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$42, %esi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_out_uint8p
	movl	%ebx, %edi
	movl	$1697, %esi                     ## imm = 0x6A1
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$6, %esi
	callq	_out_uint8s
	movq	(%r12), %rax
	movq	_False@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$230400, %esi                   ## imm = 0x38400
	cmovel	%r15d, %esi
	movl	%ebx, %edi
	callq	_out_uint32_le
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_out_uint32
	movl	%ebx, %edi
	movl	$1252, %esi                     ## imm = 0x4E4
	callq	_out_uint32_le
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_g_bitmap_cache,8,3             ## @g_bitmap_cache
	.comm	_g_desktop_save,8,3             ## @g_desktop_save
	.comm	_g_polygon_ellipse_orders,8,3   ## @g_polygon_ellipse_orders
	.comm	_RDP_CAPSET_ORDER,4,2           ## @RDP_CAPSET_ORDER
	.comm	_RDP_CAPLEN_ORDER,4,2           ## @RDP_CAPLEN_ORDER
	.comm	_False,8,3                      ## @False
	.no_dead_strip	_rdp_out_order_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_order_caps
_rdp_out_order_caps:                    ; @rdp_out_order_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	movi.2s	v0, #1
	str	d0, [sp, #8]
Lloh3:
	adrp	x8, _g_bitmap_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_bitmap_cache@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	stp	w9, w8, [sp, #16]
	str	wzr, [sp, #24]
	str	d0, [sp, #40]
Lloh6:
	adrp	x20, _g_desktop_save@GOTPAGE
Lloh7:
	ldr	x20, [x20, _g_desktop_save@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w8, ne
	stp	w9, w8, [sp, #48]
	stur	d0, [sp, #60]
Lloh8:
	adrp	x8, _g_polygon_ellipse_orders@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_polygon_ellipse_orders@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	stp	w8, w8, [sp, #88]
	str	w9, [sp, #96]
	stp	w8, w8, [sp, #108]
	str	w9, [sp, #116]
Lloh11:
	adrp	x8, _RDP_CAPSET_ORDER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RDP_CAPSET_ORDER@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint16_le
Lloh14:
	adrp	x8, _RDP_CAPLEN_ORDER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RDP_CAPLEN_ORDER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #20
	bl	_out_uint8s
	mov	x0, x19
	mov	w1, #1
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #20
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint16
	mov	x0, x19
	mov	w1, #1
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #327
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #42
	bl	_out_uint16_le
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #32
	bl	_out_uint8p
	mov	x0, x19
	mov	w1, #1697
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #6
	bl	_out_uint8s
	ldr	x8, [x20]
Lloh17:
	adrp	x9, _False@GOTPAGE
Lloh18:
	ldr	x9, [x9, _False@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #33792
	movk	w8, #3, lsl #16
	csel	w1, wzr, w8, eq
	mov	x0, x19
	bl	_out_uint32_le
	mov	x0, x19
	mov	w1, #0
	bl	_out_uint32
	mov	x0, x19
	mov	w1, #1252
	bl	_out_uint32_le
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_g_bitmap_cache,8,3             ; @g_bitmap_cache
	.comm	_g_desktop_save,8,3             ; @g_desktop_save
	.comm	_g_polygon_ellipse_orders,8,3   ; @g_polygon_ellipse_orders
	.comm	_RDP_CAPSET_ORDER,4,2           ; @RDP_CAPSET_ORDER
	.comm	_RDP_CAPLEN_ORDER,4,2           ; @RDP_CAPLEN_ORDER
	.comm	_False,8,3                      ; @False
	.no_dead_strip	_rdp_out_order_caps
.subsections_via_symbols
