	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stdp2690_get_edid
_stdp2690_get_edid:                     ## @stdp2690_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movb	$0, -97(%rbp)
	movq	_EDID_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r13
	movl	$1, -96(%rbp)
	leaq	-97(%rbp), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -80(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)
	movl	(%r15), %ecx
	movl	%ecx, -72(%rbp)
	movq	%r13, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	testq	%r13, %r13
	je	LBB0_10
## %bb.1:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.3:
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drm_edid_block_valid
	leaq	L_.str.1(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	_EDID_EXT_BLOCK_CNT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %r12d
	incl	%r12d
	movl	(%r15), %eax
	imull	%eax, %r12d
	cmpl	%eax, %r12d
	jbe	LBB0_11
## %bb.5:
	movq	%r13, %rdi
	callq	_kfree
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	%rax, %r13
	movb	$0, -97(%rbp)
	movl	%r12d, -72(%rbp)
	movq	%rax, -64(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_drm_edid_block_valid
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rbx
LBB0_9:
	movq	%rbx, %rdi
	callq	_DRM_ERROR
	movq	%r13, %rdi
	callq	_kfree
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r13, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read EDID.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid EDID data\n"

	.comm	_EDID_EXT_BLOCK_CNT,8,3         ## @EDID_EXT_BLOCK_CNT
L_.str.2:                               ## @.str.2
	.asciz	"Unable to read EDID extension blocks.\n"

	.no_dead_strip	_stdp2690_get_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stdp2690_get_edid
_stdp2690_get_edid:                     ; @stdp2690_get_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x20, [x0, #8]
	strb	wzr, [sp, #7]
Lloh3:
	adrp	x23, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EDID_LENGTH@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_kmalloc
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #8]
	add	x8, sp, #7
	str	x8, [sp, #16]
	ldr	w8, [x21]
	stp	wzr, w8, [sp, #24]
	ldr	w9, [x23]
	str	w9, [sp, #32]
	str	x0, [sp, #40]
Lloh7:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	cbz	x0, LBB0_10
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_drm_edid_block_valid
	cbz	w0, LBB0_7
; %bb.3:
Lloh10:
	adrp	x8, _EDID_EXT_BLOCK_CNT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDID_EXT_BLOCK_CNT@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x19, x8, lsl #2]
	ldr	w9, [x23]
	madd	w21, w9, w8, w9
	cmp	w21, w9
	b.ls	LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_kfree
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.5:
	strb	wzr, [sp, #7]
	str	w21, [sp, #32]
	str	x19, [sp, #40]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	x3, #0
	bl	_drm_edid_block_valid
	cbnz	w0, LBB0_10
LBB0_7:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_10:
	ldr	x8, [sp, #56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x19
	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
	add	sp, sp, #128
	ret
LBB0_12:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read EDID.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid EDID data\n"

	.comm	_EDID_EXT_BLOCK_CNT,8,3         ; @EDID_EXT_BLOCK_CNT
l_.str.2:                               ; @.str.2
	.asciz	"Unable to read EDID extension blocks.\n"

	.no_dead_strip	_stdp2690_get_edid
.subsections_via_symbols
