	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function edid_get_byte
_edid_get_byte:                         ## @edid_get_byte
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_I2C_NOT_SPECIFIED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 24(%rdi)
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	_EDID_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.5:
	cmpl	$0, 20(%rbx)
	je	LBB0_6
## %bb.7:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_vgpu_has_monitor_on_port
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_vgpu_port
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movb	(%rax,%rcx), %al
	incq	%rcx
	movq	%rcx, 8(%rbx)
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rdi
LBB0_10:
	callq	_gvt_vgpu_err
	xorl	%eax, %eax
LBB0_11:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_NOT_SPECIFIED,8,3          ## @I2C_NOT_SPECIFIED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver tries to read EDID without proper sequence!\n"

	.comm	_EDID_SIZE,8,3                  ## @EDID_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"edid_get_byte() exceeds the size of EDID!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Reading EDID but EDID is not available!\n"

L_.str.3:                               ## @.str.3
	.asciz	"No EDID available during the reading?\n"

	.no_dead_strip	_edid_get_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function edid_get_byte
_edid_get_byte:                         ; @edid_get_byte
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _I2C_NOT_SPECIFIED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_NOT_SPECIFIED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _EDID_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EDID_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.3:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_10
; %bb.4:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_intel_vgpu_has_monitor_on_port
	cbz	x0, LBB0_11
; %bb.5:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_intel_vgpu_port
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldrb	w0, [x8, x9]
	add	x8, x9, #1
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_gvt_vgpu_err
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_10:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_11:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_NOT_SPECIFIED,8,3          ; @I2C_NOT_SPECIFIED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver tries to read EDID without proper sequence!\n"

	.comm	_EDID_SIZE,8,3                  ; @EDID_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"edid_get_byte() exceeds the size of EDID!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Reading EDID but EDID is not available!\n"

l_.str.3:                               ; @.str.3
	.asciz	"No EDID available during the reading?\n"

	.no_dead_strip	_edid_get_byte
.subsections_via_symbols
