	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_csb_parse
_gen8_csb_parse:                        ## @gen8_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
	movl	(%rsi), %eax
	movq	_GEN8_CTX_STATUS_IDLE_ACTIVE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CSB_PROMOTE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_GEN8_CTX_STATUS_PREEMPTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CSB_PREEMPT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_CSB_NOP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_CSB_COMPLETE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN8_CTX_STATUS_IDLE_ACTIVE,4,2 ## @GEN8_CTX_STATUS_IDLE_ACTIVE
	.comm	_CSB_PROMOTE,4,2                ## @CSB_PROMOTE
	.comm	_GEN8_CTX_STATUS_PREEMPTED,4,2  ## @GEN8_CTX_STATUS_PREEMPTED
	.comm	_CSB_PREEMPT,4,2                ## @CSB_PREEMPT
	.comm	_CSB_COMPLETE,4,2               ## @CSB_COMPLETE
	.comm	_CSB_NOP,4,2                    ## @CSB_NOP
	.no_dead_strip	_gen8_csb_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_csb_parse
_gen8_csb_parse:                        ; @gen8_csb_parse
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _GEN8_CTX_STATUS_IDLE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GEN8_CTX_STATUS_IDLE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CSB_PROMOTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSB_PROMOTE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh6:
	adrp	x9, _GEN8_CTX_STATUS_PREEMPTED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GEN8_CTX_STATUS_PREEMPTED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _CSB_PREEMPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CSB_PREEMPT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _CSB_COMPLETE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CSB_COMPLETE@GOTPAGEOFF]
Lloh14:
	adrp	x10, _CSB_NOP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CSB_NOP@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN8_CTX_STATUS_IDLE_ACTIVE,4,2 ; @GEN8_CTX_STATUS_IDLE_ACTIVE
	.comm	_CSB_PROMOTE,4,2                ; @CSB_PROMOTE
	.comm	_GEN8_CTX_STATUS_PREEMPTED,4,2  ; @GEN8_CTX_STATUS_PREEMPTED
	.comm	_CSB_PREEMPT,4,2                ; @CSB_PREEMPT
	.comm	_CSB_COMPLETE,4,2               ; @CSB_COMPLETE
	.comm	_CSB_NOP,4,2                    ; @CSB_NOP
	.no_dead_strip	_gen8_csb_parse
.subsections_via_symbols
