	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_video_device_EDID_seq_show
_acpi_video_device_EDID_seq_show:       ## @acpi_video_device_EDID_seq_show
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	$0, -32(%rbp)
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_acpi_video_device_EDID
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_acpi_video_device_EDID
	movl	%eax, %r15d
LBB0_3:
	movl	%r15d, %edi
	callq	_ACPI_FAILURE
	movq	-32(%rbp), %rdi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.5:
	movq	(%rdi), %rax
	movq	_ACPI_TYPE_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_seq_putc
	incq	%rbx
	movq	-32(%rbp), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_9:
	callq	_kfree
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_seq_printf
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ## @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<not supported>\n"

	.no_dead_strip	_acpi_video_device_EDID_seq_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_video_device_EDID_seq_show
_acpi_video_device_EDID_seq_show:       ; @acpi_video_device_EDID_seq_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, [x0]
	str	xzr, [sp, #8]
	cbz	x20, LBB0_5
; %bb.1:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #128
	bl	_acpi_video_device_EDID
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #256
	bl	_acpi_video_device_EDID
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	bl	_ACPI_FAILURE
	mov	x8, x0
	ldr	x0, [sp, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, eq
	b.ne	LBB0_6
; %bb.4:
	cbnz	x0, LBB0_10
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_seq_printf
	b	LBB0_11
LBB0_6:
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _ACPI_TYPE_BUFFER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_TYPE_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #8]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x19
	bl	_seq_putc
	add	x20, x20, #1
	ldr	x0, [sp, #8]
	ldrsw	x8, [x0]
	cmp	x20, x8
	b.lt	LBB0_9
LBB0_10:
	bl	_kfree
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_BUFFER,8,3           ; @ACPI_TYPE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<not supported>\n"

	.no_dead_strip	_acpi_video_device_EDID_seq_show
.subsections_via_symbols
