	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_drm_create_encoder
_rockchip_dp_drm_create_encoder:        ## @rockchip_dp_drm_create_encoder
	.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
	leaq	16(%rdi), %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_drm_of_find_possible_crtcs
	movl	%eax, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rockchip_dp_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	_rockchip_dp_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_encoder_helper_add
LBB0_3:
	movl	%ebx, %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	"possible_crtcs = 0x%x\n"

	.comm	_rockchip_dp_encoder_funcs,4,2  ## @rockchip_dp_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize encoder with drm\n"

	.comm	_rockchip_dp_encoder_helper_funcs,4,2 ## @rockchip_dp_encoder_helper_funcs
	.no_dead_strip	_rockchip_dp_drm_create_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_drm_create_encoder
_rockchip_dp_drm_create_encoder:        ; @rockchip_dp_drm_create_encoder
	.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, x0
	ldp	x8, x20, [x0]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_drm_of_find_possible_crtcs
	mov	x1, x0
	str	w0, [x19, #16]!
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _rockchip_dp_encoder_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _rockchip_dp_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x1, _rockchip_dp_encoder_helper_funcs@GOTPAGE
Lloh10:
	ldr	x1, [x1, _rockchip_dp_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"possible_crtcs = 0x%x\n"

	.comm	_rockchip_dp_encoder_funcs,4,2  ; @rockchip_dp_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize encoder with drm\n"

	.comm	_rockchip_dp_encoder_helper_funcs,4,2 ; @rockchip_dp_encoder_helper_funcs
	.no_dead_strip	_rockchip_dp_drm_create_encoder
.subsections_via_symbols
