	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_early_init
_dm_early_init:                         ## @dm_early_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %esi
	leal	-128(%rsi), %eax
	cmpl	$21, %eax
	jae	LBB0_1
## %bb.2:
	movl	$2082623, %ecx                  ## imm = 0x1FC73F
	btl	%eax, %ecx
	jb	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	cltq
	leaq	l_switch.table.dm_early_init(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	l_switch.table.dm_early_init.1(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
	leaq	l_switch.table.dm_early_init.2(%rip), %rsi
	movl	(%rsi,%rax,4), %eax
	movl	%ecx, 16(%rdi)
	movl	%edx, 20(%rdi)
	movl	%eax, 24(%rdi)
	callq	_amdgpu_dm_set_irq_funcs
	xorl	%eax, %eax
	cmpq	$0, 32(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_dm_display_funcs@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rbx)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported ASIC type: 0x%X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dm_display_funcs,4,2           ## @dm_display_funcs
	.comm	_dev_attr_s3_debug,4,2          ## @dev_attr_s3_debug
	.no_dead_strip	_dm_early_init
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dm_early_init
l_switch.table.dm_early_init:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	3                               ## 0x3
	.long	6                               ## 0x6

	.p2align	2                               ## @switch.table.dm_early_init.1
l_switch.table.dm_early_init.1:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6

	.p2align	2                               ## @switch.table.dm_early_init.2
l_switch.table.dm_early_init.2:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	9                               ## 0x9
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.long	7                               ## 0x7
	.long	9                               ## 0x9
	.long	6                               ## 0x6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_early_init
_dm_early_init:                         ; @dm_early_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
	ldr	w1, [x0]
	sub	w8, w1, #128
	cmp	w8, #21
	b.hs	LBB0_2
; %bb.1:
	mov	w9, #51007
	movk	w9, #31, lsl #16
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	sbfiz	x8, x8, #2, #32
Lloh5:
	adrp	x9, l_switch.table.dm_early_init@PAGE
Lloh6:
	add	x9, x9, l_switch.table.dm_early_init@PAGEOFF
	ldr	w9, [x9, x8]
Lloh7:
	adrp	x10, l_switch.table.dm_early_init.1@PAGE
Lloh8:
	add	x10, x10, l_switch.table.dm_early_init.1@PAGEOFF
	ldr	w10, [x10, x8]
Lloh9:
	adrp	x11, l_switch.table.dm_early_init.2@PAGE
Lloh10:
	add	x11, x11, l_switch.table.dm_early_init.2@PAGEOFF
	ldr	w8, [x11, x8]
	stp	w9, w10, [x0, #16]
	str	w8, [x0, #24]
	bl	_amdgpu_dm_set_irq_funcs
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_3
LBB0_6:
	mov	w0, #0
Lloh11:
	adrp	x8, _dm_display_funcs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dm_display_funcs@GOTPAGEOFF]
	str	x8, [x19, #32]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported ASIC type: 0x%X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dm_display_funcs,4,2           ; @dm_display_funcs
	.comm	_dev_attr_s3_debug,4,2          ; @dev_attr_s3_debug
	.no_dead_strip	_dm_early_init
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dm_early_init
l_switch.table.dm_early_init:
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	2                               ; 0x2
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	3                               ; 0x3
	.long	6                               ; 0x6

	.p2align	2                               ; @switch.table.dm_early_init.1
l_switch.table.dm_early_init.1:
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6

	.p2align	2                               ; @switch.table.dm_early_init.2
l_switch.table.dm_early_init.2:
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	9                               ; 0x9
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	6                               ; 0x6
	.long	6                               ; 0x6
	.long	7                               ; 0x7
	.long	9                               ; 0x9
	.long	6                               ; 0x6

.subsections_via_symbols
