	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3d_structure_from_display_mode
_s3d_structure_from_display_mode:       ## @s3d_structure_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
	movq	_DRM_MODE_FLAG_3D_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.s3d_structure_from_display_mode(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HDMI_3D_STRUCTURE_INVALID@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ## @DRM_MODE_FLAG_3D_MASK
	.comm	_HDMI_3D_STRUCTURE_FRAME_PACKING,4,2 ## @HDMI_3D_STRUCTURE_FRAME_PACKING
	.comm	_HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE,4,2 ## @HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE
	.comm	_HDMI_3D_STRUCTURE_LINE_ALTERNATIVE,4,2 ## @HDMI_3D_STRUCTURE_LINE_ALTERNATIVE
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL,4,2 ## @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL
	.comm	_HDMI_3D_STRUCTURE_L_DEPTH,4,2  ## @HDMI_3D_STRUCTURE_L_DEPTH
	.comm	_HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH,4,2 ## @HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH
	.comm	_HDMI_3D_STRUCTURE_TOP_AND_BOTTOM,4,2 ## @HDMI_3D_STRUCTURE_TOP_AND_BOTTOM
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,4,2 ## @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.comm	_HDMI_3D_STRUCTURE_INVALID,4,2  ## @HDMI_3D_STRUCTURE_INVALID
	.no_dead_strip	_s3d_structure_from_display_mode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.s3d_structure_from_display_mode
l_switch.table.s3d_structure_from_display_mode:
	.quad	_HDMI_3D_STRUCTURE_TOP_AND_BOTTOM
	.quad	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.quad	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL
	.quad	_HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH
	.quad	_HDMI_3D_STRUCTURE_L_DEPTH
	.quad	_HDMI_3D_STRUCTURE_LINE_ALTERNATIVE
	.quad	_HDMI_3D_STRUCTURE_FRAME_PACKING
	.quad	_HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3d_structure_from_display_mode
_s3d_structure_from_display_mode:       ; @s3d_structure_from_display_mode
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
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
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, l_switch.table.s3d_structure_from_display_mode@PAGE
Lloh4:
	add	x9, x9, l_switch.table.s3d_structure_from_display_mode@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh5:
	adrp	x8, _HDMI_3D_STRUCTURE_INVALID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDMI_3D_STRUCTURE_INVALID@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_3D_MASK,4,2      ; @DRM_MODE_FLAG_3D_MASK
	.comm	_HDMI_3D_STRUCTURE_FRAME_PACKING,4,2 ; @HDMI_3D_STRUCTURE_FRAME_PACKING
	.comm	_HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE,4,2 ; @HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE
	.comm	_HDMI_3D_STRUCTURE_LINE_ALTERNATIVE,4,2 ; @HDMI_3D_STRUCTURE_LINE_ALTERNATIVE
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL,4,2 ; @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL
	.comm	_HDMI_3D_STRUCTURE_L_DEPTH,4,2  ; @HDMI_3D_STRUCTURE_L_DEPTH
	.comm	_HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH,4,2 ; @HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH
	.comm	_HDMI_3D_STRUCTURE_TOP_AND_BOTTOM,4,2 ; @HDMI_3D_STRUCTURE_TOP_AND_BOTTOM
	.comm	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF,4,2 ; @HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.comm	_HDMI_3D_STRUCTURE_INVALID,4,2  ; @HDMI_3D_STRUCTURE_INVALID
	.no_dead_strip	_s3d_structure_from_display_mode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.s3d_structure_from_display_mode
l_switch.table.s3d_structure_from_display_mode:
	.quad	_HDMI_3D_STRUCTURE_TOP_AND_BOTTOM
	.quad	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_HALF
	.quad	_HDMI_3D_STRUCTURE_SIDE_BY_SIDE_FULL
	.quad	_HDMI_3D_STRUCTURE_L_DEPTH_GFX_GFX_DEPTH
	.quad	_HDMI_3D_STRUCTURE_L_DEPTH
	.quad	_HDMI_3D_STRUCTURE_LINE_ALTERNATIVE
	.quad	_HDMI_3D_STRUCTURE_FRAME_PACKING
	.quad	_HDMI_3D_STRUCTURE_FIELD_ALTERNATIVE

.subsections_via_symbols
