	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_virtual_dp_monitor
_setup_virtual_dp_monitor:              ## @setup_virtual_dp_monitor
	.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	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %r14
	callq	_intel_vgpu_port
	movq	%rax, %rbx
	movq	_GVT_EDID_NUM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r12d, (%rax)
	setbe	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r13), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rdi), %rdi
	movq	_virtual_dp_monitor_edid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %esi
	movq	_EDID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	16(%rbx), %rax
	movl	$1, 8(%rax)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	movq	_dpcd_fix_data@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DPCD_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	$1, 8(%rax)
	movq	(%rax), %rax
	movq	_DPCD_SINK_COUNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rax,%rcx,4)
	movl	%r15d, (%rbx)
	movl	%r12d, 4(%rbx)
	movq	%r14, %rdi
	callq	_emulate_monitor_status_change
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_GVT_EDID_NUM,4,2               ## @GVT_EDID_NUM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_virtual_dp_monitor_edid,8,3    ## @virtual_dp_monitor_edid
	.comm	_EDID_SIZE,4,2                  ## @EDID_SIZE
	.comm	_dpcd_fix_data,4,2              ## @dpcd_fix_data
	.comm	_DPCD_HEADER_SIZE,4,2           ## @DPCD_HEADER_SIZE
	.comm	_DPCD_SINK_COUNT,8,3            ## @DPCD_SINK_COUNT
	.no_dead_strip	_setup_virtual_dp_monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_virtual_dp_monitor
_setup_virtual_dp_monitor:              ; @setup_virtual_dp_monitor
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	bl	_intel_vgpu_port
	mov	x22, x0
Lloh0:
	adrp	x8, _GVT_EDID_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GVT_EDID_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, ls
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x22, #16]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	mov	x8, x0
	str	x0, [x22, #8]
	ldr	x0, [x22, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x0]
Lloh7:
	adrp	x8, _virtual_dp_monitor_edid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _virtual_dp_monitor_edid@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, uxtw #2]
Lloh10:
	adrp	x8, _EDID_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EDID_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_memcpy
	mov	w23, #1
	ldp	x9, x8, [x22, #8]
	str	w23, [x8, #8]
	ldr	x0, [x9]
Lloh13:
	adrp	x8, _dpcd_fix_data@GOTPAGE
Lloh14:
	ldr	x8, [x8, _dpcd_fix_data@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DPCD_HEADER_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DPCD_HEADER_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x22, #8]
	str	w23, [x8, #8]
Lloh19:
	adrp	x9, _DPCD_SINK_COUNT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DPCD_SINK_COUNT@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh21:
	ldr	x9, [x9]
	str	w23, [x8, x9, lsl #2]
	stp	w21, w19, [x22]
	mov	x0, x20
	bl	_emulate_monitor_status_change
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	bl	_kfree
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GVT_EDID_NUM,4,2               ; @GVT_EDID_NUM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_virtual_dp_monitor_edid,8,3    ; @virtual_dp_monitor_edid
	.comm	_EDID_SIZE,4,2                  ; @EDID_SIZE
	.comm	_dpcd_fix_data,4,2              ; @dpcd_fix_data
	.comm	_DPCD_HEADER_SIZE,4,2           ; @DPCD_HEADER_SIZE
	.comm	_DPCD_SINK_COUNT,8,3            ; @DPCD_SINK_COUNT
	.no_dead_strip	_setup_virtual_dp_monitor
.subsections_via_symbols
