	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_check_hardcoded_edid ## -- Begin function radeon_combios_check_hardcoded_edid
	.p2align	4, 0x90
_radeon_combios_check_hardcoded_edid:   ## @radeon_combios_check_hardcoded_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	movq	_COMBIOS_HARDCODED_EDID_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	(%r15), %r12
	movslq	%eax, %r14
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movzbl	126(%r12,%r14), %ebx
	incl	%ebx
	imull	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	addq	%r14, %r12
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r13, %rdi
	callq	_drm_edid_is_valid
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%r13, 16(%r15)
	movl	%ebx, 8(%r15)
	movl	$1, %ecx
	jmp	LBB0_7
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBIOS_HARDCODED_EDID_TABLE,4,2 ## @COMBIOS_HARDCODED_EDID_TABLE
	.comm	_EDID_LENGTH,1,0                ## @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_combios_check_hardcoded_edid ; -- Begin function radeon_combios_check_hardcoded_edid
	.p2align	2
_radeon_combios_check_hardcoded_edid:   ; @radeon_combios_check_hardcoded_edid
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _COMBIOS_HARDCODED_EDID_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMBIOS_HARDCODED_EDID_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
	add	x22, x8, w0, sxtw
Lloh3:
	adrp	x8, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDID_LENGTH@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldrb	w9, [x22, #126]
	madd	w20, w8, w9, w8
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	mov	x0, x21
	bl	_drm_edid_is_valid
	cbz	w0, LBB0_4
; %bb.3:
	str	x21, [x19, #16]
	str	w20, [x19, #8]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_kfree
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBIOS_HARDCODED_EDID_TABLE,4,2 ; @COMBIOS_HARDCODED_EDID_TABLE
	.comm	_EDID_LENGTH,1,0                ; @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
