	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_match_cea_mode_clock_tolerance
_drm_match_cea_mode_clock_tolerance:    ## @drm_match_cea_mode_clock_tolerance
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	cmpl	$0, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r13
	movq	_DRM_MODE_MATCH_TIMINGS@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_MATCH_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpq	$0, 8(%rdi)
	movl	$0, %ebx
	je	LBB0_3
## %bb.2:
	movq	_DRM_MODE_MATCH_ASPECT_RATIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	orl	(%rax), %r12d
	movq	_edid_cea_modes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	$2, %rax
	jb	LBB0_4
## %bb.5:
	orl	%ebx, %r12d
	movl	$1, %ebx
	leaq	-64(%rbp), %r14
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	(%r15), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	-64(%rbp), %r15d
	movq	%r14, %rdi
	callq	_cea_mode_alternate_clock
	movl	(%r13), %ecx
	movl	%ecx, %edx
	subl	%r15d, %edx
	movl	%edx, %esi
	negl	%esi
	cmovsl	%edx, %esi
	cmpl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	subl	%eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	cmovsl	%ecx, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	ja	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_drm_mode_match
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cea_mode_alternate_timings
	testq	%rax, %rax
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movq	_edid_cea_modes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	movl	$0, %eax
	jb	LBB0_6
	jmp	LBB0_11
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movq	%rbx, %rax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_MATCH_TIMINGS,4,2     ## @DRM_MODE_MATCH_TIMINGS
	.comm	_DRM_MODE_MATCH_FLAGS,4,2       ## @DRM_MODE_MATCH_FLAGS
	.comm	_DRM_MODE_MATCH_ASPECT_RATIO,4,2 ## @DRM_MODE_MATCH_ASPECT_RATIO
	.comm	_edid_cea_modes,8,3             ## @edid_cea_modes
	.no_dead_strip	_drm_match_cea_mode_clock_tolerance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_match_cea_mode_clock_tolerance
_drm_match_cea_mode_clock_tolerance:    ; @drm_match_cea_mode_clock_tolerance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DRM_MODE_MATCH_TIMINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_MATCH_TIMINGS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DRM_MODE_MATCH_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_MATCH_FLAGS@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _DRM_MODE_MATCH_ASPECT_RATIO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_MATCH_ASPECT_RATIO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w24, wzr, w9, eq
Lloh9:
	adrp	x23, _edid_cea_modes@GOTPAGE
Lloh10:
	ldr	x23, [x23, _edid_cea_modes@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	x0, #2
	b.lo	LBB0_8
; %bb.2:
	orr	w8, w22, w21
	orr	w21, w8, w24
	mov	w22, #1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [x23]
	ldr	q0, [x8, x22, lsl #4]
	str	q0, [sp]
	ldr	w24, [sp]
	mov	x0, sp
	bl	_cea_mode_alternate_clock
	ldr	w8, [x20]
	subs	w9, w8, w24
	cneg	w9, w9, mi
	cmp	w9, w19
	b.ls	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w8, w0
	cneg	w8, w8, mi
	cmp	w8, w19
	b.hi	LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x20
	mov	x2, x21
	bl	_drm_mode_match
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x1, sp
	mov	x0, x22
	bl	_cea_mode_alternate_timings
	cbnz	x0, LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	x0, #0
	cmp	x22, x8
	b.lo	LBB0_3
	b	LBB0_10
LBB0_8:
	mov	x0, #0
	b	LBB0_10
LBB0_9:
	mov	x0, x22
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_MATCH_TIMINGS,4,2     ; @DRM_MODE_MATCH_TIMINGS
	.comm	_DRM_MODE_MATCH_FLAGS,4,2       ; @DRM_MODE_MATCH_FLAGS
	.comm	_DRM_MODE_MATCH_ASPECT_RATIO,4,2 ; @DRM_MODE_MATCH_ASPECT_RATIO
	.comm	_edid_cea_modes,8,3             ; @edid_cea_modes
	.no_dead_strip	_drm_match_cea_mode_clock_tolerance
.subsections_via_symbols
