	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_do_get_edid
_drm_do_get_edid:                       ## @drm_do_get_edid
	.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, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	movq	%rsi, %r15
	sete	%r13b
	movq	_drm_debug@GOTPCREL(%rip), %rax
	movq	_DRM_UT_KMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	setne	%r12b
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%rax, %r14
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	%r14, %rdi
	callq	_kfree
LBB0_3:
	xorl	%r13d, %r13d
LBB0_4:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r15d
	orb	%r12b, %r15b
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rbx
	je	LBB0_23
LBB0_6:
	movl	504(%r14), %esi
	testl	%esi, %esi
	je	LBB0_28
## %bb.7:
	incl	%esi
	imull	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r14, %rdi
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movq	%rax, %r13
	movl	504(%rax), %eax
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_35
## %bb.9:
	xorb	$1, %r15b
	movb	%r15b, -45(%rbp)                ## 1-byte Spill
	movl	$1, %ebx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	incq	%r15
	movq	_EDID_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movl	%ebx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	(%r12), %rax
	imulq	%r15, %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %ecx
	movl	%ecx, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_38
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	(%r12), %rax
	movslq	%r15d, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	imulq	%rcx, %rax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %ecx
	movl	%ecx, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_38
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	(%r12), %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	je	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rbx), %ecx
	movl	504(%r13), %eax
	movl	%r15d, %edx
	cmpl	%eax, %ebx
	movl	%ecx, %ebx
	jl	LBB0_10
	jmp	LBB0_36
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	(%r12), %ecx
	movl	%ecx, %eax
	imull	%r15d, %eax
	cltq
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_38
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	(%r12), %rax
	imulq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	setne	%al
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ecx, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	orb	-45(%rbp), %al                  ## 1-byte Folded Reload
	movq	%r14, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%ecx, %r14d
	callq	_drm_get_connector_name
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_warn
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incl	(%r15)
	movl	%r14d, %r15d
	jmp	LBB0_17
LBB0_23:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_drm_edid_is_zero
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	incl	16(%r13)
LBB0_25:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.26:
	movq	8(%r13), %rax
	movl	(%rax), %r15d
	movq	%r13, %rdi
	callq	_drm_get_connector_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_dev_warn
LBB0_27:
	incl	(%r13)
	jmp	LBB0_2
LBB0_28:
	movq	%r14, %r13
	jmp	LBB0_4
LBB0_29:
	movl	(%rbx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.30:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	jne	LBB0_6
## %bb.31:
	movl	(%rbx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.32:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	jne	LBB0_6
## %bb.33:
	movl	(%rbx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_drm_do_probe_ddc_edid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.34:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_drm_edid_block_valid
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_25
LBB0_38:
	movq	%r13, %r14
	jmp	LBB0_2
LBB0_35:
	xorl	%r15d, %r15d
LBB0_36:
	subl	%r15d, %eax
	je	LBB0_4
## %bb.37:
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rcx
	addl	%eax, -4(%r13,%rcx,4)
	movl	%r15d, 504(%r13)
	incl	%r15d
	imull	(%rdx), %r15d
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_krealloc
	movq	%r13, %r14
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_debug,4,2                  ## @drm_debug
	.comm	_DRM_UT_KMS,4,2                 ## @DRM_UT_KMS
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Ignoring invalid EDID block %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: EDID block %d invalid.\n"

	.no_dead_strip	_drm_do_get_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_do_get_edid
_drm_do_get_edid:                       ; @drm_do_get_edid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _drm_debug@GOTPAGE
Lloh1:
	ldr	x9, [x9, _drm_debug@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _DRM_UT_KMS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_UT_KMS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	ccmp	w8, #0, #4, eq
	cset	w21, eq
Lloh6:
	adrp	x26, _EDID_LENGTH@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EDID_LENGTH@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh8:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x27]
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_drm_do_probe_ddc_edid
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, x23
	bl	_kfree
LBB0_3:
	mov	x22, #0
LBB0_4:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbz	x0, LBB0_20
LBB0_6:
	ldr	w8, [x23, #504]
	cbz	w8, LBB0_25
; %bb.7:
	ldr	w9, [x26]
	madd	w1, w9, w8, w9
	ldr	w2, [x27]
	mov	x0, x23
	bl	_krealloc
	cbz	x0, LBB0_2
; %bb.8:
	mov	x22, x0
	ldr	w8, [x0, #504]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.9:
	mov	w25, #0
	eor	w28, w21, #0x1
	mov	w23, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w9, w23, #1
	ldr	w8, [x22, #504]
	cmp	w23, w8
	mov	x23, x9
	b.ge	LBB0_34
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x25
	add	w25, w25, #1
	ldr	w3, [x26]
	mul	w8, w3, w25
	add	x1, x22, w8, sxtw #2
	mov	x0, x20
	mov	x2, x23
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_32
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w25
	add	x0, x22, w8, sxtw #2
	mov	x1, x23
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w3, [x26]
	mul	w8, w3, w25
	add	x1, x22, w8, sxtw #2
	mov	x0, x20
	mov	x2, x23
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_32
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w25
	add	x0, x22, w8, sxtw #2
	mov	x1, x23
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w3, [x26]
	mul	w8, w3, w25
	add	x1, x22, w8, sxtw #2
	mov	x0, x20
	mov	x2, x23
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w25
	add	x0, x22, w8, sxtw #2
	mov	x1, x23
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w3, [x26]
	mul	w8, w3, w25
	add	x1, x22, w8, sxtw #2
	mov	x0, x20
	mov	x2, x23
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x26]
	mul	w8, w8, w25
	add	x0, x22, w8, sxtw #2
	mov	x1, x23
	mov	x2, x21
	bl	_drm_edid_block_valid
	cmp	x0, #0
	cset	w8, ne
	orr	w8, w8, w28
	csel	w25, w25, w24, ne
	tbnz	w8, #0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	w25, [x8]
	mov	x0, x19
	bl	_drm_get_connector_name
	mov	x2, x0
	mov	x0, x25
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_dev_warn
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x25, x24
	b	LBB0_10
LBB0_20:
	ldr	w1, [x26]
	mov	x0, x23
	bl	_drm_edid_is_zero
	cbz	x0, LBB0_26
; %bb.21:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_22:
	cbz	w21, LBB0_24
; %bb.23:
	ldr	x8, [x19, #8]
	ldr	w20, [x8]
	mov	x0, x19
	bl	_drm_get_connector_name
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_dev_warn
LBB0_24:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_2
LBB0_25:
	mov	x22, x23
	b	LBB0_4
LBB0_26:
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_2
; %bb.27:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_6
; %bb.28:
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_2
; %bb.29:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_6
; %bb.30:
	ldr	w3, [x26]
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_drm_do_probe_ddc_edid
	cbnz	x0, LBB0_2
; %bb.31:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	bl	_drm_edid_block_valid
	cbnz	x0, LBB0_6
	b	LBB0_22
LBB0_32:
	mov	x23, x22
	b	LBB0_2
LBB0_33:
	mov	w25, #0
LBB0_34:
	subs	w8, w8, w25
	b.eq	LBB0_4
; %bb.35:
	ldrsw	x9, [x26]
	add	x9, x22, x9, lsl #2
	ldur	w10, [x9, #-4]
	add	w8, w8, w10
	stur	w8, [x9, #-4]
	str	w25, [x22, #504]
	ldr	w8, [x26]
	madd	w1, w8, w25, w8
	ldr	w2, [x27]
	mov	x0, x22
	bl	_krealloc
	mov	x23, x22
	mov	x22, x0
	cbnz	x0, LBB0_4
	b	LBB0_2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_debug,4,2                  ; @drm_debug
	.comm	_DRM_UT_KMS,4,2                 ; @DRM_UT_KMS
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Ignoring invalid EDID block %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: EDID block %d invalid.\n"

	.no_dead_strip	_drm_do_get_edid
.subsections_via_symbols
