	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_virtual_connector_encoder_init
_dce_virtual_connector_encoder_init:    ## @dce_virtual_connector_encoder_init
	.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	%esi, %ebx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	movl	%eax, (%r12)
	movl	(%r15), %edi
	movq	_DRM_MODE_ENCODER_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dce_virtual_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_dce_virtual_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_encoder_helper_add
	movl	(%r13), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	_DRM_MODE_CONNECTOR_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dce_virtual_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%rbx, %rsi
	callq	_drm_connector_init
	movq	_dce_virtual_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movq	_SubPixelHorizontalRGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_drm_connector_register
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_drm_connector_attach_encoder
	jmp	LBB0_5
LBB0_3:
	movq	%r12, %rdi
	callq	_kfree
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dce_virtual_encoder_funcs,4,2  ## @dce_virtual_encoder_funcs
	.comm	_DRM_MODE_ENCODER_VIRTUAL,4,2   ## @DRM_MODE_ENCODER_VIRTUAL
	.comm	_dce_virtual_encoder_helper_funcs,4,2 ## @dce_virtual_encoder_helper_funcs
	.comm	_dce_virtual_connector_funcs,4,2 ## @dce_virtual_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ## @DRM_MODE_CONNECTOR_VIRTUAL
	.comm	_dce_virtual_connector_helper_funcs,4,2 ## @dce_virtual_connector_helper_funcs
	.comm	_SubPixelHorizontalRGB,4,2      ## @SubPixelHorizontalRGB
	.no_dead_strip	_dce_virtual_connector_encoder_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce_virtual_connector_encoder_init
_dce_virtual_connector_encoder_init:    ; @dce_virtual_connector_encoder_init
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	lsl	w8, w8, w21
	str	w8, [x0]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _DRM_MODE_ENCODER_VIRTUAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_ENCODER_VIRTUAL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _dce_virtual_encoder_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _dce_virtual_encoder_funcs@GOTPAGEOFF]
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
Lloh7:
	adrp	x1, _dce_virtual_encoder_helper_funcs@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dce_virtual_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
	ldr	w1, [x22]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_VIRTUAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x2, _dce_virtual_connector_funcs@GOTPAGE
Lloh13:
	ldr	x2, [x2, _dce_virtual_connector_funcs@GOTPAGEOFF]
	mov	x1, x21
	bl	_drm_connector_init
Lloh14:
	adrp	x1, _dce_virtual_connector_helper_funcs@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dce_virtual_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_connector_helper_add
Lloh16:
	adrp	x8, _SubPixelHorizontalRGB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SubPixelHorizontalRGB@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	xzr, [x21]
	mov	x0, x21
	bl	_drm_connector_register
	mov	x0, x21
	mov	x1, x19
	bl	_drm_connector_attach_encoder
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_kfree
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dce_virtual_encoder_funcs,4,2  ; @dce_virtual_encoder_funcs
	.comm	_DRM_MODE_ENCODER_VIRTUAL,4,2   ; @DRM_MODE_ENCODER_VIRTUAL
	.comm	_dce_virtual_encoder_helper_funcs,4,2 ; @dce_virtual_encoder_helper_funcs
	.comm	_dce_virtual_connector_funcs,4,2 ; @dce_virtual_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_VIRTUAL,4,2 ; @DRM_MODE_CONNECTOR_VIRTUAL
	.comm	_dce_virtual_connector_helper_funcs,4,2 ; @dce_virtual_connector_helper_funcs
	.comm	_SubPixelHorizontalRGB,4,2      ; @SubPixelHorizontalRGB
	.no_dead_strip	_dce_virtual_connector_encoder_init
.subsections_via_symbols
