	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_hdmi_vsdb_modes
_do_hdmi_vsdb_modes:                    ## @do_hdmi_vsdb_modes
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	cmpl	$8, %edx
	jl	LBB0_38
## %bb.1:
	movl	32(%rsi), %eax
	testb	$32, %al
	je	LBB0_38
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$2, %edx
	leal	2(%rdx), %r13d
	testb	$64, %al
	cmovel	%edx, %r13d
	leal	10(%r13), %r12d
	cmpl	%r15d, %r12d
	ja	LBB0_38
## %bb.3:
	movq	%rdi, %rbx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%r8d, -84(%rbp)                 ## 4-byte Spill
	movq	%r13, %rax
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
	orl	$9, %r13d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testb	$-128, (%rcx,%r13,4)
	movl	$0, %r14d
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%rcx, %r14
	callq	_add_hdmi_mandatory_stereo_modes
	movq	%r14, %rcx
	movq	%rax, %r14
	movl	(%rcx,%r13,4), %eax
	shrl	$5, %eax
	andl	$3, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_5:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, %edx
	sarl	$5, %edx
	movl	%eax, %ecx
	andl	$31, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpl	$32, %eax
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	jl	LBB0_9
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	11(%rax), %ebx
	movl	%r15d, %r12d
	cmpl	$2, %edx
	movl	$1, %r13d
	cmovgel	%edx, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_hdmi_mode
	addl	%eax, %r14d
	incq	%rbx
	decq	%r13
	jne	LBB0_7
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	leal	(%rbx,%rax), %esi
	xorl	%eax, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	$2, %edx
	sete	%al
	shll	$2, %eax
	cmpl	$1, %edx
	movl	$2, %edi
	cmovnel	%eax, %edi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rsi), %eax
	addl	$10, %eax
	cmpl	%r15d, %eax
	jg	LBB0_10
## %bb.11:
	cmpl	%edi, %ecx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jb	LBB0_36
## %bb.12:
	leal	-1(%rdx), %eax
	cmpl	$1, %eax
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	ja	LBB0_19
## %bb.13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	addl	$11, %eax
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r15d
	shll	$8, %r15d
	movslq	%esi, %rax
	movl	$65535, %ebx                    ## imm = 0xFFFF
	cmpl	$2, %edx
	jne	LBB0_15
## %bb.14:
	movl	52(%rcx,%rax,4), %ebx
	shll	$8, %ebx
	orl	56(%rcx,%rax,4), %ebx
LBB0_15:
	orl	48(%rcx,%rax,4), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%r12d
	cmpl	$16, %r12d
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	btl	%r12d, %ebx
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_add_3d_struct_modes
	addl	%eax, %r14d
	jmp	LBB0_18
LBB0_19:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	subl	%ecx, %esi
	jle	LBB0_36
## %bb.20:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	(%rcx,%rax), %edi
	addl	$3, %edi
	xorl	%ebx, %ebx
	movq	_DRM_MODE_FLAG_3D_FRAME_PACKING@GOTPCREL(%rip), %r9
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_21 Depth=1
	incl	%ebx
	cmpl	%esi, %ebx
	jge	LBB0_36
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%rdi), %eax
	addl	$8, %eax
	cltq
	movl	(%r8,%rax,4), %r15d
	leal	1(%rbx), %edx
	testb	$8, %r15b
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	%esi, %edx
	je	LBB0_36
LBB0_23:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%r15d, %eax
	movq	%r9, %rcx
	andl	$15, %eax
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$8, %eax
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_21 Depth=1
	cmpl	$6, %eax
	jne	LBB0_33
## %bb.26:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	_DRM_MODE_FLAG_3D_TOP_AND_BOTTOM@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_21 Depth=1
	leal	(%rbx,%rdi), %eax
	addl	$9, %eax
	cltq
	movl	(%r8,%rax,4), %eax
	andl	$-16, %eax
	movq	_DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF@GOTPCREL(%rip), %rcx
	cmpl	$16, %eax
	jne	LBB0_33
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	(%rcx), %r13d
	testl	%r13d, %r13d
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_21 Depth=1
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %ecx
	sarl	$4, %ecx
	movq	%r12, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_display_mode_from_vic_index
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_21 Depth=1
	orl	%r13d, (%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	%r14d
LBB0_32:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	%r12, %r13
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	_DRM_MODE_FLAG_3D_FRAME_PACKING@GOTPCREL(%rip), %r9
	movl	-48(%rbp), %edx                 ## 4-byte Reload
LBB0_33:                                ##   in Loop: Header=BB0_21 Depth=1
	testb	$8, %r15b
	je	LBB0_35
LBB0_34:                                ##   in Loop: Header=BB0_21 Depth=1
	movl	%edx, %ebx
	jmp	LBB0_35
LBB0_29:                                ##   in Loop: Header=BB0_21 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	testb	$8, %r15b
	je	LBB0_35
	jmp	LBB0_34
LBB0_10:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
LBB0_36:
	testl	%r14d, %r14d
	jle	LBB0_38
## %bb.37:
	movl	$1, (%r13)
LBB0_38:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_3D_FRAME_PACKING,4,2 ## @DRM_MODE_FLAG_3D_FRAME_PACKING
	.comm	_DRM_MODE_FLAG_3D_TOP_AND_BOTTOM,4,2 ## @DRM_MODE_FLAG_3D_TOP_AND_BOTTOM
	.comm	_DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF,4,2 ## @DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF
	.no_dead_strip	_do_hdmi_vsdb_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hdmi_vsdb_modes
_do_hdmi_vsdb_modes:                    ; @do_hdmi_vsdb_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #8
	b.lt	LBB0_3
; %bb.1:
	mov	x22, x1
	ldr	w8, [x1, #32]
	tbz	w8, #5, LBB0_3
; %bb.2:
	mov	x24, x2
	lsr	w9, w8, #6
	and	w9, w9, #0x2
	add	w10, w9, #2
	tst	w8, #0x40
	csel	w27, w9, w10, eq
	add	w25, w27, #10
	cmp	w25, w2
	b.ls	LBB0_5
LBB0_3:
	mov	w23, #0
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	x20, x4
	mov	x21, x3
	mov	x19, x0
	mov	w8, #9
	orr	w26, w27, w8
	ldr	w8, [x22, w26, uxtw #2]
	tbnz	w8, #7, LBB0_7
; %bb.6:
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
	mov	w23, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_add_hdmi_mandatory_stereo_modes
	mov	x23, x0
	ldr	w8, [x22, x26, lsl #2]
	ubfx	w8, w8, #5, #2
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
LBB0_8:
	ldr	w8, [x22, w25, uxtw #2]
	asr	w10, w8, #5
	and	w9, w8, #0x1f
	cmp	w8, #32
	stp	w10, w9, [sp, #8]               ; 8-byte Folded Spill
	b.lt	LBB0_12
; %bb.9:
	add	w26, w27, #11
	mov	w25, w24
	cmp	w10, #1
	csinc	w28, w10, wzr, gt
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x26, x25
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x22, x26, lsl #2]
	mov	x0, x19
	bl	_add_hdmi_mode
	add	w23, w23, w0
	add	x26, x26, #1
	subs	x28, x28, #1
	b.ne	LBB0_10
LBB0_12:
	ldp	w12, w8, [sp, #4]               ; 8-byte Folded Reload
	add	w9, w8, w27
	cmp	w12, #2
	cset	w8, eq
	lsl	w10, w8, #2
	subs	w8, w12, #1
	mov	w11, #2
	csel	w27, w11, w10, eq
	sxtw	x28, w9
	add	x9, x28, #11
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	add	w10, w11, w9
	sub	w10, w10, #1
	cmp	w10, w24
	ccmp	w11, w27, #0, le
	b.lo	LBB0_36
; %bb.13:
	cmp	w8, #1
	b.hi	LBB0_21
; %bb.14:
	ldr	w9, [x22, x9, lsl #2]
	add	x8, x22, x28, lsl #2
	ldr	w10, [x8, #48]
	orr	w24, w10, w9, lsl #8
	cmp	w12, #2
	b.ne	LBB0_16
; %bb.15:
	ldp	w9, w8, [x8, #52]
	orr	w26, w8, w9, lsl #8
	b	LBB0_17
LBB0_16:
	mov	w26, #65535
LBB0_17:
	mov	w25, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w25, w25, #1
	cmp	w25, #16
	b.eq	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	lsr	w8, w26, w25
	tbz	w8, #0, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x25
	bl	_add_3d_struct_modes
	add	w23, w23, w0
	b	LBB0_18
LBB0_21:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w11, w8, w27
	cmp	w11, #1
	b.lt	LBB0_36
; %bb.22:
	mov	w25, #0
	add	w8, w27, w28
	add	w24, w8, #3
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	tst	w28, #0x8
	csel	w8, w25, w27, eq
	add	w25, w8, #1
	cmp	w25, w11
	b.ge	LBB0_36
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	add	w8, w25, w24
	add	w9, w8, #8
	ldr	w28, [x22, w9, sxtw #2]
	add	w27, w25, #1
	tbz	w28, #3, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w27, w11
	b.eq	LBB0_36
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	ands	w9, w28, #0xf
	b.eq	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w9, #8
	b.eq	LBB0_32
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w9, #6
	b.ne	LBB0_24
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
Lloh0:
	adrp	x8, _DRM_MODE_FLAG_3D_TOP_AND_BOTTOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FLAG_3D_TOP_AND_BOTTOM@GOTPAGEOFF]
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
Lloh2:
	adrp	x8, _DRM_MODE_FLAG_3D_FRAME_PACKING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_FLAG_3D_FRAME_PACKING@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w8, w8, #9
	ldr	w8, [x22, w8, sxtw #2]
	and	w9, w8, #0xfffffff0
Lloh4:
	adrp	x8, _DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF@GOTPAGEOFF]
	cmp	w9, #16
	b.ne	LBB0_24
LBB0_33:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w26, [x8]
	cbz	w26, LBB0_24
; %bb.34:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x2, x20
	mov	x1, x21
	asr	w3, w28, #4
	mov	x0, x19
	bl	_drm_display_mode_from_vic_index
	cbz	x0, LBB0_23
; %bb.35:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x1, x0
	ldr	w8, [x0]
	orr	w8, w8, w26
	str	w8, [x0]
	mov	x0, x19
	bl	_drm_mode_probed_add
	add	w23, w23, #1
	b	LBB0_23
LBB0_36:
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.37:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_3D_FRAME_PACKING,4,2 ; @DRM_MODE_FLAG_3D_FRAME_PACKING
	.comm	_DRM_MODE_FLAG_3D_TOP_AND_BOTTOM,4,2 ; @DRM_MODE_FLAG_3D_TOP_AND_BOTTOM
	.comm	_DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF,4,2 ; @DRM_MODE_FLAG_3D_SIDE_BY_SIDE_HALF
	.no_dead_strip	_do_hdmi_vsdb_modes
.subsections_via_symbols
