	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_standard_modes
_add_standard_modes:                    ## @add_standard_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	$0, -64(%rbp)
	movq	%rsi, -56(%rbp)
	movq	%rdi, -48(%rbp)
	movq	_EDID_STD_TIMINGS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %r12d
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	_EDID_STD_TIMINGS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r14
	cmpq	%rax, %r13
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_std
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_drm_mode_probed_add
	incl	%r12d
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_version_greater
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	movq	_do_standard_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_drm_for_each_detailed_block
	movl	-64(%rbp), %eax
LBB0_7:
	addl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_STD_TIMINGS,4,2           ## @EDID_STD_TIMINGS
	.comm	_do_standard_modes,4,2          ## @do_standard_modes
	.no_dead_strip	_add_standard_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_standard_modes
_add_standard_modes:                    ; @add_standard_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	str	wzr, [sp, #8]
	stp	x1, x0, [sp, #16]
Lloh0:
	adrp	x22, _EDID_STD_TIMINGS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EDID_STD_TIMINGS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x23, #0
	mov	x24, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x2, x8, x23
	mov	x0, x20
	mov	x1, x19
	bl	_drm_mode_std
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_drm_mode_probed_add
	add	w21, w21, #1
	b	LBB0_2
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_version_greater
	cbz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _do_standard_modes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _do_standard_modes@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_drm_for_each_detailed_block
	ldr	w8, [sp, #8]
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	add	w0, w8, w21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_STD_TIMINGS,4,2           ; @EDID_STD_TIMINGS
	.comm	_do_standard_modes,4,2          ; @do_standard_modes
	.no_dead_strip	_add_standard_modes
.subsections_via_symbols
