	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_color_depth_from_display_info
_convert_color_depth_from_display_info: ## @convert_color_depth_from_display_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	movl	$8, %eax
	cmovnel	%ecx, %eax
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
LBB0_2:
	movl	(%rsi), %esi
	movl	%eax, %edi
	callq	_min
	andl	$-2, %eax
LBB0_3:
	cmpl	$16, %eax
	ja	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.convert_color_depth_from_display_info(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_COLOR_DEPTH_UNDEFINED@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_DEPTH_888,4,2            ## @COLOR_DEPTH_888
	.comm	_COLOR_DEPTH_666,4,2            ## @COLOR_DEPTH_666
	.comm	_COLOR_DEPTH_101010,4,2         ## @COLOR_DEPTH_101010
	.comm	_COLOR_DEPTH_121212,4,2         ## @COLOR_DEPTH_121212
	.comm	_COLOR_DEPTH_141414,4,2         ## @COLOR_DEPTH_141414
	.comm	_COLOR_DEPTH_161616,4,2         ## @COLOR_DEPTH_161616
	.comm	_COLOR_DEPTH_UNDEFINED,4,2      ## @COLOR_DEPTH_UNDEFINED
	.no_dead_strip	_convert_color_depth_from_display_info
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.convert_color_depth_from_display_info
l_switch.table.convert_color_depth_from_display_info:
	.quad	_COLOR_DEPTH_888
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_666
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_888
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_101010
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_121212
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_141414
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_161616

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_color_depth_from_display_info
_convert_color_depth_from_display_info: ; @convert_color_depth_from_display_info
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldr	w9, [x0, #8]
	mov	w10, #8
	cmp	w9, #0
	csel	w0, w10, w9, eq
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	x1, [x8]
	cbz	x1, LBB0_3
LBB0_2:
	ldr	w1, [x1]
	bl	_min
	and	w0, w0, #0xfffffffe
LBB0_3:
	cmp	w0, #16
	b.hi	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, l_switch.table.convert_color_depth_from_display_info@PAGE
Lloh1:
	add	x8, x8, l_switch.table.convert_color_depth_from_display_info@PAGEOFF
	ldr	x8, [x8, w0, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _COLOR_DEPTH_UNDEFINED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _COLOR_DEPTH_UNDEFINED@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_DEPTH_888,4,2            ; @COLOR_DEPTH_888
	.comm	_COLOR_DEPTH_666,4,2            ; @COLOR_DEPTH_666
	.comm	_COLOR_DEPTH_101010,4,2         ; @COLOR_DEPTH_101010
	.comm	_COLOR_DEPTH_121212,4,2         ; @COLOR_DEPTH_121212
	.comm	_COLOR_DEPTH_141414,4,2         ; @COLOR_DEPTH_141414
	.comm	_COLOR_DEPTH_161616,4,2         ; @COLOR_DEPTH_161616
	.comm	_COLOR_DEPTH_UNDEFINED,4,2      ; @COLOR_DEPTH_UNDEFINED
	.no_dead_strip	_convert_color_depth_from_display_info
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.convert_color_depth_from_display_info
l_switch.table.convert_color_depth_from_display_info:
	.quad	_COLOR_DEPTH_888
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_666
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_888
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_101010
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_121212
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_141414
	.quad	_COLOR_DEPTH_UNDEFINED
	.quad	_COLOR_DEPTH_161616

.subsections_via_symbols
