	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bochs_get_edid_block
_bochs_get_edid_block:                  ## @bochs_get_edid_block
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	%rcx, %r15
	addq	%rbx, %rcx
	movl	$-1, %eax
	cmpq	$1024, %rcx                     ## imm = 0x400
	ja	LBB0_5
## %bb.1:
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%r14), %rdi
	addq	(%r13), %rdi
	callq	_readb
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_3
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.no_dead_strip	_bochs_get_edid_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bochs_get_edid_block
_bochs_get_edid_block:                  ; @bochs_get_edid_block
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _EDID_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDID_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w22, w8, w2
	add	x8, x22, x3
	cmp	x8, #1024
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x19, x3
	cbz	x3, LBB0_5
; %bb.3:
	mov	x20, x1
	mov	x21, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x22, x8
	bl	_readb
	str	w0, [x20], #4
	add	x22, x22, #1
	subs	x19, x19, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.no_dead_strip	_bochs_get_edid_block
.subsections_via_symbols
