	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vbox_set_edid
_vbox_set_edid:                         ## @vbox_set_edid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$144, %rsp
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -8(%rbp)
	movaps	l___const.vbox_set_edid.edid(%rip), %xmm0
	movaps	%xmm0, -144(%rbp)
	movaps	l___const.vbox_set_edid.edid+48(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.vbox_set_edid.edid+112(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.vbox_set_edid.edid+96(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.vbox_set_edid.edid+80(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.vbox_set_edid.edid+64(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.vbox_set_edid.edid+32(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movdqa	l___const.vbox_set_edid.edid+16(%rip), %xmm0
	movdqa	%xmm0, -128(%rbp)
	leal	6(%rdx), %ecx
	imull	$60, %esi, %esi
	addl	$360, %esi                      ## imm = 0x168
	imull	%ecx, %esi
	movslq	%esi, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$44, %rcx
	addl	%esi, %ecx
	movb	%al, -132(%rbp)
	movb	%ah, -131(%rbp)
	movb	%dl, -130(%rbp)
	movb	%dh, -129(%rbp)
	movb	%cl, -90(%rbp)
	movb	%ch, -89(%rbp)
	movb	%al, -88(%rbp)
	shrl	$4, %eax
	andb	$-16, %al
	movb	%al, -86(%rbp)
	movb	%dl, -85(%rbp)
	shrl	$4, %edx
	andb	$-16, %dl
	movb	%dl, -83(%rbp)
	pxor	%xmm0, %xmm0
	movl	$13, %eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	pmovzxbd	-156(%rbp,%rax), %xmm1          ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm0, %xmm1
	pmovzxbd	-152(%rbp,%rax), %xmm2          ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	pmovzxbd	-148(%rbp,%rax), %xmm0          ## xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm2, %xmm0
	paddd	%xmm1, %xmm0
	cmpq	$125, %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	pmovzxbd	-144(%rbp,%rax), %xmm1          ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	paddd	%xmm1, %xmm0
	addq	$16, %rax
	jmp	LBB0_1
LBB0_3:
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addb	-19(%rbp), %al
	addb	-18(%rbp), %al
	negb	%al
	movb	%al, -17(%rbp)
	leaq	-144(%rbp), %rsi
	callq	_drm_connector_update_edid_property
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$144, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.vbox_set_edid.edid
l___const.vbox_set_edid.edid:
	.asciz	"\000\377\377\377\377\377\377\000XX\000\000\000\000\000\000\001\000\001\003\200\000\000x\356\356\221\243TL\231&\017PT\000\000\000\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\000\000\000\006\000\000\006\000\002\002\002\002\000\000\000\000\000\000\000\000\000\375\000\000\310\000\310d\000\n      \000\000\000\374\000VBOX monitor\n\000\000\000\020\000\n            \000"

	.no_dead_strip	_vbox_set_edid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vbox_set_edid
_vbox_set_edid:                         ; @vbox_set_edid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, l___const.vbox_set_edid.edid@PAGE
Lloh4:
	add	x8, x8, l___const.vbox_set_edid.edid@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldp	q0, q1, [x8, #64]
	stp	q0, q1, [sp, #64]
	ldp	q0, q1, [x8, #96]
	stp	q0, q1, [sp, #96]
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #32]
	add	w8, w2, #6
	mov	w9, #60
	mul	w9, w1, w9
	add	w9, w9, #360
	mul	w8, w9, w8
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w8, w8, w9, asr #12
	strb	w1, [sp, #12]
	lsr	w9, w1, #8
	strb	w9, [sp, #13]
	strb	w2, [sp, #14]
	lsr	w9, w2, #8
	strb	w9, [sp, #15]
	strb	w8, [sp, #54]
	lsr	w8, w8, #8
	strb	w8, [sp, #55]
	strb	w1, [sp, #56]
	lsr	w8, w1, #4
	and	w8, w8, #0xf0
	strb	w8, [sp, #58]
	strb	w2, [sp, #59]
	lsr	w8, w2, #4
	and	w8, w8, #0xf0
	strb	w8, [sp, #61]
	ldur	q0, [sp, #1]
	ushll2.8h	v1, v0, #0
	ushll.8h	v0, v0, #0
	ldur	q2, [sp, #17]
	ushll2.8h	v3, v2, #0
	ushll.8h	v2, v2, #0
	uaddl2.4s	v4, v0, v2
	uaddl2.4s	v5, v1, v3
	uaddl.4s	v0, v0, v2
	uaddl.4s	v1, v1, v3
	ldur	q2, [sp, #33]
	ushll.8h	v3, v2, #0
	ushll2.8h	v2, v2, #0
	uaddw.4s	v1, v1, v2
	uaddw.4s	v0, v0, v3
	uaddw2.4s	v2, v5, v2
	uaddw2.4s	v3, v4, v3
	ldur	q4, [sp, #49]
	ushll2.8h	v5, v4, #0
	ushll.8h	v4, v4, #0
	uaddw2.4s	v3, v3, v4
	uaddw2.4s	v2, v2, v5
	uaddw.4s	v0, v0, v4
	uaddw.4s	v1, v1, v5
	ldur	q4, [sp, #65]
	ushll.8h	v5, v4, #0
	ushll2.8h	v4, v4, #0
	uaddw.4s	v1, v1, v4
	uaddw.4s	v0, v0, v5
	uaddw2.4s	v2, v2, v4
	uaddw2.4s	v3, v3, v5
	ldur	q4, [sp, #81]
	ushll2.8h	v5, v4, #0
	ushll.8h	v4, v4, #0
	uaddw2.4s	v3, v3, v4
	uaddw2.4s	v2, v2, v5
	uaddw.4s	v0, v0, v4
	uaddw.4s	v1, v1, v5
	ldur	q4, [sp, #97]
	ushll.8h	v5, v4, #0
	ushll2.8h	v4, v4, #0
	uaddw.4s	v1, v1, v4
	uaddw.4s	v0, v0, v5
	uaddw2.4s	v2, v2, v4
	uaddw2.4s	v3, v3, v5
	add.4s	v2, v3, v2
	add.4s	v0, v0, v1
	add.4s	v0, v0, v2
	addv.4s	s0, v0
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], v0[0]
	ldur	d0, [sp, #113]
	ushll.8h	v0, v0, #0
	uaddw.4s	v1, v1, v0
	uaddw2.4s	v0, v1, v0
	addv.4s	s0, v0
	fmov	w8, s0
	ldrb	w9, [sp, #121]
	ldrb	w10, [sp, #122]
	ldrb	w11, [sp, #123]
	ldrb	w12, [sp, #124]
	ldrb	w13, [sp, #125]
	ldrb	w14, [sp, #126]
	add	w8, w9, w8
	add	w8, w8, w10
	add	w8, w8, w11
	add	w8, w8, w12
	add	w8, w8, w13
	add	w8, w8, w14
	neg	w8, w8
	strb	w8, [sp, #127]
	mov	x1, sp
	bl	_drm_connector_update_edid_property
	ldur	x8, [x29, #-8]
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_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.vbox_set_edid.edid:           ; @__const.vbox_set_edid.edid
	.asciz	"\000\377\377\377\377\377\377\000XX\000\000\000\000\000\000\001\000\001\003\200\000\000x\356\356\221\243TL\231&\017PT\000\000\000\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\001\000\000\000\006\000\000\006\000\002\002\002\002\000\000\000\000\000\000\000\000\000\375\000\000\310\000\310d\000\n      \000\000\000\374\000VBOX monitor\n\000\000\000\020\000\n            \000"

	.no_dead_strip	_vbox_set_edid
.subsections_via_symbols
