	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdp_out_bmpcache2_caps
_rdp_out_bmpcache2_caps:                ## @rdp_out_bmpcache2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_RDP_CAPSET_BMPCACHE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_out_uint16_le
	movq	_RDP_CAPLEN_BMPCACHE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	movq	_g_bitmap_cache_persist_enable@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	cmpq	$0, (%rax)
	setne	%sil
	addl	%esi, %esi
	movl	%ebx, %edi
	callq	_out_uint16_le
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_out_uint16_be
	movq	_BMPCACHE2_C0_CELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint32_le
	movq	_BMPCACHE2_C1_CELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_out_uint32_le
	movl	$2, %edi
	callq	_pstcache_init
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_BMPCACHE2_C2_CELLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_BMPCACHE2_NUM_PSTCELLS@GOTPCREL(%rip), %rax
	movq	_BMPCACHE2_FLAG_PERSIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
LBB0_3:
	movl	%ebx, %edi
	callq	_out_uint32_le
	movl	%ebx, %edi
	movl	$20, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_out_uint8s                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDP_CAPSET_BMPCACHE2,4,2       ## @RDP_CAPSET_BMPCACHE2
	.comm	_RDP_CAPLEN_BMPCACHE2,4,2       ## @RDP_CAPLEN_BMPCACHE2
	.comm	_g_bitmap_cache_persist_enable,8,3 ## @g_bitmap_cache_persist_enable
	.comm	_BMPCACHE2_C0_CELLS,4,2         ## @BMPCACHE2_C0_CELLS
	.comm	_BMPCACHE2_C1_CELLS,4,2         ## @BMPCACHE2_C1_CELLS
	.comm	_BMPCACHE2_NUM_PSTCELLS,4,2     ## @BMPCACHE2_NUM_PSTCELLS
	.comm	_BMPCACHE2_FLAG_PERSIST,4,2     ## @BMPCACHE2_FLAG_PERSIST
	.comm	_BMPCACHE2_C2_CELLS,4,2         ## @BMPCACHE2_C2_CELLS
	.no_dead_strip	_rdp_out_bmpcache2_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_bmpcache2_caps
_rdp_out_bmpcache2_caps:                ; @rdp_out_bmpcache2_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_BMPCACHE2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDP_CAPSET_BMPCACHE2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_out_uint16_le
Lloh3:
	adrp	x8, _RDP_CAPLEN_BMPCACHE2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDP_CAPLEN_BMPCACHE2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint16_le
Lloh6:
	adrp	x8, _g_bitmap_cache_persist_enable@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_bitmap_cache_persist_enable@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	lsl	w1, w8, #1
	mov	x0, x19
	bl	_out_uint16_le
	mov	x0, x19
	mov	w1, #3
	bl	_out_uint16_be
Lloh9:
	adrp	x8, _BMPCACHE2_C0_CELLS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMPCACHE2_C0_CELLS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint32_le
Lloh12:
	adrp	x8, _BMPCACHE2_C1_CELLS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMPCACHE2_C1_CELLS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_out_uint32_le
	mov	w0, #2
	bl	_pstcache_init
Lloh15:
	adrp	x8, _BMPCACHE2_C2_CELLS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BMPCACHE2_C2_CELLS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _BMPCACHE2_NUM_PSTCELLS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BMPCACHE2_NUM_PSTCELLS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _BMPCACHE2_FLAG_PERSIST@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BMPCACHE2_FLAG_PERSIST@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	x0, #0
	csel	w1, w8, w9, eq
	mov	x0, x19
	bl	_out_uint32_le
	mov	x0, x19
	mov	w1, #20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_out_uint8s
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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_BMPCACHE2,4,2       ; @RDP_CAPSET_BMPCACHE2
	.comm	_RDP_CAPLEN_BMPCACHE2,4,2       ; @RDP_CAPLEN_BMPCACHE2
	.comm	_g_bitmap_cache_persist_enable,8,3 ; @g_bitmap_cache_persist_enable
	.comm	_BMPCACHE2_C0_CELLS,4,2         ; @BMPCACHE2_C0_CELLS
	.comm	_BMPCACHE2_C1_CELLS,4,2         ; @BMPCACHE2_C1_CELLS
	.comm	_BMPCACHE2_NUM_PSTCELLS,4,2     ; @BMPCACHE2_NUM_PSTCELLS
	.comm	_BMPCACHE2_FLAG_PERSIST,4,2     ; @BMPCACHE2_FLAG_PERSIST
	.comm	_BMPCACHE2_C2_CELLS,4,2         ; @BMPCACHE2_C2_CELLS
	.no_dead_strip	_rdp_out_bmpcache2_caps
.subsections_via_symbols
