	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mga_is_idle
_mga_is_idle:                           ## @mga_is_idle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MGA_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MGA_READ
	movq	_MGA_ENGINE_IDLE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_MGA_ENDPRDMASTS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%cl
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MGA_STATUS,4,2                 ## @MGA_STATUS
	.comm	_MGA_ENGINE_IDLE_MASK,8,3       ## @MGA_ENGINE_IDLE_MASK
	.comm	_MGA_ENDPRDMASTS,8,3            ## @MGA_ENDPRDMASTS
	.no_dead_strip	_mga_is_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mga_is_idle
_mga_is_idle:                           ; @mga_is_idle
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MGA_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MGA_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MGA_READ
Lloh3:
	adrp	x8, _MGA_ENGINE_IDLE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MGA_ENGINE_IDLE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh6:
	adrp	x9, _MGA_ENDPRDMASTS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MGA_ENDPRDMASTS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MGA_STATUS,4,2                 ; @MGA_STATUS
	.comm	_MGA_ENGINE_IDLE_MASK,8,3       ; @MGA_ENGINE_IDLE_MASK
	.comm	_MGA_ENDPRDMASTS,8,3            ; @MGA_ENDPRDMASTS
	.no_dead_strip	_mga_is_idle
.subsections_via_symbols
