	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_dc_data_ex
_get_dc_data_ex:                        ## @get_dc_data_ex
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_GetObjectType
	movq	_OBJ_DC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_WindowFromDC
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	%rax, %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	_WGL_DC_OBJ_DC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_5
LBB0_3:
	movq	_OBJ_MEMDC@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
LBB0_5:
	movq	_dc_data_cs@GOTPCREL(%rip), %rdi
	callq	_EnterCriticalSection
	movq	_dc_data_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, 56(%rbx)
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_8:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	%rax, %rbx
	movq	%r15, 56(%rax)
	movl	%r12d, 48(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movl	%r14d, %edi
	callq	_IntGetIcdData
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movl	%r14d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%rax)
	movq	%rax, %rdx
	movq	%rax, 16(%rbx)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	(%rax), %rsi
	jmp	LBB0_17
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	$0, 16(%rbx)
	xorl	%edx, %edx
LBB0_16:
	xorl	%esi, %esi
LBB0_17:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %ecx
	callq	_TRACE
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_sw_DescribePixelFormat
	movl	%eax, 8(%rbx)
	movq	_dc_data_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	%rbx, (%rcx)
LBB0_18:
	movq	_dc_data_cs@GOTPCREL(%rip), %rdi
	callq	_LeaveCriticalSection
LBB0_19:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJ_DC,8,3                     ## @OBJ_DC
	.comm	_WGL_DC_OBJ_DC,4,2              ## @WGL_DC_OBJ_DC
	.comm	_OBJ_MEMDC,8,3                  ## @OBJ_MEMDC
	.comm	_dc_data_cs,4,2                 ## @dc_data_cs
	.comm	_dc_data_list,8,3               ## @dc_data_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICD %S has %u formats for HDC %x.\n"

	.no_dead_strip	_get_dc_data_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_dc_data_ex
_get_dc_data_ex:                        ; @get_dc_data_ex
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_GetObjectType
Lloh0:
	adrp	x8, _OBJ_DC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJ_DC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_WindowFromDC
	cbz	x0, LBB0_12
; %bb.2:
	mov	x24, x0
Lloh3:
	adrp	x8, _WGL_DC_OBJ_DC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WGL_DC_OBJ_DC@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _OBJ_MEMDC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OBJ_MEMDC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.4:
	mov	w26, #0
	mov	w24, w19
LBB0_5:
Lloh9:
	adrp	x0, _dc_data_cs@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dc_data_cs@GOTPAGEOFF]
	bl	_EnterCriticalSection
Lloh11:
	adrp	x25, _dc_data_list@GOTPAGE
Lloh12:
	ldr	x25, [x25, _dc_data_list@GOTPAGEOFF]
	ldr	x20, [x25]
	cbz	x20, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #56]
	cmp	x8, x24
	b.eq	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20]
	cbnz	x20, LBB0_6
LBB0_8:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #64
	bl	_HeapAlloc
	mov	x20, x0
	cbz	x0, LBB0_16
; %bb.9:
	str	x24, [x20, #56]
	str	w26, [x20, #48]
	stp	xzr, xzr, [x20, #32]
	mov	x0, x19
	bl	_IntGetIcdData
	str	x0, [x20, #24]
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x8, [x0, #8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	blr	x8
	mov	x2, x0
	str	x0, [x20, #16]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_14
; %bb.11:
	ldr	x1, [x8]
	b	LBB0_15
LBB0_12:
	mov	x20, #0
	b	LBB0_17
LBB0_13:
	mov	x2, #0
	mov	x1, #0
	str	xzr, [x20, #16]
	b	LBB0_15
LBB0_14:
	mov	x1, #0
LBB0_15:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_TRACE
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_sw_DescribePixelFormat
	str	w0, [x20, #8]
	ldr	x8, [x25]
	str	x8, [x20]
	str	x20, [x25]
LBB0_16:
Lloh15:
	adrp	x0, _dc_data_cs@GOTPAGE
Lloh16:
	ldr	x0, [x0, _dc_data_cs@GOTPAGEOFF]
	bl	_LeaveCriticalSection
LBB0_17:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJ_DC,8,3                     ; @OBJ_DC
	.comm	_WGL_DC_OBJ_DC,4,2              ; @WGL_DC_OBJ_DC
	.comm	_OBJ_MEMDC,8,3                  ; @OBJ_MEMDC
	.comm	_dc_data_cs,4,2                 ; @dc_data_cs
	.comm	_dc_data_list,8,3               ; @dc_data_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICD %S has %u formats for HDC %x.\n"

	.no_dead_strip	_get_dc_data_ex
.subsections_via_symbols
