	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_vendor_infoframe_from_display_mode ## -- Begin function drm_hdmi_vendor_infoframe_from_display_mode
	.p2align	4, 0x90
_drm_hdmi_vendor_infoframe_from_display_mode: ## @drm_hdmi_vendor_infoframe_from_display_mode
	.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
	setne	%cl
	testq	%rdx, %rdx
	setne	%al
	andb	%cl, %al
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	testb	%al, %al
	je	LBB0_8
## %bb.2:
	cmpl	$0, (%rsi)
	je	LBB0_8
## %bb.3:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_drm_match_hdmi_mode
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DRM_MODE_FLAG_3D_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	callq	_hdmi_vendor_infoframe_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	%r15, 8(%r14)
	movq	%rbx, %rdi
	callq	_s3d_structure_from_display_mode
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	testb	%al, %al
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ## @DRM_MODE_FLAG_3D_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_hdmi_vendor_infoframe_from_display_mode ; -- Begin function drm_hdmi_vendor_infoframe_from_display_mode
	.p2align	2
_drm_hdmi_vendor_infoframe_from_display_mode: ; @drm_hdmi_vendor_infoframe_from_display_mode
	.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
	cmp	x0, #0
	ccmp	x2, #0, #4, ne
	cset	w8, ne
	cbz	x1, LBB0_5
; %bb.1:
	tbz	w8, #0, LBB0_5
; %bb.2:
	ldr	w8, [x1]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x20, x2
	mov	x19, x0
	mov	x0, x2
	bl	_drm_match_hdmi_mode
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.4:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_3D_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_3D_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	mov	x0, x19
	bl	_hdmi_vendor_infoframe_init
	tbnz	w0, #31, LBB0_6
; %bb.8:
	str	x21, [x19, #8]
	mov	x0, x20
	bl	_s3d_structure_from_display_mode
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ; @DRM_MODE_FLAG_3D_MASK
.subsections_via_symbols
