	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_edid
_dump_edid:                             ## @dump_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	$536, %rsp                      ## imm = 0x218
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-560(%rbp), %rdx
	xorl	%edi, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_vc_tv_hdmi_ddc_read
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -568(%rbp)                ## 8-byte Spill
	leaq	-560(%rbp), %rdi
	movl	$1, %esi
	movl	$512, %edx                      ## imm = 0x200
	movq	%rax, %rcx
	callq	_fwrite
	movq	%rax, %r12
	movl	-56(%rbp), %r14d
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.3:
	movl	$512, %ebx                      ## imm = 0x200
	leaq	-560(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%r13, %rdx
	callq	_vc_tv_hdmi_ddc_read
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$512, %edx                      ## imm = 0x200
	movq	%r15, %rcx
	callq	_fwrite
	addq	%rax, %r12
	addq	$512, %rbx                      ## imm = 0x200
	decl	%r14d
	jne	LBB0_4
LBB0_6:
	movq	%r15, %rdi
	callq	_fclose
	testq	%r12, %r12
	movq	-568(%rbp), %rdx                ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_LOG_STD
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_LOG_STD
LBB0_9:
	xorl	%eax, %eax
	cmpq	$512, %r12                      ## imm = 0x200
	setb	%cl
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	-48(%rbp), %rdx
	jne	LBB0_11
## %bb.10:
	movb	%cl, %al
	addq	$536, %rsp                      ## imm = 0x218
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

L_.str.1:                               ## @.str.1
	.asciz	"Written %d bytes to %s"

L_.str.2:                               ## @.str.2
	.asciz	"Nothing written!"

	.no_dead_strip	_dump_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_edid
_dump_edid:                             ; @dump_edid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #544
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x2, sp, #24
	mov	x0, #0
	mov	w1, #512
	bl	_vc_tv_hdmi_ddc_read
	cmp	w0, #512
	b.ne	LBB0_8
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	add	x0, sp, #24
	mov	w1, #1
	mov	w2, #512
	mov	x3, x21
	bl	_fwrite
	mov	x20, x0
	ldr	w23, [sp, #528]
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w22, #512
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #24
	mov	x0, x22
	mov	w1, #512
	bl	_vc_tv_hdmi_ddc_read
	cmp	w0, #512
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	w1, #1
	mov	w2, #512
	mov	x3, x21
	bl	_fwrite
	add	x20, x0, x20
	add	x22, x22, #512
	subs	w23, w23, #1
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x21
	bl	_fclose
	cbz	x20, LBB0_8
; %bb.7:
	stp	x20, x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_LOG_STD
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_LOG_STD
	mov	x20, #0
LBB0_9:
	cmp	x20, #512
	cset	w0, lo
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #544
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

l_.str.1:                               ; @.str.1
	.asciz	"Written %d bytes to %s"

l_.str.2:                               ; @.str.2
	.asciz	"Nothing written!"

	.no_dead_strip	_dump_edid
.subsections_via_symbols
