	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_drm_encoder_init
_dw_drm_encoder_init:                   ## @dw_drm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	(%rdi), %esi
	movq	%rbx, %rdi
	callq	_drm_of_find_possible_crtcs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, (%r14)
	movq	_DRM_MODE_ENCODER_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dw_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movl	%ebx, %r15d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	_dw_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_encoder_helper_add
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find crtc mask\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dw_encoder_funcs,4,2           ## @dw_encoder_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ## @DRM_MODE_ENCODER_DSI
L_.str.1:                               ## @.str.1
	.asciz	"failed to init dsi encoder\n"

	.comm	_dw_encoder_helper_funcs,4,2    ## @dw_encoder_helper_funcs
	.no_dead_strip	_dw_drm_encoder_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_drm_encoder_init
_dw_drm_encoder_init:                   ; @dw_drm_encoder_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	ldr	w1, [x0]
	mov	x0, x20
	bl	_drm_of_find_possible_crtcs
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x19]
Lloh0:
	adrp	x8, _DRM_MODE_ENCODER_DSI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DSI@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _dw_encoder_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _dw_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x1, _dw_encoder_helper_funcs@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dw_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find crtc mask\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dw_encoder_funcs,4,2           ; @dw_encoder_funcs
	.comm	_DRM_MODE_ENCODER_DSI,4,2       ; @DRM_MODE_ENCODER_DSI
l_.str.1:                               ; @.str.1
	.asciz	"failed to init dsi encoder\n"

	.comm	_dw_encoder_helper_funcs,4,2    ; @dw_encoder_helper_funcs
	.no_dead_strip	_dw_drm_encoder_init
.subsections_via_symbols
