	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen12_csb_parse
_gen12_csb_parse:                       ## @gen12_csb_parse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	4(%rsi), %r15d
	movl	%ebx, %edi
	callq	_GEN12_CSB_CTX_VALID
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_GEN12_CSB_CTX_VALID
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movq	_CSB_PROMOTE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.5:
	movq	_CSB_PREEMPT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movl	%r15d, %edi
	callq	_GEN12_CTX_SWITCH_DETAIL
	movl	%eax, %edi
	callq	_GEM_BUG_ON
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	testl	%r12d, %r12d
	sete	%dil
	callq	_GEM_BUG_ON
	movq	_CSB_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_CSB_NOP@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE,4,2 ## @GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE
	.comm	_CSB_PROMOTE,4,2                ## @CSB_PROMOTE
	.comm	_CSB_PREEMPT,4,2                ## @CSB_PREEMPT
	.comm	_CSB_COMPLETE,4,2               ## @CSB_COMPLETE
	.comm	_CSB_NOP,4,2                    ## @CSB_NOP
	.no_dead_strip	_gen12_csb_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen12_csb_parse
_gen12_csb_parse:                       ; @gen12_csb_parse
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	w22, w21, [x1]
	mov	x0, x22
	bl	_GEN12_CSB_CTX_VALID
	mov	x23, x0
	mov	x0, x21
	bl	_GEN12_CSB_CTX_VALID
	cmp	w0, #0
	ccmp	w23, #0, #4, eq
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_GEN12_CTX_SWITCH_DETAIL
	bl	_GEM_BUG_ON
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	cmp	w20, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
Lloh3:
	adrp	x8, _CSB_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSB_COMPLETE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _CSB_PROMOTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CSB_PROMOTE@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _CSB_PREEMPT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSB_PREEMPT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _CSB_NOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CSB_NOP@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE,4,2 ; @GEN12_CTX_STATUS_SWITCHED_TO_NEW_QUEUE
	.comm	_CSB_PROMOTE,4,2                ; @CSB_PROMOTE
	.comm	_CSB_PREEMPT,4,2                ; @CSB_PREEMPT
	.comm	_CSB_COMPLETE,4,2               ; @CSB_COMPLETE
	.comm	_CSB_NOP,4,2                    ; @CSB_NOP
	.no_dead_strip	_gen12_csb_parse
.subsections_via_symbols
