	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_check_fw_write_wait
_gfx_v9_0_check_fw_write_wait:          ## @gfx_v9_0_check_fw_write_wait
	.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
	movq	%rdi, %rbx
	movq	$0, 4(%rdi)
	cmpl	$421, 12(%rdi)                  ## imm = 0x1A5
	jl	LBB0_4
## %bb.1:
	cmpl	$46, 16(%rbx)
	jl	LBB0_4
## %bb.2:
	cmpl	$183, 20(%rbx)
	jl	LBB0_4
## %bb.3:
	cmpl	$45, 24(%rbx)
	jg	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_WARN_ONCE
LBB0_5:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_35
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_21:
	cmpl	$156, 28(%rbx)
	jl	LBB0_26
## %bb.22:
	cmpl	$44, 32(%rbx)
	jl	LBB0_26
## %bb.23:
	cmpl	$178, 20(%rbx)
	jl	LBB0_26
## %bb.24:
	cmpl	$44, 24(%rbx)
	jl	LBB0_26
## %bb.25:
	movl	$1, 4(%rbx)
LBB0_26:
	cmpl	$407, 12(%rbx)                  ## imm = 0x197
	jge	LBB0_20
	jmp	LBB0_35
LBB0_7:
	cmpl	$156, 28(%rbx)
	jl	LBB0_12
## %bb.8:
	cmpl	$42, 32(%rbx)
	jl	LBB0_12
## %bb.9:
	cmpl	$177, 20(%rbx)
	jl	LBB0_12
## %bb.10:
	cmpl	$42, 24(%rbx)
	jl	LBB0_12
## %bb.11:
	movl	$1, 4(%rbx)
LBB0_12:
	cmpl	$403, 12(%rbx)                  ## imm = 0x193
	jl	LBB0_35
## %bb.13:
	cmpl	$41, 16(%rbx)
	jg	LBB0_34
	jmp	LBB0_35
LBB0_27:
	cmpl	$156, 28(%rbx)
	jl	LBB0_32
## %bb.28:
	cmpl	$42, 32(%rbx)
	jl	LBB0_32
## %bb.29:
	cmpl	$177, 20(%rbx)
	jl	LBB0_32
## %bb.30:
	cmpl	$42, 24(%rbx)
	jl	LBB0_32
## %bb.31:
	movl	$1, 4(%rbx)
LBB0_32:
	cmpl	$402, 12(%rbx)                  ## imm = 0x192
	jl	LBB0_35
## %bb.33:
	cmpl	$42, 16(%rbx)
	jge	LBB0_34
	jmp	LBB0_35
LBB0_14:
	cmpl	$156, 28(%rbx)
	jl	LBB0_19
## %bb.15:
	cmpl	$44, 32(%rbx)
	jl	LBB0_19
## %bb.16:
	cmpl	$178, 20(%rbx)
	jl	LBB0_19
## %bb.17:
	cmpl	$44, 24(%rbx)
	jl	LBB0_19
## %bb.18:
	movl	$1, 4(%rbx)
LBB0_19:
	cmpl	$406, 12(%rbx)                  ## imm = 0x196
	jl	LBB0_35
LBB0_20:
	cmpl	$43, 16(%rbx)
	jle	LBB0_35
LBB0_34:
	movl	$1, 8(%rbx)
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
LJTI0_0:
	.long	L0_0_set_21
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_27
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: check cp_fw_version and update it to realize \t\t\t      GRBM requires 1-cycle delay in cp firmware\n"

	.no_dead_strip	_gfx_v9_0_check_fw_write_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_check_fw_write_wait
_gfx_v9_0_check_fw_write_wait:          ; @gfx_v9_0_check_fw_write_wait
	.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
	stp	wzr, wzr, [x0, #4]
	ldr	w8, [x0, #12]
	cmp	w8, #421
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x19, #16]
	cmp	w8, #46
	b.lt	LBB0_4
; %bb.2:
	ldr	w8, [x19, #20]
	cmp	w8, #183
	b.lt	LBB0_4
; %bb.3:
	ldr	w8, [x19, #24]
	cmp	w8, #45
	b.gt	LBB0_5
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_WARN_ONCE
LBB0_5:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_35
; %bb.6:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x19, #28]
	cmp	w8, #156
	b.lt	LBB0_12
; %bb.8:
	ldr	w8, [x19, #32]
	cmp	w8, #44
	b.lt	LBB0_12
; %bb.9:
	ldr	w8, [x19, #20]
	cmp	w8, #178
	b.lt	LBB0_12
; %bb.10:
	ldr	w8, [x19, #24]
	cmp	w8, #44
	b.lt	LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_12:
	ldr	w8, [x19, #12]
	cmp	w8, #407
	b.ge	LBB0_33
	b	LBB0_35
LBB0_13:
	ldr	w8, [x19, #28]
	cmp	w8, #156
	b.lt	LBB0_18
; %bb.14:
	ldr	w8, [x19, #32]
	cmp	w8, #42
	b.lt	LBB0_18
; %bb.15:
	ldr	w8, [x19, #20]
	cmp	w8, #177
	b.lt	LBB0_18
; %bb.16:
	ldr	w8, [x19, #24]
	cmp	w8, #42
	b.lt	LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_18:
	ldr	w8, [x19, #12]
	cmp	w8, #403
	b.lt	LBB0_35
; %bb.19:
	ldr	w8, [x19, #16]
	cmp	w8, #41
	b.gt	LBB0_34
	b	LBB0_35
LBB0_20:
	ldr	w8, [x19, #28]
	cmp	w8, #156
	b.lt	LBB0_25
; %bb.21:
	ldr	w8, [x19, #32]
	cmp	w8, #42
	b.lt	LBB0_25
; %bb.22:
	ldr	w8, [x19, #20]
	cmp	w8, #177
	b.lt	LBB0_25
; %bb.23:
	ldr	w8, [x19, #24]
	cmp	w8, #42
	b.lt	LBB0_25
; %bb.24:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_25:
	ldr	w8, [x19, #12]
	cmp	w8, #402
	b.lt	LBB0_35
; %bb.26:
	ldr	w8, [x19, #16]
	cmp	w8, #42
	b.ge	LBB0_34
	b	LBB0_35
LBB0_27:
	ldr	w8, [x19, #28]
	cmp	w8, #156
	b.lt	LBB0_32
; %bb.28:
	ldr	w8, [x19, #32]
	cmp	w8, #44
	b.lt	LBB0_32
; %bb.29:
	ldr	w8, [x19, #20]
	cmp	w8, #178
	b.lt	LBB0_32
; %bb.30:
	ldr	w8, [x19, #24]
	cmp	w8, #44
	b.lt	LBB0_32
; %bb.31:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_32:
	ldr	w8, [x19, #12]
	cmp	w8, #406
	b.lt	LBB0_35
LBB0_33:
	ldr	w8, [x19, #16]
	cmp	w8, #43
	b.le	LBB0_35
LBB0_34:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_35:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_27-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: check cp_fw_version and update it to realize \t\t\t      GRBM requires 1-cycle delay in cp firmware\n"

	.no_dead_strip	_gfx_v9_0_check_fw_write_wait
.subsections_via_symbols
