	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_video_get_edid            ## -- Begin function acpi_video_get_edid
	.p2align	4, 0x90
_acpi_video_get_edid:                   ## @acpi_video_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %rbx
	callq	_acpi_driver_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_acpi_driver_data
	cmpl	$0, (%rax)
	jle	LBB0_24
## %bb.4:
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	-128(%rax), %r12d
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	cmpq	%rax, %r15
	jge	LBB0_24
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r15,8), %r14
	testq	%r14, %r14
	je	LBB0_23
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %r12d
	ja	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r13,%r12,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 12(%r14)
	jne	LBB0_13
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%r14)
	jne	LBB0_23
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 4(%r14)
	jne	LBB0_13
	jmp	LBB0_23
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 8(%r14)
	jne	LBB0_13
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 16(%r14)
	je	LBB0_23
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_acpi_video_device_EDID
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rax
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	movl	$128, %edx
	callq	_acpi_video_device_EDID
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rcx), %rax
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_23
## %bb.20:
	movl	$128, %eax
	jmp	LBB0_21
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_25
LBB0_24:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_25:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$256, %eax                      ## imm = 0x100
LBB0_21:
	movq	(%rcx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_video_get_edid            ; -- Begin function acpi_video_get_edid
	.p2align	2
_acpi_video_get_edid:                   ; @acpi_video_get_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_acpi_driver_data
	cbz	x0, LBB0_19
; %bb.2:
	mov	x0, x22
	bl	_acpi_driver_data
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.3:
	mov	x22, x0
	mov	x24, #0
	sub	w25, w21, #128
Lloh0:
	adrp	x26, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh2:
	adrp	x27, lJTI0_0@PAGE
Lloh3:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x23, [x8, x24, lsl #3]
	cbz	x23, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #3
	b.hi	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x8, LBB0_8
	ldrb	w9, [x27, x25]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #12]
	cbnz	w8, LBB0_14
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w21, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	cmp	w8, w20
	b.ne	LBB0_4
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_14
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #8]
	cbnz	w8, LBB0_14
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_4
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #256
	bl	_acpi_video_device_EDID
	bl	_ACPI_FAILURE
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.eq	LBB0_23
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x23
	mov	w2, #128
	bl	_acpi_video_device_EDID
	bl	_ACPI_FAILURE
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.18:
	mov	w0, #128
	b	LBB0_24
LBB0_19:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	mov	w0, #256
LBB0_24:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_22
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
