	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_pm_get_dynpm_state        ## -- Begin function r100_pm_get_dynpm_state
	.p2align	4, 0x90
_r100_pm_get_dynpm_state:               ## @r100_pm_get_dynpm_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rdi)
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	16(%rdi), %r8d
	movl	24(%rdi), %edx
	leal	-1(%rdx), %ecx
	cmpl	%ecx, %r8d
	jne	LBB0_13
## %bb.3:
	movl	%r8d, 12(%rdi)
	movl	$0, (%rdi)
	jmp	LBB0_26
LBB0_4:
	leaq	L_.str(%rip), %rdi
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_5:
	movl	$0, 12(%rdi)
	movl	$0, 4(%rdi)
	jmp	LBB0_26
LBB0_6:
	movl	16(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_18
## %bb.7:
	movl	20(%rdi), %r8d
	cmpl	$2, %r8d
	jl	LBB0_19
## %bb.8:
	movl	24(%rdi), %edx
	testl	%edx, %edx
	jle	LBB0_22
## %bb.9:
	movq	40(%rdi), %rax
	movq	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%ecx, (%rax)
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	addq	$16, %rax
	cmpq	%rsi, %rdx
	jne	LBB0_10
	jmp	LBB0_21
LBB0_12:
	movl	28(%rdi), %eax
	movl	%eax, 12(%rdi)
	movl	$0, (%rdi)
	jmp	LBB0_26
LBB0_13:
	cmpl	$2, 20(%rdi)
	jl	LBB0_24
## %bb.14:
	testl	%edx, %edx
	jle	LBB0_26
## %bb.15:
	movq	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, %ecx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	addq	40(%rdi), %rsi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rsi)
	je	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	-1(%rcx), %rax
	addq	$-16, %rsi
	testq	%rcx, %rcx
	movq	%rax, %rcx
	jg	LBB0_16
	jmp	LBB0_26
LBB0_18:
	movl	$0, 12(%rdi)
	movl	$0, 4(%rdi)
	movl	20(%rdi), %r8d
	testl	%r8d, %r8d
	jg	LBB0_22
	jmp	LBB0_26
LBB0_19:
	decl	%r9d
LBB0_20:
	movl	%r9d, 12(%rdi)
LBB0_21:
	testl	%r8d, %r8d
	jle	LBB0_26
LBB0_22:
	movq	40(%rdi), %rcx
	movslq	12(%rdi), %rax
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rcx
	movq	_RADEON_PM_MODE_NO_DISPLAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_26
## %bb.23:
	incl	%eax
	movl	%eax, 12(%rdi)
	jmp	LBB0_26
LBB0_24:
	incl	%r8d
LBB0_25:
	movl	%r8d, 12(%rdi)
LBB0_26:
	movq	$0, 32(%rdi)
	movq	40(%rdi), %rax
	movslq	12(%rdi), %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rsi
	movl	4(%rsi), %edx
	movl	8(%rsi), %esi
	movl	4(%rax,%rcx), %ecx
	leaq	L_.str.1(%rip), %rdi
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_27:
	cmpl	%esi, %r9d
	jle	LBB0_20
## %bb.28:
	movl	%esi, 12(%rdi)
	testl	%r8d, %r8d
	jg	LBB0_22
	jmp	LBB0_26
LBB0_29:
	cmpl	%ecx, %r8d
	jge	LBB0_25
## %bb.30:
	movl	%ecx, 12(%rdi)
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,4,2 ## @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ## @RADEON_PM_MODE_NO_DISPLAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requested mode for not defined action\n"

L_.str.1:                               ## @.str.1
	.asciz	"Requested: e: %d m: %d p: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_pm_get_dynpm_state        ; -- Begin function r100_pm_get_dynpm_state
	.p2align	2
_r100_pm_get_dynpm_state:               ; @r100_pm_get_dynpm_state
	.cfi_startproc
; %bb.0:
	movi.2s	v0, #1
	str	d0, [x0]
	ldr	w8, [x0, #8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x0, #16]
	ldr	w10, [x0, #24]
	sub	w9, w10, #1
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.3:
	ldr	w11, [x0, #20]
	cmp	w11, #2
	b.lt	LBB0_24
; %bb.4:
	cmp	w10, #1
	b.lt	LBB0_26
; %bb.5:
	ldr	x11, [x0, #40]
Lloh2:
	adrp	x10, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	add	x11, x11, w9, uxtw #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	tst	w10, w12
	b.eq	LBB0_29
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	x12, x9, #1
	sub	x11, x11, #16
	cmp	x9, #0
	mov	x9, x12
	b.gt	LBB0_6
	b	LBB0_26
LBB0_8:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	_DRM_ERROR
LBB0_9:
	str	wzr, [x0, #12]
	str	wzr, [x0, #4]
	b	LBB0_26
LBB0_10:
	ldr	w9, [x0, #16]
	cbz	w9, LBB0_18
; %bb.11:
	ldr	w8, [x0, #20]
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.12:
	ldr	w11, [x0, #24]
	cmp	w11, #1
	b.lt	LBB0_22
; %bb.13:
	mov	x10, #0
	ldr	x12, [x0, #40]
Lloh7:
	adrp	x13, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGE
Lloh8:
	ldr	x13, [x13, _RADEON_PM_STATE_SINGLE_DISPLAY_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w13, [x13]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12]
	tst	w13, w14
	b.eq	LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	add	x12, x12, #16
	cmp	x11, x10
	b.ne	LBB0_14
	b	LBB0_21
LBB0_16:
	ldr	w8, [x0, #28]
LBB0_17:
	str	w8, [x0, #12]
	str	wzr, [x0]
	b	LBB0_26
LBB0_18:
	str	wzr, [x0, #12]
	str	wzr, [x0, #4]
	ldr	w8, [x0, #20]
	cmp	w8, #1
	b.ge	LBB0_22
	b	LBB0_26
LBB0_19:
	sub	w9, w9, #1
LBB0_20:
	str	w9, [x0, #12]
LBB0_21:
	cmp	w8, #1
	b.lt	LBB0_26
LBB0_22:
	ldr	x9, [x0, #40]
	ldrsw	x8, [x0, #12]
	add	x9, x9, x8, lsl #4
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RADEON_PM_MODE_NO_DISPLAY@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_26
; %bb.23:
	add	w8, w8, #1
	b	LBB0_25
LBB0_24:
	add	w8, w8, #1
LBB0_25:
	str	w8, [x0, #12]
LBB0_26:
	str	xzr, [x0, #32]
	ldr	x8, [x0, #40]
	ldrsw	x9, [x0, #12]
	add	x8, x8, x9, lsl #4
	ldr	x9, [x8, #8]
	ldp	w2, w1, [x9, #4]
	ldr	w3, [x8, #4]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	_DRM_DEBUG_DRIVER
LBB0_27:
	cmp	w9, w10
	b.le	LBB0_20
; %bb.28:
	str	w10, [x0, #12]
	cmp	w8, #1
	b.ge	LBB0_22
	b	LBB0_26
LBB0_29:
	cmp	w8, w9
	b.ge	LBB0_25
; %bb.30:
	str	w9, [x0, #12]
	b	LBB0_26
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.comm	_RADEON_PM_STATE_SINGLE_DISPLAY_ONLY,4,2 ; @RADEON_PM_STATE_SINGLE_DISPLAY_ONLY
	.comm	_RADEON_PM_MODE_NO_DISPLAY,4,2  ; @RADEON_PM_MODE_NO_DISPLAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requested mode for not defined action\n"

l_.str.1:                               ; @.str.1
	.asciz	"Requested: e: %d m: %d p: %d\n"

.subsections_via_symbols
