	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bochs_hw_load_edid             ## -- Begin function bochs_hw_load_edid
	.p2align	4, 0x90
_bochs_hw_load_edid:                    ## @bochs_hw_load_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$-1, %r14d
	cmpl	$0, 12(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_bochs_get_edid_block
	movq	%r15, %rdi
	callq	_drm_edid_header_is_valid
	cmpl	$8, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	callq	_kfree
	leaq	8(%rbx), %rdi
	movq	_bochs_get_edid_block@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdx
	callq	_drm_do_get_edid
	movq	%rax, (%rbx)
	cmpq	$1, %rax
	sbbl	%r12d, %r12d
	movl	%r12d, %r14d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bochs_hw_load_edid             ; -- Begin function bochs_hw_load_edid
	.p2align	2
_bochs_hw_load_edid:                    ; @bochs_hw_load_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_bochs_get_edid_block
	add	x0, sp, #8
	bl	_drm_edid_header_is_valid
	cmp	w0, #8
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x19]
	bl	_kfree
	add	x0, x19, #8
Lloh3:
	adrp	x1, _bochs_get_edid_block@GOTPAGE
Lloh4:
	ldr	x1, [x1, _bochs_get_edid_block@GOTPAGEOFF]
	mov	x2, x19
	bl	_drm_do_get_edid
	str	x0, [x19]
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
