	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_dm_encoder_init
_amdgpu_dm_encoder_init:                ## @amdgpu_dm_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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	leaq	4(%rsi), %r15
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_amdgpu_dm_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_amdgpu_dm_get_encoder_crtc_mask
	movl	%eax, 4(%rbx)
	movl	%r13d, %eax
	negl	%eax
	sbbl	%r14d, %r14d
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, (%rbx)
	movq	_amdgpu_dm_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_encoder_helper_add
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdgpu_dm_encoder_funcs,4,2    ## @amdgpu_dm_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_amdgpu_dm_encoder_helper_funcs,4,2 ## @amdgpu_dm_encoder_helper_funcs
	.no_dead_strip	_amdgpu_dm_encoder_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_dm_encoder_init
_amdgpu_dm_encoder_init:                ; @amdgpu_dm_encoder_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	add	x22, x1, #4
Lloh0:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _amdgpu_dm_encoder_funcs@GOTPAGE
Lloh4:
	ldr	x2, [x2, _amdgpu_dm_encoder_funcs@GOTPAGEOFF]
	mov	x1, x22
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x23, x0
	mov	x0, x21
	bl	_amdgpu_dm_get_encoder_crtc_mask
	cmp	w23, #0
	csinv	w8, w19, wzr, eq
	stp	w8, w0, [x20]
Lloh5:
	adrp	x1, _amdgpu_dm_encoder_helper_funcs@GOTPAGE
Lloh6:
	ldr	x1, [x1, _amdgpu_dm_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_encoder_helper_add
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_amdgpu_dm_encoder_funcs,4,2    ; @amdgpu_dm_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_amdgpu_dm_encoder_helper_funcs,4,2 ; @amdgpu_dm_encoder_helper_funcs
	.no_dead_strip	_amdgpu_dm_encoder_init
.subsections_via_symbols
