	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_hdmi_compute_drm_infoframe
_intel_hdmi_compute_drm_infoframe:      ## @intel_hdmi_compute_drm_infoframe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movl	(%rdi), %edi
	callq	_to_i915
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_INTEL_GEN
	cmpl	$9, %eax
	jg	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_GEMINILAKE
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movl	$1, %eax
	cmpl	$0, 8(%r12)
	je	LBB0_8
## %bb.4:
	cmpl	$0, (%r14)
	je	LBB0_8
## %bb.5:
	leaq	4(%r12), %r15
	movq	_HDMI_INFOFRAME_TYPE_DRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_intel_hdmi_infoframe_enable
	orl	%eax, (%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_drm_hdmi_infoframe_set_hdr_metadata
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_hdmi_drm_infoframe_check
	movl	%eax, %edi
	callq	_WARN_ON
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	sete	%al
	jmp	LBB0_8
LBB0_2:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_INFOFRAME_TYPE_DRM,4,2    ## @HDMI_INFOFRAME_TYPE_DRM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't set HDR metadata in infoframe\n"

	.no_dead_strip	_intel_hdmi_compute_drm_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_hdmi_compute_drm_infoframe
_intel_hdmi_compute_drm_infoframe:      ; @intel_hdmi_compute_drm_infoframe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	w0, [x0]
	bl	_to_i915
	mov	x21, x0
	bl	_INTEL_GEN
	cmp	w0, #9
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_IS_GEMINILAKE
	cbz	x0, LBB0_6
LBB0_2:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	add	x21, x20, #4
Lloh0:
	adrp	x8, _HDMI_INFOFRAME_TYPE_DRM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_DRM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_intel_hdmi_infoframe_enable
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
	mov	x0, x21
	mov	x1, x19
	bl	_drm_hdmi_infoframe_set_hdr_metadata
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x0, x21
	bl	_hdmi_drm_infoframe_check
	bl	_WARN_ON
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_TYPE_DRM,4,2    ; @HDMI_INFOFRAME_TYPE_DRM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't set HDR metadata in infoframe\n"

	.no_dead_strip	_intel_hdmi_compute_drm_infoframe
.subsections_via_symbols
