	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_established_modes
_add_established_modes:                 ## @add_established_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r13
	movl	4(%rsi), %r14d
	movl	8(%rsi), %eax
	shll	$8, %r14d
	orl	(%rsi), %r14d
	movl	$0, -80(%rbp)
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)
	movq	_EDID_EST_TIMINGS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	$0, %ebx
	js	LBB0_6
## %bb.1:
	shll	$9, %eax
	andl	$65536, %eax                    ## imm = 0x10000
	orl	%eax, %r14d
	xorl	%r12d, %r12d
	movq	$-1, %r15
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EDID_EST_TIMINGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	incq	%r15
	addq	$4, %r12
	cmpq	%rax, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r15), %eax
	movzbl	%al, %eax
	btl	%eax, %r14d
	jae	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_edid_est_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_drm_mode_duplicate
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	%ebx
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_version_greater
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_8
## %bb.7:
	movq	_do_established_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_drm_for_each_detailed_block
	movl	-80(%rbp), %eax
LBB0_8:
	addl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_EST_TIMINGS,4,2           ## @EDID_EST_TIMINGS
	.comm	_edid_est_modes,8,3             ## @edid_est_modes
	.comm	_do_established_modes,4,2       ## @do_established_modes
	.no_dead_strip	_add_established_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_established_modes
_add_established_modes:                 ; @add_established_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x1
	ldr	x21, [x0]
	ldp	w8, w9, [x1]
	ldr	w10, [x1, #8]
	str	wzr, [sp, #8]
	stp	x1, x0, [sp, #16]
Lloh0:
	adrp	x23, _EDID_EST_TIMINGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EDID_EST_TIMINGS@GOTPAGEOFF]
	ldr	w11, [x23]
	tbnz	w11, #31, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x24, #0
	mov	w22, #0
	orr	w8, w8, w9, lsl #8
	lsl	w9, w10, #9
	and	w9, w9, #0x10000
	orr	w25, w8, w9
	mov	x26, #-1
Lloh2:
	adrp	x27, _edid_est_modes@GOTPAGE
Lloh3:
	ldr	x27, [x27, _edid_est_modes@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x23]
	add	x26, x26, #1
	add	x24, x24, #4
	cmp	x26, x8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w26, #1
	lsr	w8, w25, w8
	tbz	w8, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x27]
	add	x1, x8, x24
	mov	x0, x21
	bl	_drm_mode_duplicate
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_drm_mode_probed_add
	add	w22, w22, #1
	b	LBB0_2
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_version_greater
	cbz	x0, LBB0_9
; %bb.8:
Lloh4:
	adrp	x8, _do_established_modes@GOTPAGE
Lloh5:
	ldr	x8, [x8, _do_established_modes@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_drm_for_each_detailed_block
	ldr	w8, [sp, #8]
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	add	w0, w8, w22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_EST_TIMINGS,4,2           ; @EDID_EST_TIMINGS
	.comm	_edid_est_modes,8,3             ; @edid_est_modes
	.comm	_do_established_modes,4,2       ; @do_established_modes
	.no_dead_strip	_add_established_modes
.subsections_via_symbols
