	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switch_virtual_execlist_slot
_switch_virtual_execlist_slot:          ## @switch_virtual_execlist_slot
	.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
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %esi
LBB0_3:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %edx
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rax), %ecx
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %ecx
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_gvt_dbg_el
	movq	(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	$0, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.13:
	movq	8(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movl	(%rax), %esi
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.15:
	movl	(%rcx), %edx
	jmp	LBB0_16
LBB0_10:
	movq	$0, 8(%rbx)
	xorl	%edx, %edx
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_14:
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_11:
	movl	$-1, %esi
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movl	$-1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gvt_dbg_el                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[before] running slot %d/context %x pending slot %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"[after] running slot %d/context %x pending slot %d\n"

	.no_dead_strip	_switch_virtual_execlist_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switch_virtual_execlist_slot
_switch_virtual_execlist_slot:          ; @switch_virtual_execlist_slot
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	w2, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_6
LBB0_3:
	ldr	w3, [x8]
	b	LBB0_7
LBB0_4:
	mov	w1, #-1
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_2
LBB0_5:
	mov	w2, #0
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
LBB0_6:
	mov	w3, #-1
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gvt_dbg_el
	ldp	x8, x9, [x19]
	str	x8, [x19, #16]
	str	xzr, [x19]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	x9, [x8, #8]
	str	x9, [x19, #8]
	ldr	w1, [x8]
	cbz	x9, LBB0_12
; %bb.9:
	ldr	w2, [x9]
	b	LBB0_14
LBB0_10:
	str	xzr, [x19, #8]
	mov	w2, #0
	cbz	x8, LBB0_13
; %bb.11:
	ldr	w1, [x8]
	b	LBB0_14
LBB0_12:
	mov	w2, #0
	b	LBB0_14
LBB0_13:
	mov	w1, #-1
LBB0_14:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w3, #-1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gvt_dbg_el
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[before] running slot %d/context %x pending slot %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"[after] running slot %d/context %x pending slot %d\n"

	.no_dead_strip	_switch_virtual_execlist_slot
.subsections_via_symbols
