	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_mw_connector_init       ## -- Begin function malidp_mw_connector_init
	.p2align	4, 0x90
_malidp_mw_connector_init:              ## @malidp_mw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	8(%rbx), %rdi
	callq	_drm_crtc_index
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 4(%rbx)
	movq	_malidp_mw_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_writeback_formats
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movl	-28(%rbp), %r9d
	movq	_malidp_mw_connector_funcs@GOTPCREL(%rip), %rdx
	movq	_malidp_mw_encoder_helper_funcs@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %r8
	callq	_drm_writeback_connector_init
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_malidp_mw_connector_helper_funcs,4,2 ## @malidp_mw_connector_helper_funcs
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_malidp_mw_connector_funcs,4,2  ## @malidp_mw_connector_funcs
	.comm	_malidp_mw_encoder_helper_funcs,4,2 ## @malidp_mw_encoder_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_malidp_mw_connector_init       ; -- Begin function malidp_mw_connector_init
	.p2align	2
_malidp_mw_connector_init:              ; @malidp_mw_connector_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x19, #8
	bl	_drm_crtc_index
	mov	w8, #1
	lsl	w8, w8, w0
	str	w8, [x19, #4]
Lloh0:
	adrp	x1, _malidp_mw_connector_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _malidp_mw_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
	add	x1, sp, #12
	mov	x0, x19
	bl	_get_writeback_formats
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w5, [sp, #12]
Lloh2:
	adrp	x2, _malidp_mw_connector_funcs@GOTPAGE
Lloh3:
	ldr	x2, [x2, _malidp_mw_connector_funcs@GOTPAGEOFF]
Lloh4:
	adrp	x3, _malidp_mw_encoder_helper_funcs@GOTPAGE
Lloh5:
	ldr	x3, [x3, _malidp_mw_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x21
	bl	_drm_writeback_connector_init
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_malidp_mw_connector_helper_funcs,4,2 ; @malidp_mw_connector_helper_funcs
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_malidp_mw_connector_funcs,4,2  ; @malidp_mw_connector_funcs
	.comm	_malidp_mw_encoder_helper_funcs,4,2 ; @malidp_mw_encoder_helper_funcs
.subsections_via_symbols
