	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_acpi_edid              ## -- Begin function nouveau_acpi_edid
	.p2align	4, 0x90
_nouveau_acpi_edid:                     ## @nouveau_acpi_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	(%rsi), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.1:
	movq	_ACPI_VIDEO_DISPLAY_LCD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%rdi), %rdi
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	leaq	-24(%rbp), %rsi
	movl	%eax, %edi
	callq	_acpi_bus_get_device
	testl	%eax, %eax
	je	LBB0_6
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	-24(%rbp), %rdi
	leaq	-16(%rbp), %rcx
	movl	%ebx, %esi
	movl	$-1, %edx
	callq	_acpi_video_get_edid
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movq	-16(%rbp), %rdi
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kmemdup
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_VIDEO_DISPLAY_LCD,4,2     ## @ACPI_VIDEO_DISPLAY_LCD
	.comm	_EDID_LENGTH,4,2                ## @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	_nouveau_acpi_edid              ; -- Begin function nouveau_acpi_edid
	.p2align	2
_nouveau_acpi_edid:                     ; @nouveau_acpi_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x1]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_VIDEO_DISPLAY_LCD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_VIDEO_DISPLAY_LCD@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	x0, [x0]
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_3
; %bb.2:
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbz	w0, LBB0_5
LBB0_3:
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	x0, [sp, #8]
	mov	x3, sp
	mov	x1, x19
	mov	w2, #-1
	bl	_acpi_video_get_edid
	tbnz	w0, #31, LBB0_3
; %bb.6:
	ldr	x0, [sp]
Lloh3:
	adrp	x8, _EDID_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_kmemdup
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_VIDEO_DISPLAY_LCD,4,2     ; @ACPI_VIDEO_DISPLAY_LCD
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
