	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acr_r352_wpr_is_set
_acr_r352_wpr_is_set:                   ## @acr_r352_wpr_is_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rsi), %rbx
	movq	%rbx, %rdi
	movl	$1051860, %esi                  ## imm = 0x100CD4
	movl	$2, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051860, %esi                  ## imm = 0x100CD4
	callq	_nvkm_rd32
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$1051860, %esi                  ## imm = 0x100CD4
	movl	$3, %edx
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	$1051860, %esi                  ## imm = 0x100CD4
	callq	_nvkm_rd32
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edx
	jmp	LBB0_3
LBB0_2:
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %ecx
LBB0_3:
	addl	%edx, %ecx
	shll	$8, %eax
	andl	$-65536, %eax                   ## imm = 0xFFFF0000
	shll	$8, %r12d
	andl	$-65536, %r12d                  ## imm = 0xFFFF0000
	cmpl	%edx, %r12d
	setge	%sil
	cmpl	%ecx, %r12d
	setl	%bl
	andb	%sil, %bl
	cmpl	%edx, %eax
	setg	%dl
	cmpl	%ecx, %eax
	setle	%al
	andb	%dl, %al
	andb	%bl, %al
	movzbl	%al, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_acr_r352_wpr_is_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acr_r352_wpr_is_set
_acr_r352_wpr_is_set:                   ; @acr_r352_wpr_is_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x22, [x1, #16]
	mov	x0, x22
	mov	w1, #3284
	movk	w1, #16, lsl #16
	mov	w2, #2
	bl	_nvkm_wr32
	mov	x0, x22
	mov	w1, #3284
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	mov	x19, x0
	mov	x0, x22
	mov	w1, #3284
	movk	w1, #16, lsl #16
	mov	w2, #3
	bl	_nvkm_wr32
	mov	x0, x22
	mov	w1, #3284
	movk	w1, #16, lsl #16
	bl	_nvkm_rd32
	ldr	x9, [x20]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w8, [x20, #8]
	add	w9, w8, w9
	b	LBB0_3
LBB0_2:
	ldr	x9, [x21]
	ldp	w8, w9, [x9]
	add	w9, w9, w8
LBB0_3:
	lsl	w10, w0, #8
	and	w10, w10, #0xffff0000
	lsl	w11, w19, #8
	and	w11, w11, #0xffff0000
	cmp	w11, w8
	ccmp	w11, w9, #0, ge
	ccmp	w10, w8, #4, lt
	ccmp	w10, w9, #0, gt
	cset	w0, le
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_acr_r352_wpr_is_set
.subsections_via_symbols
