	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_find_edid_extension
_drm_find_edid_extension:               ## @drm_find_edid_extension
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %ecx
	xorl	%edx, %edx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.2:
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.3:
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, (%rdi,%rax)
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	addq	%rax, %rdi
	cmpq	%rdx, %rcx
	jne	LBB0_4
## %bb.6:
	movl	%ecx, %edx
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_9:
	xorl	%edi, %edi
	jmp	LBB0_11
LBB0_10:
	addq	%rax, %rdi
LBB0_11:
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	cmovneq	%rdi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.no_dead_strip	_drm_find_edid_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_find_edid_extension
_drm_find_edid_extension:               ; @drm_find_edid_extension
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x9, #0
Lloh0:
	adrp	x10, _EDID_LENGTH@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EDID_LENGTH@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	lsl	x10, x10, #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x0, x10]
	cmp	w11, w1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	x0, x0, x10
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.6:
	mov	x9, x8
	b	LBB0_10
LBB0_7:
	mov	x0, #0
	ret
LBB0_8:
	mov	w9, #0
	mov	x0, #0
	b	LBB0_10
LBB0_9:
	add	x0, x0, x10
LBB0_10:
	cmp	w9, w8
	csel	x0, xzr, x0, eq
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.no_dead_strip	_drm_find_edid_extension
.subsections_via_symbols
