	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_writeback_connector_init   ## -- Begin function drm_writeback_connector_init
	.p2align	4, 0x90
_drm_writeback_connector_init:          ## @drm_writeback_connector_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_create_writeback_properties
	testl	%eax, %eax
	je	LBB0_1
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	shll	$2, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_drm_property_create_blob
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	%r12, %r15
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_VIRTUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_drm_writeback_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r14, %r12
	leaq	40(%r15), %r14
	movq	$0, 56(%r15)
	movq	_DRM_MODE_CONNECTOR_WRITEBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_drm_connector_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_drm_connector_cleanup
LBB0_7:
	movq	%r15, %rdi
	callq	_drm_encoder_cleanup
LBB0_8:
	movq	%r13, %rdi
	callq	_drm_property_blob_put
	movl	%ebx, %eax
	jmp	LBB0_9
LBB0_5:
	leaq	32(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%r15), %rdi
	callq	_spin_lock_init
	movl	$1, %edi
	callq	_dma_fence_context_alloc
	movl	%eax, 24(%r15)
	leaq	20(%r15), %rdi
	callq	_spin_lock_init
	movl	16(%r15), %edi
	leaq	48(%r15), %r14
	movl	48(%r15), %ecx
	movq	40(%r15), %r8
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	8(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	4(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_drm_object_attach_property
	xorl	%eax, %eax
	movq	%r13, 8(%r15)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_writeback_encoder_funcs,4,2 ## @drm_writeback_encoder_funcs
	.comm	_DRM_MODE_ENCODER_VIRTUAL,4,2   ## @DRM_MODE_ENCODER_VIRTUAL
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,4,2 ## @DRM_MODE_CONNECTOR_WRITEBACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CONNECTOR:%d-%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_writeback_connector_init   ; -- Begin function drm_writeback_connector_init
	.p2align	2
_drm_writeback_connector_init:          ; @drm_writeback_connector_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x5
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_create_writeback_properties
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	lsl	w1, w25, #2
	mov	x0, x21
	mov	x2, x20
	bl	_drm_property_create_blob
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	mov	x0, x19
	mov	x1, x24
	bl	_drm_encoder_helper_add
Lloh0:
	adrp	x8, _DRM_MODE_ENCODER_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ENCODER_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _drm_writeback_encoder_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _drm_writeback_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.5:
	add	x24, x19, #40
	str	xzr, [x19, #56]
Lloh5:
	adrp	x8, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_WRITEBACK@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x22
	bl	_drm_connector_init
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x24
	mov	x1, x19
	bl	_drm_connector_attach_encoder
	mov	x23, x0
	cbz	w0, LBB0_10
; %bb.7:
	mov	x0, x24
	bl	_drm_connector_cleanup
LBB0_8:
	mov	x0, x19
	bl	_drm_encoder_cleanup
LBB0_9:
	mov	x0, x20
	bl	_drm_property_blob_put
	b	LBB0_1
LBB0_10:
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_spin_lock_init
	mov	w0, #1
	bl	_dma_fence_context_alloc
	str	w0, [x19, #24]
	add	x0, x19, #20
	bl	_spin_lock_init
	ldr	w3, [x19, #48]!
	ldur	w0, [x19, #-32]
	ldur	x4, [x19, #-8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w1, [x21, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x21, #4]
	mov	x0, x19
	mov	w2, #0
	bl	_drm_object_attach_property
	ldr	w1, [x21]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_drm_object_attach_property
	stur	x20, [x19, #-40]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_writeback_encoder_funcs,4,2 ; @drm_writeback_encoder_funcs
	.comm	_DRM_MODE_ENCODER_VIRTUAL,4,2   ; @DRM_MODE_ENCODER_VIRTUAL
	.comm	_DRM_MODE_CONNECTOR_WRITEBACK,4,2 ; @DRM_MODE_CONNECTOR_WRITEBACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CONNECTOR:%d-%s"

.subsections_via_symbols
