	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_dp_create_fake_mst_encoder
_radeon_dp_create_fake_mst_encoder:     ## @radeon_dp_create_fake_mst_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	%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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	(%r12), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	*(%rax)
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_DRM_DEBUG_KMS
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%r13), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %r13
	addq	$16, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	decl	%ecx
	movl	$3, %eax
	cmpl	$5, %ecx
	ja	LBB0_4
## %bb.3:
	movslq	%ecx, %rax
	leaq	l_switch.table.radeon_dp_create_fake_mst_encoder(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_4:
	movl	%eax, 16(%rbx)
	movq	_DRM_MODE_ENCODER_DPMST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_radeon_dp_mst_enc_funcs@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_radeon_mst_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_encoder_helper_add
	movq	8(%rbx), %r12
	movq	%r14, 8(%r12)
	movq	%r15, %rdi
	callq	_to_radeon_encoder
	movl	%eax, (%r12)
	movl	$1, (%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enc master is %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_radeon_dp_mst_enc_funcs,4,2    ## @radeon_dp_mst_enc_funcs
	.comm	_DRM_MODE_ENCODER_DPMST,4,2     ## @DRM_MODE_ENCODER_DPMST
	.comm	_radeon_mst_helper_funcs,4,2    ## @radeon_mst_helper_funcs
	.no_dead_strip	_radeon_dp_create_fake_mst_encoder
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.radeon_dp_create_fake_mst_encoder
l_switch.table.radeon_dp_create_fake_mst_encoder:
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	15                              ## 0xf
	.long	3                               ## 0x3
	.long	63                              ## 0x3f

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_dp_create_fake_mst_encoder
_radeon_dp_create_fake_mst_encoder:     ; @radeon_dp_create_fake_mst_encoder
	.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, x0
	ldp	x8, x22, [x0]
	ldr	x24, [x22]
	ldr	x8, [x8]
	blr	x8
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_DRM_DEBUG_KMS
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #24
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w1, [x23]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
; %bb.2:
	add	x23, x20, #16
	ldr	w8, [x24]
	sub	w8, w8, #1
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.3:
Lloh4:
	adrp	x9, l_switch.table.radeon_dp_create_fake_mst_encoder@PAGE
Lloh5:
	add	x9, x9, l_switch.table.radeon_dp_create_fake_mst_encoder@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
	b	LBB0_7
LBB0_5:
	mov	w8, #3
LBB0_6:
	str	w8, [x20, #16]
Lloh6:
	adrp	x8, _DRM_MODE_ENCODER_DPMST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ENCODER_DPMST@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, _radeon_dp_mst_enc_funcs@GOTPAGE
Lloh10:
	ldr	x2, [x2, _radeon_dp_mst_enc_funcs@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x23
	mov	x4, #0
	bl	_drm_encoder_init
Lloh11:
	adrp	x1, _radeon_mst_helper_funcs@GOTPAGE
Lloh12:
	ldr	x1, [x1, _radeon_mst_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_encoder_helper_add
	ldr	x22, [x20, #8]
	str	x19, [x22, #8]
	mov	x0, x21
	bl	_to_radeon_encoder
	str	w0, [x22]
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
	mov	x0, x20
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enc master is %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_radeon_dp_mst_enc_funcs,4,2    ; @radeon_dp_mst_enc_funcs
	.comm	_DRM_MODE_ENCODER_DPMST,4,2     ; @DRM_MODE_ENCODER_DPMST
	.comm	_radeon_mst_helper_funcs,4,2    ; @radeon_mst_helper_funcs
	.no_dead_strip	_radeon_dp_create_fake_mst_encoder
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.radeon_dp_create_fake_mst_encoder
l_switch.table.radeon_dp_create_fake_mst_encoder:
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	15                              ; 0xf
	.long	3                               ; 0x3
	.long	63                              ; 0x3f

.subsections_via_symbols
