	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_get_hdr_visual_confirm_color ## -- Begin function dcn10_get_hdr_visual_confirm_color
	.p2align	4, 0x90
_dcn10_get_hdr_visual_confirm_color:    ## @dcn10_get_hdr_visual_confirm_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_TG_COLOR_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rcx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_1
## %bb.2:
	movl	8(%rcx), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_10
## %bb.4:
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movq	_TRANSFER_FUNCTION_PQ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_11
## %bb.5:
	movl	%eax, (%rsi)
	popq	%rbp
	retq
LBB0_6:
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movq	_TRANSFER_FUNCTION_PQ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_8
## %bb.7:
	movl	%eax, 4(%rsi)
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%rsi)
	movl	%ecx, 4(%rsi)
	movl	%ecx, 8(%rsi)
LBB0_11:
	popq	%rbp
	retq
LBB0_8:
	movq	_TRANSFER_FUNCTION_GAMMA22@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_11
## %bb.9:
	movl	%eax, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TG_COLOR_VALUE,4,2         ## @MAX_TG_COLOR_VALUE
	.comm	_TRANSFER_FUNCTION_PQ,4,2       ## @TRANSFER_FUNCTION_PQ
	.comm	_TRANSFER_FUNCTION_GAMMA22,4,2  ## @TRANSFER_FUNCTION_GAMMA22
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dcn10_get_hdr_visual_confirm_color ; -- Begin function dcn10_get_hdr_visual_confirm_color
	.p2align	2
_dcn10_get_hdr_visual_confirm_color:    ; @dcn10_get_hdr_visual_confirm_color
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_TG_COLOR_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_TG_COLOR_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x0
	ldr	x0, [x0, #16]
	cbnz	x0, LBB0_1
; %bb.2:
	ldr	w10, [x9, #8]
	cmp	w10, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_8
; %bb.4:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TRANSFER_FUNCTION_PQ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TRANSFER_FUNCTION_PQ@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.5:
	str	w8, [x1]
	ret
LBB0_6:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TRANSFER_FUNCTION_PQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TRANSFER_FUNCTION_PQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_9
; %bb.7:
	str	w8, [x1, #4]
	ret
LBB0_8:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w8, w8, [x1]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x10, _TRANSFER_FUNCTION_GAMMA22@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TRANSFER_FUNCTION_GAMMA22@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
LBB0_10:
	str	w8, [x1, #8]
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TG_COLOR_VALUE,4,2         ; @MAX_TG_COLOR_VALUE
	.comm	_TRANSFER_FUNCTION_PQ,4,2       ; @TRANSFER_FUNCTION_PQ
	.comm	_TRANSFER_FUNCTION_GAMMA22,4,2  ; @TRANSFER_FUNCTION_GAMMA22
.subsections_via_symbols
