	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connector_bad_edid
_connector_bad_edid:                    ## @connector_bad_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	16(%rdi), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 16(%rdi)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_drm_debug@GOTPCREL(%rip), %rax
	movq	_DRM_UT_KMS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_8
LBB0_2:
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_EDID_LENGTH@GOTPCREL(%rip), %r14
	leaq	-80(%rbp), %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	movq	_KERN_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %eax
	movq	%r12, %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	movq	%r13, %r9
	pushq	$0
	pushq	%rax
	callq	_print_hex_dump
	addq	$16, %rsp
	incl	%ebx
	cmpl	%ebx, %r15d
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	%esi, %eax
	imull	%ebx, %eax
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movq	%r13, %rdi
	callq	_drm_edid_is_zero
	leaq	L_.str.1(%rip), %rsi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drm_edid_block_valid
	leaq	L_.str.2(%rip), %rsi
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_debug,4,2                  ## @drm_debug
	.comm	_DRM_UT_KMS,4,2                 ## @DRM_UT_KMS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: EDID is invalid:\n"

	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"\t[%02x] ZERO "

L_.str.2:                               ## @.str.2
	.asciz	"\t[%02x] BAD  "

L_.str.3:                               ## @.str.3
	.asciz	"\t[%02x] GOOD "

	.comm	_KERN_WARNING,4,2               ## @KERN_WARNING
	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
	.no_dead_strip	_connector_bad_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connector_bad_edid
_connector_bad_edid:                    ; @connector_bad_edid
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w8, [x0, #16]
	add	w9, w8, #1
	str	w9, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _drm_debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drm_debug@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _DRM_UT_KMS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_UT_KMS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	ldr	w2, [x0]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_warn
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w21, #0
Lloh11:
	adrp	x23, _EDID_LENGTH@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EDID_LENGTH@GOTPAGEOFF]
Lloh13:
	adrp	x24, l_.str.1@PAGE
Lloh14:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh15:
	adrp	x25, l_.str.3@PAGE
Lloh16:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh17:
	adrp	x26, _KERN_WARNING@GOTPAGE
Lloh18:
	ldr	x26, [x26, _KERN_WARNING@GOTPAGEOFF]
Lloh19:
	adrp	x27, _DUMP_PREFIX_NONE@GOTPAGE
Lloh20:
	ldr	x27, [x27, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh21:
	adrp	x28, l_.str.2@PAGE
Lloh22:
	add	x28, x28, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #4
	mov	x2, x21
	bl	_sprintf
	ldr	w0, [x26]
	ldr	w2, [x27]
	ldr	w6, [x23]
	add	x1, sp, #4
	mov	w3, #16
	mov	w4, #1
	mov	x5, x22
	mov	w7, #0
	bl	_print_hex_dump
	add	w21, w21, #1
	cmp	w19, w21
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mul	w8, w1, w21
	add	x22, x20, w8, sxtw #2
	mov	x0, x22
	bl	_drm_edid_is_zero
	mov	x1, x24
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_drm_edid_block_valid
	cmp	w0, #0
	csel	x1, x28, x25, eq
	b	LBB0_4
LBB0_7:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_debug,4,2                  ; @drm_debug
	.comm	_DRM_UT_KMS,4,2                 ; @DRM_UT_KMS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: EDID is invalid:\n"

	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"\t[%02x] ZERO "

l_.str.2:                               ; @.str.2
	.asciz	"\t[%02x] BAD  "

l_.str.3:                               ; @.str.3
	.asciz	"\t[%02x] GOOD "

	.comm	_KERN_WARNING,4,2               ; @KERN_WARNING
	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
	.no_dead_strip	_connector_bad_edid
.subsections_via_symbols
