	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function guc_ctl_ctxinfo_flags
_guc_ctl_ctxinfo_flags:                 ## @guc_ctl_ctxinfo_flags
	.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
	callq	_intel_guc_is_submission_supported
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_intel_guc_ggtt_offset
	movl	%eax, %edx
	movq	_GUC_MAX_STAGE_DESCRIPTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	15(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_GUC_CTL_BASE_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	sarl	$4, %eax
	movq	_GUC_CTL_CTXNUM_IN16_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GUC_MAX_STAGE_DESCRIPTORS,4,2  ## @GUC_MAX_STAGE_DESCRIPTORS
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_GUC_CTL_BASE_ADDR_SHIFT,4,2    ## @GUC_CTL_BASE_ADDR_SHIFT
	.comm	_GUC_CTL_CTXNUM_IN16_SHIFT,4,2  ## @GUC_CTL_CTXNUM_IN16_SHIFT
	.no_dead_strip	_guc_ctl_ctxinfo_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function guc_ctl_ctxinfo_flags
_guc_ctl_ctxinfo_flags:                 ; @guc_ctl_ctxinfo_flags
	.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
	bl	_intel_guc_is_submission_supported
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_intel_guc_ggtt_offset
Lloh0:
	adrp	x8, _GUC_MAX_STAGE_DESCRIPTORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GUC_MAX_STAGE_DESCRIPTORS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh3:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
	asr	w8, w8, #4
Lloh5:
	ldr	w9, [x9]
	asr	w9, w0, w9
Lloh6:
	adrp	x10, _GUC_CTL_BASE_ADDR_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _GUC_CTL_BASE_ADDR_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh9:
	adrp	x10, _GUC_CTL_CTXNUM_IN16_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _GUC_CTL_CTXNUM_IN16_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w0, w8, w9
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GUC_MAX_STAGE_DESCRIPTORS,4,2  ; @GUC_MAX_STAGE_DESCRIPTORS
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_GUC_CTL_BASE_ADDR_SHIFT,4,2    ; @GUC_CTL_BASE_ADDR_SHIFT
	.comm	_GUC_CTL_CTXNUM_IN16_SHIFT,4,2  ; @GUC_CTL_CTXNUM_IN16_SHIFT
	.no_dead_strip	_guc_ctl_ctxinfo_flags
.subsections_via_symbols
