	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_infoframe_set_hdr_metadata ## -- Begin function drm_hdmi_infoframe_set_hdr_metadata
	.p2align	4, 0x90
_drm_hdmi_infoframe_set_hdr_metadata:   ## @drm_hdmi_infoframe_set_hdr_metadata
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.5:
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movq	%rdi, %r14
	movl	28(%r15), %edi
	movl	(%rax), %esi
	callq	_is_eotf_supported
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_hdmi_drm_infoframe_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movl	28(%r15), %eax
	movl	%eax, 28(%r14)
	movl	24(%r15), %eax
	movl	%eax, 24(%r14)
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	xorl	%edi, %edi
	callq	_BUILD_BUG_ON
	leaq	20(%r14), %rdi
	leaq	20(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	16(%r14), %rdi
	leaq	16(%r15), %rsi
	movl	$4, %edx
	callq	_memcpy
	movups	(%r15), %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EOTF Not Supported\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_infoframe_set_hdr_metadata ; -- Begin function drm_hdmi_infoframe_set_hdr_metadata
	.p2align	2
_drm_hdmi_infoframe_set_hdr_metadata:   ; @drm_hdmi_infoframe_set_hdr_metadata
	.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
	cbz	x0, LBB0_8
; %bb.1:
	cbz	x1, LBB0_8
; %bb.2:
	ldr	x9, [x1]
	cbz	x9, LBB0_8
; %bb.3:
	ldr	x8, [x1, #8]
	ldr	x20, [x9]
	cmp	x20, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_8
; %bb.4:
	mov	x19, x0
	ldr	w0, [x20, #28]
	ldr	w1, [x8]
	bl	_is_eotf_supported
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_hdmi_drm_infoframe_init
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	d0, [x20, #24]
	str	d0, [x19, #24]
	mov	w0, #0
	bl	_BUILD_BUG_ON
	mov	w0, #0
	bl	_BUILD_BUG_ON
	add	x0, x19, #20
	add	x1, x20, #20
	mov	w2, #4
	bl	_memcpy
	add	x0, x19, #16
	add	x1, x20, #16
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	ldr	q0, [x20]
	str	q0, [x19]
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EOTF Not Supported\n"

.subsections_via_symbols
