	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zag
_zag:                                   ## @zag
	.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	8(%rdi), %r9
	movslq	%esi, %rcx
	movq	(%r9,%rcx,8), %rbx
	movq	8(%rbx), %r8
	xorl	%esi, %esi
	testl	%ecx, %ecx
	sete	%sil
	movq	(%r8,%rsi,8), %rax
	movq	%rax, (%r9,%rcx,8)
	movq	8(%rbx), %rax
	movq	%rdi, (%rax,%rsi,8)
	movl	$1, (%rdi)
	movl	$0, (%rbx)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	callq	*%rdx
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_zag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zag
_zag:                                   ; @zag
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0, #8]
	sbfiz	x9, x1, #3, #32
	ldr	x19, [x8, x9]
	ldr	x10, [x19, #8]
	cmp	w1, #0
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	x10, [x10, x11]
	str	x10, [x8, x9]
	ldr	x8, [x19, #8]
	str	x0, [x8, x11]
	mov	w8, #1
	str	w8, [x0]
	str	wzr, [x19]
	cbz	x2, LBB0_2
; %bb.1:
	blr	x2
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_zag
.subsections_via_symbols
